How to remove all deployed resources based on deployment name in Azure

Viewed 8950

I'm working on provisioning new Azure environment using ARM templates. In order to deploy I use the Azure PowerShell New-AzureRmResourceGroupDeployment command, where I specify DeploymentName , ResourceGroupName etc.

However, when I want to remove the deployed resources by running

Remove-AzureRmResourceGroupDeployment -Name DeploymentName -ResourceGroupName RGname -Force 

it does not remove resources. It just deletes a tag in deployment tab in Azure portal. Is there a way to rollback or remove deployment with related resources? I don't want to delete whole Resource group.

3 Answers
Related