|
2 | 2 | title: App settings reference for Azure Functions
|
3 | 3 | description: Reference documentation for the Azure Functions app settings or environment variables.
|
4 | 4 | ms.topic: conceptual
|
5 |
| -ms.date: 07/27/2021 |
| 5 | +ms.date: 04/27/2022 |
6 | 6 | ---
|
7 | 7 |
|
8 | 8 | # App settings reference for Azure Functions
|
@@ -427,15 +427,24 @@ Supported on [Premium](functions-premium-plan.md) and [Dedicated (App Service) p
|
427 | 427 |
|
428 | 428 | ## WEBSITE\_CONTENTSHARE
|
429 | 429 |
|
430 |
| -The file path to the function app code and configuration in an event-driven scaling plan on Windows. Used with WEBSITE_CONTENTAZUREFILECONNECTIONSTRING. Default is a unique string that begins with the function app name. See [Create a function app](functions-infrastructure-as-code.md?tabs=windows#create-a-function-app). |
| 430 | +The file path to the function app code and configuration in an event-driven scaling plans. Used with WEBSITE_CONTENTAZUREFILECONNECTIONSTRING. Default is a unique string generated by the runtime that begins with the function app name. See [Create a function app](functions-infrastructure-as-code.md?tabs=windows#create-a-function-app). |
431 | 431 |
|
432 | 432 | |Key|Sample value|
|
433 | 433 | |---|------------|
|
434 | 434 | |WEBSITE_CONTENTSHARE|`functionapp091999e2`|
|
435 | 435 |
|
436 |
| -Only used when deploying to a Windows or Linux Premium plan or to a Windows Consumption plan. Not supported for Linux Consumption plans or Windows or Linux Dedicated plans. When you change the setting, ensure the value is lowercased. Changing or removing this setting may cause your function app to not start. To learn more, see [this troubleshooting article](functions-recover-storage-account.md#storage-account-application-settings-were-deleted). |
| 436 | +This setting is used for Consumption and Premium plan apps on both Windows and Linux. It's not used for Dedicated plan apps, which aren't dynamically scaled by Functions. |
437 | 437 |
|
438 |
| -When using an Azure Resource Manager template to create a function app during deployment, don't include WEBSITE_CONTENTSHARE in the template. This slot setting is generated during deployment. To learn more, see [Automate resource deployment for your function app](functions-infrastructure-as-code.md?tabs=windows#create-a-function-app). |
| 438 | +Changing or removing this setting may cause your function app to not start. To learn more, see [this troubleshooting article](functions-recover-storage-account.md#storage-account-application-settings-were-deleted). |
| 439 | + |
| 440 | +The following considerations apply when using an Azure Resource Manager (ARM) template to create a function app during deployment: |
| 441 | + |
| 442 | ++ When you don't set a `WEBSITE_CONTENTSHARE` value for the main function app or any apps in slots, unique share values are generated for you. This is the recommended approach for an ARM template deployment. |
| 443 | ++ There are scenarios where you must set the `WEBSITE_CONTENTSHARE` value to a predefined share, such as when you [use a secured storage account in a virtual network](configure-networking-how-to.md#restrict-your-storage-account-to-a-virtual-network). In this case, you must set a unique share name for the main function app and the app for each deployment slot. |
| 444 | ++ Don't make `WEBSITE_CONTENTSHARE` a slot setting. |
| 445 | ++ When you specify `WEBSITE_CONTENTSHARE`, the value must follow [this guidance for share names](/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata#share-names). |
| 446 | + |
| 447 | +To learn more, see [Automate resource deployment for your function app](functions-infrastructure-as-code.md?tabs=windows#create-a-function-app). |
439 | 448 |
|
440 | 449 | ## WEBSITE\_SKIP\_CONTENTSHARE\_VALIDATION
|
441 | 450 |
|
|
0 commit comments