I am working on creating a new Azure environment using ARM patterns. For deployment, I use the Azure PowerShell command New-AzureRmResourceGroupDeployment, where I specify DeploymentName, ResourceGroupNameetc.
However, when I want to remove deployed resources by running
Remove-AzureRmResourceGroupDeployment -Name DeploymentName -ResourceGroupName RGname -Force
it does not delete resources. It simply removes the tag from the deployment tab in the Azure portal. Is there a way to roll back or remove a deployment with related resources? I do not want to delete the entire resource group.
source
share