Skip to content

Commit ad42197

Browse files
committed
Updated based on feedback from Cephas
1 parent b349f3f commit ad42197

File tree

2 files changed

+17
-31
lines changed

2 files changed

+17
-31
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`](https://learn.microsoft.com/cli/azure/webapp/sitecontainers?view=azure-cli-latest).
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?

articles/app-service/overview-sidecar.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -52,35 +52,6 @@ Use Azure Monitor, Log Analytics, and the Diagnose & Solve blade in the Azure po
5252
### Are there any limitations?
5353
Persistent Azure storage is not supported for sidecars. App Service Environment (ASE) and national clouds may not be supported yet. Check the latest Azure documentation for updates.
5454

55-
### How do I revert my app from the new sidecar configuration back to the classic custom container setup?
56-
57-
If you’ve already moved your web app to the new sidecar configuration (`sitecontainers`) and want to revert to the classic custom container (`docker`) setup, you can do so using the Azure CLI.
58-
59-
Use the following command:
60-
61-
```bash
62-
az webapp sitecontainers convert --mode docker --name <YourWebAppName> --resource-group <YourResourceGroup>
63-
```
64-
65-
This will delete all sidecar configurations and switch your app back to using the `DOCKER|`-style `linuxFxVersion`. You’ll see output confirming the conversion:
66-
67-
```json
68-
{
69-
"mode": "docker",
70-
"result": "success"
71-
}
72-
```
73-
74-
> **Note:** You must run this command on a web app that is currently using the `sitecontainers` configuration. If your app is not in that mode, the CLI will return an error.
75-
76-
To switch *to* sidecar mode from a classic custom container setup, use:
77-
78-
```bash
79-
az webapp sitecontainers convert --mode sitecontainers --name <YourWebAppName> --resource-group <YourResourceGroup>
80-
```
81-
82-
For full details, see the [Azure CLI documentation for `az webapp sitecontainers convert`](https://learn.microsoft.com/en-us/cli/azure/webapp/sitecontainers?view=azure-cli-latest).
83-
8455
## More resources
8556

8657
- [Interactive guide: sidecars in Azure App Service](https://mslabs.cloudguides.com/guides/Modernize%20existing%20web%20apps%20with%20new%20capabilities%20using%20Sidecar%20patterns)

0 commit comments

Comments
 (0)