New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppress Warning "cannot find value named '{0}' in local.settings.json #519
Comments
This warning appears to be generated here: azure-functions-vs-build-sdk/src/Microsoft.NET.Sdk.Functions.Generator/FunctionJsonConverter.cs Line 261 in 32ebc25
It also appears erroneously when using the "__" syntax, eg. with service bus with managed identity " As a workaround, it seems that replacing {
"profiles": {
"project.name": {
"commandName": "Project",
"commandLineArgs": "--csharp",
"environmentVariables": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"connectionName__fullyQualifiedNamespace": "servce-bus-namespace-goes-here"
}
}
}
} |
I'm having this issue as well, not even adding an env variable to `launchSettings' helps. Any news regarding this bug? |
Same issue here when using the This is at build time, so environment variables don't make a difference |
Same issue here when using managed identities with the service bus. I had seen a previous issue raised by @petrkoutnycz Azure/azure-sdk-for-net#32840 in which it was marked as resolved, and to update to the latest version of azure core tools; however, that does not seem to be working in my case. |
@DanielRNichols I believe it works with the latest version of SDK, at least for me :-) |
@petrkoutnycz Which SDK did you update? I go back to my function after couple of months and it stopped working (i didn't do anything in the codebase) |
I exclude local.settings.json from checkin as developers can configure some aspects separately as needed.
I have a storage connection string for a queue trigger which I default (ie- set as a convention) in
Startup
. When deployed, this will be filled from a keyvault, but in dev the default isUseDevelopmentStorage=true
.This all works, but I get an unwanted warning telling me I must set the value in
local.settings.json
, as follows:I would like to add a code suppression for this warning. Is this possible ?
The text was updated successfully, but these errors were encountered: