azureazure-functionsazure-storageapp-config

Azure Function App AzureWebJobsStorage vs WEBSITE_CONTENTAZUREFILECONNECTIONSTRING


The Azure function app official documentation lists two app settings which seem identical to me.

AzureWebJobsStorage

The Azure Functions runtime uses this storage account connection string for normal operation. Some uses of this storage account include key management, timer trigger management, and Event Hubs checkpoints. The storage account must be a general-purpose one that supports blobs, queues, and tables.

WEBSITE_CONTENTAZUREFILECONNECTIONSTRING

Connection string for storage account where the function app code and configuration are stored in event-driven scaling plans.

It seems both point to the storage account the function uses to store its files.

So, what is the difference between them and do I need both of them?


Solution

  • I agree with @Dai and @Nadeem Khan

    AzureWebJobsStorage:

    WEBSITE_CONTENTAZUREFILECONNECTIONSTRING:

    Summary,

    AzureWebJobsStorage is primarily used for internal Azure Functions operational data and can be any Azure Storage account, while WEBSITE_CONTENTAZUREFILECONNECTIONSTRING is used specifically for read-only access to files in Azure File Storage when you're using the Consumption Plan. It is created in Consumption and Elastic premium plan only as mentioned in MS Doc.

    I have create three Function of each app service plan. You can see WEBSITE_CONTENTAZUREFILECONNECTIONSTRING available in Consumption and Elastic Premium Plan

    appsettingfunc with Consumption Plan:

    enter image description here

    appsettingfuncnon-consumption with Basic Plan:

    enter image description here

    appsettingfunc-premium with Elastic Premium Plan:

    enter image description here