I am using below Azure Powershell command to remove an ACA Environment, but it is not working:
Remove-AzAppServiceEnvironment -Name fer-bpbu-d-cae-euwe-dev -ResourceGroupName "fer-bpbu-d-rsg-conapp"
Unable to find appropriate command to remove this.
To delete Azure Container App Environment using Azure PowerShell, you can run below command:
Remove-AzContainerAppManagedEnv -EnvName <env_name> -ResourceGroupName <rg_name>
I have one Azure Container App Environment named srienv
with 0 container apps like below:
To get the above environment details from Azure PowerShell, you can run below command:
Get-AzContainerAppManagedEnv -EnvName srienv -ResourceGroupName Sri
Response:
To delete the above Container App Environment, I ran below command:
Get-AzContainerAppManagedEnv -EnvName srienv -ResourceGroupName Sri | Remove-AzContainerAppManagedEnv
Response:
When I checked the same in Portal, Container App Environment named srienv
deleted successfully like below:
Reference: Remove-AzContainerAppManagedEnv (Az.App) | Microsoft