Skip to content

Commit a0d7733

Browse files
Merge pull request #251509 from apwestgarth/appsvcwindowscontainerupdates
Updates to configure custom containers docs
2 parents f8b9191 + d4f86b2 commit a0d7733

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

articles/app-service/configure-custom-container.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to configure a custom container in Azure App Service. Thi
44
author: msangapu-msft
55
ms.author: msangapu
66
ms.topic: how-to
7-
ms.date: 01/04/2023
7+
ms.date: 09/14/2023
88
ms.custom: devx-track-azurepowershell, devx-track-azurecli
99
zone_pivot_groups: app-service-containers-windows-linux
1010
---
@@ -220,7 +220,7 @@ When persistent storage is disabled, then writes to the `/home` directory are no
220220

221221
The only exception is the `/home/LogFiles` directory, which is used to store the container and application logs. This folder will always persist upon app restarts if [application logging is enabled](troubleshoot-diagnostic-logs.md#enable-application-logging-linuxcontainer) with the **File System** option, independently of the persistent storage being enabled or disabled. In other words, enabling or disabling the persistent storage will not affect the application logging behavior.
222222

223-
It is recommended to write data to `/home` or a [mounted azure storage path](configure-connect-to-azure-storage.md?tabs=portal&pivots=container-linux). Data written outside these paths will not be persistent during restarts and will be saved to platform-managed host disk space separate from the App Service Plans file storage quota.
223+
It is recommended to write data to `/home` or a [mounted Azure storage path](configure-connect-to-azure-storage.md?tabs=portal&pivots=container-linux). Data written outside these paths will not be persistent during restarts and will be saved to platform-managed host disk space separate from the App Service Plans file storage quota.
224224

225225
By default, persistent storage is *enabled* on Linux custom containers. To disable it, set the `WEBSITES_ENABLE_APP_SERVICE_STORAGE` app setting value to `false` via the [Cloud Shell](https://shell.azure.com). In Bash:
226226

@@ -293,7 +293,20 @@ To download all the logs together in one ZIP file, access `https://<app-name>.sc
293293

294294
## Customize container memory
295295

296-
By default all Windows Containers deployed in Azure App Service are limited to 1 GB RAM. You can change this value by providing the `WEBSITE_MEMORY_LIMIT_MB` app setting via the [Cloud Shell](https://shell.azure.com). In Bash:
296+
By default all Windows Containers deployed in Azure App Service have a memory limit configured. The following table lists the default settings per App Service Plan SKU.
297+
298+
| App Service Plan SKU | Default memory limit per app in MB |
299+
|-|-|
300+
| P1v3 | 1024 |
301+
| P1Mv3 | 1024 |
302+
| P2v3 | 1536 |
303+
| P2Mv3 | 1536 |
304+
| P3v3 | 2048 |
305+
| P3Mv3 | 2048 |
306+
| P4Mv3 | 2560 |
307+
| P5Mv3 | 3072 |
308+
309+
You can change this value by providing the `WEBSITE_MEMORY_LIMIT_MB` app setting via the [Cloud Shell](https://shell.azure.com). In Bash:
297310

298311
```azurecli-interactive
299312
az webapp config appsettings set --resource-group <group-name> --name <app-name> --settings WEBSITE_MEMORY_LIMIT_MB=2000

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

Lines changed: 2 additions & 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: 05/09/2023
5+
ms.date: 09/14/2023
66
author: cephalin
77
ms.author: cephalin
88
---
@@ -344,7 +344,7 @@ For more information on custom containers, see [Run a custom container in Azure]
344344
| `WEBSITES_WEB_CONTAINER_NAME` | In a Docker Compose app, only one of the containers can be internet accessible. Set to the name of the container defined in the configuration file to override the default container selection. By default, the internet accessible container is the first container to define port 80 or 8080, or, when no such container is found, the first container defined in the configuration file. | |
345345
| `WEBSITES_PORT` | For a custom container, the custom port number on the container for App Service to route requests to. By default, App Service attempts automatic port detection of ports 80 and 8080. This setting isn't injected into the container as an environment variable. ||
346346
| `WEBSITE_CPU_CORES_LIMIT` | By default, a Windows container runs with all available cores for your chosen pricing tier. To reduce the number of cores, set to the number of desired cores limit. For more information, see [Customize the number of compute cores](configure-custom-container.md?pivots=container-windows#customize-the-number-of-compute-cores).||
347-
| `WEBSITE_MEMORY_LIMIT_MB` | By default all Windows Containers deployed in Azure App Service are limited to 1 GB RAM. Set to the desired memory limit in MB. The cumulative total of this setting across apps in the same plan must not exceed the amount allowed by the chosen pricing tier. For more information, see [Customize container memory](configure-custom-container.md?pivots=container-windows#customize-container-memory). ||
347+
| `WEBSITE_MEMORY_LIMIT_MB` | By default all Windows Containers deployed in Azure App Service have a memory limit configured depending on the App Service Plan SKU. Set to the desired memory limit in MB. The cumulative total of this setting across apps in the same plan must not exceed the amount allowed by the chosen pricing tier. For more information, see [Customize container memory](configure-custom-container.md?pivots=container-windows#customize-container-memory). ||
348348

349349
<!--
350350
CONTAINER_ENCRYPTION_KEY

0 commit comments

Comments
 (0)