I cannot delete an Azure Container App, as it remains stuck in "Status=Unknown"

Alexander Harrington 25 Reputation points
2025-12-12T14:20:57.96+00:00

I have been trying to delete an Azure Container App over the last five hours.
The deletion just keeps spinning, and the status of the app is stuck as "Unknown".

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-12-12T14:21:09.72+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    If your Azure Container App is stuck in the "Status=Unknown" state during deletion, you may need to manually delete the associated Virtual Network (VNet) that is being used by the Azure Container Apps environment. Here are the steps you can follow:

    1. Identify the VNet being used by the environment you're trying to delete. You can do this by running the following command in Azure CLI, replacing <RESOURCE_GROUP> and <ENVIRONMENT> with your actual resource group and environment names:
         az containerapp env show --resource-group <RESOURCE_GROUP> --name <ENVIRONMENT>
      
      Look for the infrastructureSubnetId in the output to find the VNet ID.
    2. Once you have the VNet ID, delete the VNet manually using the following command:
         az network vnet delete --resource-group <RESOURCE_GROUP> --name <VNET_ID>
      
    3. After deleting the VNet, you can attempt to delete the Azure Container Apps environment again with:
         az containerapp env delete --resource-group <RESOURCE_GROUP> --name <ENVIRONMENT> --yes
      

    This should help resolve the issue and allow you to delete the container app successfully.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.