What specific syntax needs to be used in order to successfully destroy all resources that were created by the
devenvironmentdeployment group in the code below?
The Context:
A collection of resources are created in Azure when the following command is run:
az deployment group create --name devenvironment --resource-group myResourceGroupDev --template-file C:\path\to\my.template.json --parameters C:\path\to\my.parameters.json --verbose
The Problem:
The problem we are having is that the following command leaves all the created resources intact in Azure:
az deployment group delete --name devenvironment --resource-group myResourceGroupDev --verbose
All that this az deployment group delete command does is delete the wrapper devenvironment that associates the resources that were created using the az deployment group create command above. This az deployment group delete command fails to have any effect on the actual resources that were created.
Desired Result:
What we want is a command that will result in destroying all of the resources that were created by the az deployment group create command.
We want a command like terraform destroy that destroys all the resources that were created in an ARM deployment, but using the az cli.
What specific syntax will bring about our desired result?

