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
When using Managed Identity in Binding / Trigger, you need to specify a nested value prefixed with the connection name. (Example: <CONNECTION_NAME_PREFIX>__serviceUri)
Function Build SDK does not take nested values into account, so even if you add the correct settings to local.settings.json, it will warn you that the connection cannot be found, which is an unnecessary warning.
Build warning
C:\Users\shibayan\.nuget\packages\microsoft.net.sdk.functions\3.0.13\build\Microsoft.NET.Sdk.Functions.Build.targets(32,5):
warning : Function [Function2]: cannot find value named 'CosmosConnection' in local.settings.json that matches 'connection' property set on 'cosmosDBTrigger'
_logger.LogWarning($"Function [{functionName}]: cannot find value named '{appSettingName}' in {settingsFileName} that matches '{token.Key}' property set on '{binding["type"]?.ToString()}'");
Related changes had to be made to the Core Tools, although those could force the process to exit, while this seems to just be warning level. This should still be fixed. Core Tools PRs for reference in case it's useful in resolution:
When using Managed Identity in Binding / Trigger, you need to specify a nested value prefixed with the connection name. (Example:
<CONNECTION_NAME_PREFIX>__serviceUri
)https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference#connection-properties
Function Build SDK does not take nested values into account, so even if you add the correct settings to
local.settings.json
, it will warn you that the connection cannot be found, which is an unnecessary warning.Build warning
Repro code
The text was updated successfully, but these errors were encountered: