Skip to content

Commit b349f3f

Browse files
committed
added another FAQ to revert config
1 parent 0cd9b0f commit b349f3f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

articles/app-service/overview-sidecar.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,35 @@ 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+
5584
## More resources
5685

5786
- [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)