We can do a deploy using the Az CLI with the following command, for example:
az deployment group create --resource-group testrg --name rollout01 \
--template-uri https://myresource/azuredeploy.json --parameters @myparameters.json
The mode by default is Incremental and it could be changed Complete, which deletes everything in the resource group when we do a deploy.
But what if i simply want to do a revert of the previous infrastructure deploy? lets suppose the deploy added an app service
in a resource group that already had many things. Now i only want to delete that app service, i don't want to do it manually (it could have been a lot more complex infrastructure deployment, i mention an app service to simplify), i just want to revert everything from the deploy and have the app service deleted.
I found this command az deployment group delete
but it only seems to delete the history of the deployment resource, that is not what i want, i want to delete the resources created by the deployment.
Is there a way to do this?