Skip to content

Commit efbd61f

Browse files
authored
fix persistent storage behavior language
1 parent 8966147 commit efbd61f

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,18 @@ When persistent storage is disabled, then writes to the `C:\home` directory are
202202

203203
The only exception is the `C:\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-windows) 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.
204204

205+
By default, persistent storage is *disabled* on Windows custom containers. To enable it, set the `WEBSITES_ENABLE_APP_SERVICE_STORAGE` app setting value to `true` via the [Cloud Shell](https://shell.azure.com). In Bash:
206+
207+
```azurecli-interactive
208+
az webapp config appsettings set --resource-group <group-name> --name <app-name> --settings WEBSITES_ENABLE_APP_SERVICE_STORAGE=true
209+
```
210+
211+
In PowerShell:
212+
213+
```azurepowershell-interactive
214+
Set-AzWebApp -ResourceGroupName <group-name> -Name <app-name> -AppSettings @{"WEBSITES_ENABLE_APP_SERVICE_STORAGE"=true}
215+
```
216+
205217
::: zone-end
206218

207219
::: zone pivot="container-linux"
@@ -214,9 +226,7 @@ The only exception is the `/home/LogFiles` directory, which is used to store the
214226

215227
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.
216228

217-
::: zone-end
218-
219-
By default, persistent storage is **enabled** on custom containers, you can disable this through app settings. 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:
229+
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:
220230

221231
```azurecli-interactive
222232
az webapp config appsettings set --resource-group <group-name> --name <app-name> --settings WEBSITES_ENABLE_APP_SERVICE_STORAGE=false
@@ -228,6 +238,8 @@ In PowerShell:
228238
Set-AzWebApp -ResourceGroupName <group-name> -Name <app-name> -AppSettings @{"WEBSITES_ENABLE_APP_SERVICE_STORAGE"=false}
229239
```
230240

241+
::: zone-end
242+
231243
> [!NOTE]
232244
> You can also [configure your own persistent storage](configure-connect-to-azure-storage.md).
233245

0 commit comments

Comments
 (0)