Skip to content

Commit 13f8568

Browse files
author
Simon Jakesch
committed
adding provisionState:Scheduled for deletion workaround
1 parent 9d73501 commit 13f8568

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

articles/container-apps/troubleshooting.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The following table lists issues you might encounter while using Azure Container
2929
| Responses not as expected | The container app endpoint responds to requests, but the responses aren't as expected. | [Verify traffic is routed to the correct revision](#verify-traffic-is-routed-to-the-correct-revision)<br><br>[Verify you're using unique tags when deploying images to the container registry](/azure/container-registry/container-registry-image-tag-version) |
3030
| Missing parameters error | You receive error messages about missing parameters when you run `az containerapp` commands in the Azure CLI, or run cmdlets from the `Az.App` module in Azure PowerShell. | [Verify latest version of Azure Container Apps extension is installed](#verify-latest-version-of-azure-container-apps-extension-is-installed) |
3131
| Preview features not available | [Preview features](./whats-new.md) are not available when you run `az containerapp` commands in the Azure CLI. | [Verify Azure Container Apps extension allows preview features](#verify-azure-container-apps-extension-allows-preview-features) |
32+
| Deleting your app or environment doesn't work | This issue is often accompanied by a message such as **provisioningState: ScheduledForDelete**. | [Manually delete the VNet being used](#manually-delete-the-vnet-being-used-by-the-azure-container-apps-environment) |
3233

3334
## View logs
3435

@@ -212,6 +213,27 @@ If [preview features](./whats-new.md) are not available when you run `az contain
212213
az extension add --name containerapp --upgrade --allow-preview true
213214
```
214215

216+
217+
## Manually delete the VNet being used by the Azure Container Apps environment
218+
219+
If you receive the message **provisioningState: ScheduledForDelete**, but your environment fails to actually delete, make sure to delete your associated VNet manually.
220+
221+
1. Identify the VNet being used by the environment you're trying to delete:
222+
```azurecli
223+
az containerapp env show --resource-group $RG --name $ACA_ENV
224+
```
225+
In the output shown above look for the `infrastructureSubnetId` and note down the VNet name.
226+
227+
2. Delete the VNet manually:
228+
```azurecli
229+
az network vnet delete --resource-group $RG --name $VNET_NAME
230+
```
231+
232+
3. Delete the Azure Container Apps environment:
233+
```azurecli
234+
az containerapp env delete --resource-group $RG --name $ACA_ENV --yes
235+
```
236+
215237
## Next steps
216238

217239
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)