Skip to content

Commit 129b908

Browse files
Merge pull request #291604 from seligj95/patch-2
asev1/v2 deletion
2 parents 1e07da9 + ff6d9ad commit 129b908

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

articles/app-service/environment/auto-migration.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The following errors might be displayed in the portal if you're ineligible for a
7474

7575
## What to do if your App Service Environment is suspended
7676

77-
If your App Service Environment is suspended, you have two options.
77+
If your App Service Environment is suspended, you have three options.
7878

7979
### Unsuspend and self-migrate
8080

@@ -88,6 +88,14 @@ If you want to expedite migration, you can resume/unsuspend your environment as
8888

8989
:::image type="content" source="./media/migration/resume-as-asev3.png" alt-text="Screenshot that shows the button on the Migration page where you can resume as an App Service Environment v3.":::
9090

91+
### Delete your App Service Environment
92+
93+
If you no longer need your App Service Environment, you can delete your environment using the following CLI command. Replace the placeholders for the subscription id, environment name, and resource group with your values for the App Service Environment that you want to delete. The Azure CLI is the only available method for deleting your environment. If you haven't previously used the Azure CLI, [install the Azure CLI](/cli/azure/install-azure-cli) or use [Azure Cloud Shell](https://shell.azure.com/) and use a Bash shell. Deleting your environment will also delete the associated apps and App Service plans. This action is irreversible.
94+
95+
```azurecli
96+
az rest --method delete --url "https://management.azure.com/subscriptions/<SUBSCRIPTION-ID>/resourceGroups/<RESOURCE-GROUP>/providers/Microsoft.Web/hostingEnvironments/<ASE-NAME>?api-version=2020-12-01" --url-parameters forceDelete=true --verbose
97+
```
98+
9199
## Features to limit the effects of auto-migrations
92100

93101
To limit the effect of auto-migrations, we implemented the following features to the auto-migration feature.

0 commit comments

Comments
 (0)