Skip to content

added another FAQ to revert sitecontainer config #127482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions articles/app-service/configure-sidecar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <app-name> --resource-group <resource-group> --linux-fx-version sitecontainers
az webapp sitecontainers convert --mode sitecontainers --name <YourWebAppName> --resource-group <YourResourceGroup>
```

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 <app-name> \
--resource-group <resource-group>
```

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).

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?
Expand Down