app config settings WEBSITE_CONTENTSHARE in function app deployment slots

9.6k Views Asked by At

Do I have to set WEBSITE_CONTENTSHARE value in app settings when having multiple deployment slots? What does this value indicate? Can I provide some random values for WEBSITE_CONTENTSHARE in production and aging slots?

1

There are 1 best solutions below

3
On

WEBSITE_CONTENTSHARE is used along with WEBSITE_CONTENTAZUREFILECONNECTIONSTRING which represents where the configurations are stored and the storage account where the function app code is stored.

Do I have to set WEBSITE_CONTENTSHARE value in app settings when having multiple deployment slots?

You do not need to set the WEBSITE_CONTENTSHARE setting in a deployment slot. This setting is generated for you when the app is created in the deployment slot.

What does this value indicate?

This represents the file path to the function app code and configuration.

Can I provide some random values for WEBSITE_CONTENTSHARE in production and aging slots?

According to this document "The WEBSITE_CONTENTSHARE setting must be provided and valid at creation time. An automated deployment that doesn't contain these settings results in a function app that won't run, even if the settings are added later."

NOTE:

  • This is available when deploying to a Windows or Linux Premium plan and Windows Consumption plan.

  • This is not supported in Linux Consumption plans and Windows and Linux Dedicated plans.

  • If you change or remove this option, your function app may not start.

REFERENCES:

  1. App settings reference for Azure Functions
  2. WEBSITE_CONTENTSHARE should not be used accroding to support
  3. Troubleshoot error: Azure Functions Runtime is unreachable