You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure Function Isolated Mode. Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions....'. Microsoft.Azure.WebJobs.Host: '%Azure:ServiceBus:Queue%' does not resolve to a value.
#3070
Open
textbytext opened this issue
Apr 4, 2024
· 1 comment
"%Azure:ServiceBus:Queue%" and "SERVICEBUS:CONNECTION:STRING" are taking from an AzureKeyVault (HostBuilder config)
var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults()
.ConfigureHostConfiguration(builder =>
{
builder.AddAzureKeyVaultSettingsConfiguration(GetKeyVaultName());
})
.ConfigureServices(services =>
{
...
})
.Build();
Error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.Function-Name'. Microsoft.Azure.WebJobs.Host: '%Azure:ServiceBus:Queue%' does not resolve to a value.
My assumption:
The problem is in the FunctionIndexProvider.cs file.
The INameResolver does not passing (null instead) to the constructor.
The text was updated successfully, but these errors were encountered:
textbytext
changed the title
Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions....'. Microsoft.Azure.WebJobs.Host: '%KEY:NAME%' does not resolve to a value.
Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions....'. Microsoft.Azure.WebJobs.Host: '%Azure:ServiceBus:Queue%' does not resolve to a value.
Apr 4, 2024
textbytext
changed the title
Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions....'. Microsoft.Azure.WebJobs.Host: '%Azure:ServiceBus:Queue%' does not resolve to a value.
Azure Function Isolated Mode. Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions....'. Microsoft.Azure.WebJobs.Host: '%Azure:ServiceBus:Queue%' does not resolve to a value.
Apr 4, 2024
textbytext
pushed a commit
to textbytext/azure-webjobs-sdk
that referenced
this issue
Apr 4, 2024
I can only get my function app to read %somevalue% in a queue trigger if it is set as an environment variable after switching to isolated mode. If it is set in appsettings.json its ignored and I get the same error as you get.
It seems like whatever INameResolver is used in Microsoft.Azure.WebJobs.Host.NameResolverExtensions.ResolveWholeStringCore when configuring %%-values is only able to read environment variables.
Note: In the application, if i inject IConfiguration anywhere, it has all values from appsettings.json.
Azure Function Isolated Mode.
Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions....'. Microsoft.Azure.WebJobs.Host: '%KEY:NAME%' does not resolve to a value.
My configuration:
Usage:
"%Azure:ServiceBus:Queue%" and "SERVICEBUS:CONNECTION:STRING" are taking from an AzureKeyVault (HostBuilder config)
Error:
Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.Function-Name'. Microsoft.Azure.WebJobs.Host: '%Azure:ServiceBus:Queue%' does not resolve to a value.
My assumption:
The problem is in the FunctionIndexProvider.cs file.
The INameResolver does not passing (null instead) to the constructor.
The text was updated successfully, but these errors were encountered: