Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Managed Identity w/Azure Functions and Storage accounts

What is the appropriate way to use managed identity with Azure Functions and Storage accounts if the the AzureWebJobsStorage app setting is required by the function host? Is there a managed identity version of the storage account connection string that doesn't include the access key?

like image 616
Joey Eng Avatar asked Oct 25 '25 19:10

Joey Eng


1 Answers

It is now possible to configure a function app to authenticate with its storage account via managed identity.

Full details are available here

In summary, in the app settings for the function app:

  • delete setting for "AzureWebJobsStorage"
  • create a new app setting named "AzureWebJobsStorage__accountName"
  • the value of the new setting should be the name of the storage account

Ensure the function app has "Storage Blob Data Owner" role over the storage account. If the function app uses the storage account's queue (e.g. queue binding) then it will also need "Storage Queue Data Contributor" role.

like image 83
Rob Bowman Avatar answered Oct 28 '25 11:10

Rob Bowman