Skip to content

Commit 1826262

Browse files
Merge pull request #216720 from cephalin/patch-6
WEBSITE_SLOT_NAME only for functions
2 parents 365683a + 535d5a3 commit 1826262

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

articles/app-service/reference-app-settings.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Environment variables and app settings reference
33
description: Describes the commonly used environment variables, and which ones can be modified with app settings.
44
ms.topic: article
5-
ms.date: 02/15/2022
5+
ms.date: 11/01/2022
66
---
77

88
# Environment variables and app settings in Azure App Service
@@ -315,7 +315,6 @@ For more information on deployment slots, see [Set up staging environments in Az
315315

316316
| Setting name| Description | Example |
317317
|-|-|-|
318-
|`WEBSITE_SLOT_NAME`| Read-only. Name of the current deployment slot. The name of the production slot is `Production`. ||
319318
|`WEBSITE_OVERRIDE_STICKY_EXTENSION_VERSIONS`| By default, the versions for site extensions are specific to each slot. This prevents unanticipated application behavior due to changing extension versions after a swap. If you want the extension versions to swap as well, set to `0` on *all slots*. ||
320319
|`WEBSITE_OVERRIDE_PRESERVE_DEFAULT_STICKY_SLOT_SETTINGS`| Designates certain settings as [sticky or not swappable by default](deploy-staging-slots.md#which-settings-are-swapped). Default is `true`. Set this setting to `false` or `0` for *all deployment slots* to make them swappable instead. There's no fine-grain control for specific setting types. ||
321320
|`WEBSITE_SWAP_WARMUP_PING_PATH`| Path to ping to warm up the target slot in a swap, beginning with a slash. The default is `/`, which pings the root path over HTTP. | `/statuscheck` |

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,14 @@ The [WEBSITE_CONTENTAZUREFILECONNECTIONSTRING](#website_contentazurefileconnecti
544544

545545
If validation is skipped and either the connection string or content share are not valid, the app will be unable to start properly and will only serve HTTP 500 errors.
546546

547+
## WEBSITE\_SLOT\_NAME
548+
549+
Read-only. Name of the current deployment slot. The name of the production slot is `Production`.
550+
551+
|Key|Sample value|
552+
|---|------------|
553+
|WEBSITE_SLOT_NAME|`Production`|
554+
547555
## WEBSITE\_TIME\_ZONE
548556

549557
Allows you to set the timezone for your function app.

0 commit comments

Comments
 (0)