Skip to content

Commit 66ff2f7

Browse files
authored
Merge pull request #277101 from cephalin/configure-refresh
refresh portal steps
2 parents 0736279 + da4abad commit 66ff2f7

File tree

8 files changed

+14
-20
lines changed

8 files changed

+14
-20
lines changed

articles/app-service/configure-common.md

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn to configure common settings for an App Service app. App sett
44
keywords: azure app service, web app, app settings, environment variables
55
ms.assetid: 9af8a367-7d39-4399-9941-b80cbc5f39a0
66
ms.topic: article
7-
ms.date: 04/21/2023
7+
ms.date: 06/04/2024
88
ms.custom: devx-track-csharp, devx-track-azurecli, devx-track-azurepowershell, AppServiceConnectivity
99
ms.devlang: azurecli
1010
author: cephalin
@@ -48,20 +48,20 @@ App settings are always encrypted when stored (encrypted-at-rest).
4848

4949
![Search for App Services](./media/configure-common/search-for-app-services.png)
5050

51-
1. In the app's left menu, select **Configuration** > **Application settings**.
51+
1. In the app's left menu, select **Environment variables** > **App settings**.
5252

53-
![Application Settings](./media/configure-common/open-ui.png)
53+
![Screenshot showing how to navigate to the App Settings page.](./media/configure-common/open-ui.png)
5454

5555
By default, values for app settings are hidden in the portal for security. To see a hidden value of an app setting, select its **Value** field. To see the hidden values of all app settings, select the **Show values** button.
5656

57-
1. To add a new app setting, select **New application setting**. To edit a setting, select the **Edit** button on the right side.
57+
1. To add a new app setting, select **Add**. To edit a setting, click the setting.
5858

