A resource group named RG-App contains a virtual network, a storage account, and a virtual machine. An administrator deploys an ARM template to RG-App that defines only the virtual network, using Complete mode. What happens to the storage account and the virtual machine?
Choose one.
ARM deployments run in one of two modes. Incremental (default) adds or updates resources defined in the template and leaves everything else alone. Complete makes the resource group match the template exactly, deleting resources that exist in the group but are not in the template.
Because the deployment used Complete mode and the template defines only the virtual network, the storage account and VM are not in the desired state and are deleted. 'Left unchanged' describes Incremental mode. The deployment does not error on extra resources — silent deletion is the documented (and dangerous) behavior. There is no recovery resource group or grace period for deleted resources.
- Before any Complete-mode deployment, list what the template defines and compare it against the resource group's current contents.
- Run the what-if operation ('az deployment group what-if' or -WhatIf) to preview exactly which resources would be deleted.
- Only then deploy with '--mode Complete', or keep the default Incremental mode if extra resources must survive.
Exam tip: Complete mode deletes anything in the resource group that the template doesn't define — always preview with what-if first.
ARM Templates and Bicep: AZ-104 Deployment Guide — the lesson that teaches this.