Azure function managed identity- Value of "AzureWebJobsStorage" app setting is invalid

148 Views Asked by At

I am creating an azure function with system managed identity to be used to connect to storage account. As per documentation, the i have added the required role to storage account so that function can access the storage. Also, i have replaced AzureWebJobsStorage appsetting with AzureWebJobsStorage__accountName and have provided the storage account name. The function is working fine but I am getting a message in azure portal saying

Value of "AzureWebJobsStorage" app setting is invalid.

The strange thing is that i was not seeing this error till tomorrow and have started seeing it today only. Followed this one completely https://techcommunity.microsoft.com/t5/apps-on-azure-blog/use-managed-identity-instead-of-azurewebjobsstorage-to-connect-a/ba-p/3657606

Does anyone know if I am missing anything?

1

There are 1 best solutions below

0
Ikhtesam Afrin On

The function is working fine but I am getting a message in azure portal saying "Value of "AzureWebJobsStorage" app setting is invalid."

This looks like an information level log. If you will click on the banner, you see see some links and error code like below-

enter image description here

  • Click on the Help link, you will be navigated to this page wherein it says below-

enter image description here

  • In our case we have set the value as storage account name whereas AzureWebJobsStorage expects connection string. AFAIK, as we are passing a different value than connection string we are getting the message.

  • There is also a suppress condition which says about key vault references.

enter image description here

  • My function work as expected.

enter image description here

  • I have raised a github issue to include the managed identity related information in the error code page. You can refer to it for more details about the message.