5959
1. In the dialog, you can [stick the setting to the current slot](deploy-staging-slots.md#which-settings-are-swapped).
6060

6161
> [!NOTE]
6262
> In a default Linux app service or a custom Linux container, any nested JSON key structure in the app setting name like `ApplicationInsights:InstrumentationKey` needs to be configured in App Service as `ApplicationInsights__InstrumentationKey` for the key name. In other words, any `:` should be replaced by `__` (double underscore). Any periods in the app setting name will be replaced with a `_` (single underscore).
6363
64-
1. When finished, select **Update**. Don't forget to select **Save** back in the **Configuration** page.
64+
1. When finished, select **Apply**. Don't forget to select **Apply** back in the **Environment variables** page.
6565

6666
# [Azure CLI](#tab/cli)
6767

@@ -131,7 +131,7 @@ Set-AzWebAppSlotConfigName -ResourceGroupName <group-name> -Name <app-name> -App
131131

132132
# [Azure portal](#tab/portal)
133133

134-
Select the **Advanced edit** button. Edit the settings in the text area. When finished, select **Update**. Don't forget to select **Save** back in the **Configuration** page.
134+
Select the **Advanced edit** button. Edit the settings in the text area. When finished, select **OK**. Don't forget to select **Apply** back in the **Environment variables** page.
135135

136136
App settings have the following JSON formatting:
137137

@@ -199,16 +199,12 @@ It's not possible to edit app settings in bulk by using a JSON file with Azure P
199199

200200
## Configure connection strings
201201

202-
In the [Azure portal], search for and select **App Services**, and then select your app. In the app's left menu, select **Configuration** > **Application settings**.
203-
204-
![Application Settings](./media/configure-common/open-ui.png)
205-
206202
For ASP.NET and ASP.NET Core developers, setting connection strings in App Service are like setting them in `<connectionStrings>` in *Web.config*, but the values you set in App Service override the ones in *Web.config*. You can keep development settings (for example, a database file) in *Web.config* and production secrets (for example, SQL Database credentials) safely in App Service. The same code uses your development settings when you debug locally, and it uses your production secrets when deployed to Azure.
207203

208204
For other language stacks, it's better to use [app settings](#configure-app-settings) instead, because connection strings require special formatting in the variable keys in order to access the values.
209205

210206
> [!NOTE]
211-
> There is one case where you may want to use connection strings instead of app settings for non-.NET languages: certain Azure database types are backed up along with the app _only_ if you configure a connection string for the database in your App Service app. For more information, see [Create a custom backup](manage-backup.md#create-a-custom-backup). If you don't need this automated backup, then use app settings.
207+
> There is one case where you may want to use connection strings instead of app settings for non-.NET languages: certain Azure database types are backed up along with the app *only* if you configure a connection string for the database in your App Service app. For more information, see [Create a custom backup](manage-backup.md#create-a-custom-backup). If you don't need this automated backup, then use app settings.
212208
213209
At runtime, connection strings are available as environment variables, prefixed with the following connection types:
214210

@@ -242,17 +238,17 @@ Connection strings are always encrypted when stored (encrypted-at-rest).
242238

243239
![Search for App Services](./media/configure-common/search-for-app-services.png)
244240

245-
1. In the app's left menu, select **Configuration** > **Application settings**.
241+
1. In the app's left menu, select **Environment variables** > **Connection strings**.
246242

247-
![Application Settings](./media/configure-common/open-ui.png)
243+
![Screenshot showing UI open to Connection strings.](./media/configure-common/open-ui-connection-strings.png)
248244

249245
By default, values for connection strings are hidden in the portal for security. To see a hidden value of a connection string, select its **Value** field. To see the hidden values of all connection strings, select the **Show value** button.
250246

251-
1. To add a new connection string, select **New connection string**. To edit a connection string, select the **Edit** button on the right side.
247+
1. To add a new connection string, select **Add**. To edit a connection string, select the connection string.
252248

253249
1. In the dialog, you can [stick the connection string to the current slot](deploy-staging-slots.md#which-settings-are-swapped).
254250

255-
1. When finished, select **Update**. Don't forget to select **Save** back in the **Configuration** page.
251+
1. When finished, select **Apply**. Don't forget to select **Apply** back in the **Environment variables** page.
256252

257253
# [Azure CLI](#tab/cli)
258254

@@ -333,7 +329,7 @@ Set-AzWebAppSlotConfigName -ResourceGroupName <group-name> -Name <app-name> -Con
333329

334330
# [Azure portal](#tab/portal)
335331

336-
Select the **Advanced edit** button. Edit the connection strings in the text area. When finished, select **Update**. Don't forget to select **Save** back in the **Configuration** page.
332+
Select the **Advanced edit** button. Edit the connection strings in the text area. When finished, select **Apply**. Don't forget to select **Apply** back in the **Environment variables** page.
337333

338334
Connection strings have the following JSON formatting:
339335

@@ -524,7 +520,7 @@ By default, App Service starts your app from the root directory of your app code
524520

525521
![Directory check box](./media/configure-common/directory-check-box.png)
526522

527-
1. Select **OK**.
523+
1. Select **OK**. Don't forget to select **Save** in the **Configuration** page.
528524

529525
# [Azure CLI](#tab/cli)
530526

@@ -593,7 +589,7 @@ To add a custom handler:
593589
- **Script processor**. The absolute path of the script processor to you. Requests to files that match the file extension are processed by the script processor. Use the path `D:\home\site\wwwroot` to refer to your app's root directory.
594590
- **Arguments**. Optional command-line arguments for the script processor.
595591

596-
1. Select **OK**.
592+
1. Select **OK**. Don't forget to select **Save** in the **Configuration** page.
597593

598594
## Configure custom containers
599595

@@ -617,7 +613,5 @@ To add a custom handler:
617613
[Azure portal]: https://portal.azure.com/
618614
[Configure a custom domain name in Azure App Service]: ./app-service-web-tutorial-custom-domain.md
619615
[Set up staging environments in Azure App Service]: ./deploy-staging-slots.md
620-
[How to: Monitor web endpoint status]: ./web-sites-monitor.md
621616
[Monitoring basics in Azure App Service]: ./web-sites-monitor.md
622-
[pipeline mode]: https://www.iis.net/learn/get-started/introduction-to-iis/introduction-to-iis-architecture#Application
623617
[Scale an app in Azure App Service]: ./manage-scale-up.md
59 KB
Loading
14.6 KB
Loading
29 KB
Loading
19.3 KB
Loading
47.9 KB
Loading
-10.4 KB
Loading
34.3 KB
Loading

0 commit comments

Comments
 (0)