Skip to content

Commit 97a5f1c

Browse files
authored
Merge pull request #196100 from ggailey777/patch-11
[Functions] Final tweaks for WEBSITE_CONTENTSHARE
2 parents 8a46940 + 2ad834c commit 97a5f1c

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

articles/azure-functions/functions-app-settings.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: App settings reference for Azure Functions
33
description: Reference documentation for the Azure Functions app settings or environment variables.
44
ms.topic: conceptual
5-
ms.date: 07/27/2021
5+
ms.date: 04/27/2022
66
---
77

88
# App settings reference for Azure Functions
@@ -427,15 +427,24 @@ Supported on [Premium](functions-premium-plan.md) and [Dedicated (App Service) p
427427

428428
## WEBSITE\_CONTENTSHARE
429429

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).
431431

432432
|Key|Sample value|
433433
|---|------------|
434434
|WEBSITE_CONTENTSHARE|`functionapp091999e2`|
435435

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.
437437

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).
439448

440449
## WEBSITE\_SKIP\_CONTENTSHARE\_VALIDATION
441450

0 commit comments

Comments
 (0)