You have learned all about creating and updating Azure resources through IaC. In a template, you describe how you want your resources to be configured, and the Azure Resource Manager makes it so by creating or updating resources. Up to now, we haven’t paid any attention to removing resources you do not need anymore, except for mentioning the Complete deployment mode in chapter 4.
In chapter 4 you learned that Complete deployments are a powerful but risky method for removing resources you do not need anymore. The risk lies in the fact that they remove all resources in a resource group that are not in the current deployment. If someone else deployed something to the same resource group from another context, those resources would be removed as well. In practice, this risky side of Complete deployments is why they are not frequently used in the real world. Some teams use them in non-production environments, but Complete deployments in production environments are rare. We will revisit this in more detail later in this chapter.