Setting a storage account's "Allow storage account key access" to disabled breaks function deployments.

Demougin, Matthew W 0 Reputation points
2025-03-10T20:30:46.78+00:00

I've been requested to disable storage account key access on a set of storage accounts. Doing so results in an inability to deploy the azure function that is connected to the storage account.

When the account is set to enable storage account key access it works.

User's image

User's image

User's image

When I switch to Disabled, it breaks:

User's image

User's image

User's image

It has the following error:

User's image

This URL leads toUser's image

because disable also disconnects the storage account and function

User's image

It's hard for me to believe that this combination simply doesn't work in Azure. Any help getting this setup would be greatly appreciated.

Thanks!

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,411 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Silvia Wibowo 5,441 Reputation points Microsoft Employee
    2025-03-10T22:49:25.77+00:00

    Hi @Demougin, Matthew W , I understand that you have a requirement to disable storage account keys. However, your Azure Functions stop working when you disable storage account keys.

    By default, function apps configure the AzureWebJobsStorage connection as a connection string stored in the AzureWebJobsStorage application setting, but you can also configure AzureWebJobsStorage to use an identity-based connection without a secret.

    Caution: Other components in Functions rely on AzureWebJobsStorage for default behaviors. You should not move it to an identity-based connection if you are using older versions of extensions that do not support this type of connection, including triggers and bindings for Azure Blobs, Event Hubs, and Durable Functions. Similarly, AzureWebJobsStorage is used for deployment artifacts when using server-side build in Linux Consumption, and if you enable this, you will need to deploy via an external deployment package.

    In addition, your function app might be reusing AzureWebJobsStorage for other storage connections in their triggers, bindings, and/or function code. Make sure that all uses of AzureWebJobsStorage are able to use the identity-based connection format before changing this connection from a connection string.

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.