-
Notifications
You must be signed in to change notification settings - Fork 198
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
"Missing value for AzureWebJobsStorage in local.settings.json" #2244
"Missing value for AzureWebJobsStorage in local.settings.json" #2244
Comments
Hi @onionhammer Please refer discussion here Please let us know if it helps. |
@Ved2806 that discussion is locked, and the warning is happening local settings still, so no it doesn't help. Using managed identity works fine, the warnings show up in build though. |
Hi @onionhammer Could you please mention the warning message? |
....nuget\packages\microsoft.net.sdk.functions\4.1.1\build\Microsoft.NET.Sdk.Functions.Build.targets(32,5): warning : Function [EmailSend]: Missing value for AzureWebJobsStorage in local.settings.json. This is required for all triggers other than httptrigger, kafkatrigger, orchestrationTrigger, activityTrigger, entityTrigger. [C:\proj\src\Function.csproj] |
FYI - This is still broken. |
Hi @onionhammer Please refer this conversation #2755. Seems like this issue has been resolved. Please let us know if it helps? |
@Ved2806 it has not been resolved as version 4.1.1, which is the most recent version, as you can see in the comment above referencing nuget\packages\microsoft.net.sdk.functions\ 4.1.1 \build\Microsoft.NET.Sdk.Functions.Build.targets
|
The offending code may be here? where instead of var azureWebJobsStorage = values.FirstOrDefault(pair => pair.Key.Equals("AzureWebJobsStorage", StringComparison.OrdinalIgnoreCase)).Value; perhaps it could be var azureWebJobsStorage = values.FirstOrDefault(pair => pair.Key.StartsWith("AzureWebJobsStorage", StringComparison.OrdinalIgnoreCase)).Value; |
Hi @onionhammer Does this fixed your issue? |
@Ved2806 Yes, I tested it. the code only exists to generate an invalid warning with no other side effects. |
Hi @onionhammer Does it removed the warning message you were getting previously? |
@Ved2806 yes, that is the point of the change; if you have |
Hi @onionhammer Thanks for confirmation, closing this as resolved. |
@Ved2806 this isnt resolved unless my PR is accepted |
This should be reopened |
This warning shows when
AzureWebJobsStorage__accountName
is specified and using a managed identity, so the warning shows but then the app works just fine.The text was updated successfully, but these errors were encountered: