diff --git a/articles/app-service/configure-sidecar.md b/articles/app-service/configure-sidecar.md index 890ba2206aba2..fdbb44b7479b0 100644 --- a/articles/app-service/configure-sidecar.md +++ b/articles/app-service/configure-sidecar.md @@ -25,12 +25,27 @@ For a custom container, you need to explicitly enable sidecar support. In the po :::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."::: -With the Azure CLI, set `LinuxFxVersion` to `sitecontainers`. For example: +With the Azure CLI, convert your web app to use the `sitecontainers` configuration. For example: ```azurecli -az webapp config set --name --resource-group --linux-fx-version sitecontainers +az webapp sitecontainers convert --mode sitecontainers --name --resource-group ``` +This updates the `LinuxFxVersion` to `sitecontainers` and enables support for the sidecar pattern. + +### Revert to classic custom container (Docker) mode + +If you need to switch back from the sidecar-enabled configuration to the classic Docker-based setup, run the following command: + +```azurecli +az webapp sitecontainers convert \ + --mode docker \ + --name \ + --resource-group +``` + +This command removes all sidecar containers and resets your app to use the classic `DOCKER|` style configuration. For full details, see the [Azure CLI documentation for `az webapp sitecontainers convert`](/cli/azure/webapp/sitecontainers). + For more information, see [What are the differences for sidecar-enabled custom containers?](#what-are-the-differences-for-sidecar-enabled-custom-containers) ### What are the differences for sidecar-enabled custom containers?