Skip to content

Commit c5c619e

Browse files
authored
Merge pull request #127482 from tulikac/main
added another FAQ to revert sitecontainer config
2 parents 0be8187 + 187ba6b commit c5c619e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

articles/app-service/configure-sidecar.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,27 @@ For a custom container, you need to explicitly enable sidecar support. In the po
2525

2626
:::image type="content" source="media/configure-sidecar/enable-sidecar.png" alt-text="A screenshot showing a custom container app's container settings with the Start Update button highlighted.":::
2727

28-
With the Azure CLI, set `LinuxFxVersion` to `sitecontainers`. For example:
28+
With the Azure CLI, convert your web app to use the `sitecontainers` configuration. For example:
2929

3030
```azurecli
31-
az webapp config set --name <app-name> --resource-group <resource-group> --linux-fx-version sitecontainers
31+
az webapp sitecontainers convert --mode sitecontainers --name <YourWebAppName> --resource-group <YourResourceGroup>
3232
```
3333

34+
This updates the `LinuxFxVersion` to `sitecontainers` and enables support for the sidecar pattern.
35+
36+
### Revert to classic custom container (Docker) mode
37+
38+
If you need to switch back from the sidecar-enabled configuration to the classic Docker-based setup, run the following command:
39+
40+
```azurecli
41+
az webapp sitecontainers convert \
42+
--mode docker \
43+
--name <app-name> \
44+
--resource-group <resource-group>
45+
```
46+
47+
This command removes all sidecar containers and resets your app to use the classic `DOCKER|<image>` style configuration. For full details, see the [Azure CLI documentation for `az webapp sitecontainers convert`](/cli/azure/webapp/sitecontainers).
48+
3449
For more information, see [What are the differences for sidecar-enabled custom containers?](#what-are-the-differences-for-sidecar-enabled-custom-containers)
3550

3651
### What are the differences for sidecar-enabled custom containers?

0 commit comments

Comments
 (0)