Azure Administrator AZ-104 · Deploy and Manage Azure Compute Resources · hard
A resource group named RG-App currently contains three resources: VM1, VNet1, and Storage1. An administrator runs az deployment group create against RG-App using a Bicep template that defines only Storage1 and a new VM2, and specifies --mode Complete. Assuming no resource locks exist, what happens to VM1 and VNet1?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: D. Both VM1 and VNet1 are deleted because they are omitted
In Complete deployment mode, Azure Resource Manager deletes any existing resources in the target resource group that are not explicitly declared in the template being deployed. Because VM1 and VNet1 are omitted from the Bicep template, ARM deletes them (whereas Incremental mode leaves undeclared resources untouched).
Why the other options are wrong
- A. Both VM1 and VNet1 remain untouched while VM2 is added to RG-App — Leaving existing undeclared resources untouched is the behavior of Incremental mode, not Complete mode.
- B. The deployment fails immediately with a resource group conflict error — Complete mode is designed to reconcile the resource group state to match the template by deleting omitted resources.
- C. VM1 and VNet1 are automatically moved to the default resource group — ARM never moves undeclared resources to another resource group during Complete mode.
More Deploy and Manage Azure Compute Resources questions
- You deploy 12 identical Azure Virtual Machines into a single Availability Set configured with 3 Fault Domains (FDs)…
- A security policy prohibits assigning Public IP addresses to any Azure Virtual Machine and forbids opening inbound…
- A web team uses Azure App Service (Standard S1 plan) with a production slot and a staging deployment slot. The staging…
- A platform engineering team has perfected a golden ARM / Bicep template for deploying compliant virtual networks and…
- An administrator wants to deploy 4 Azure Storage accounts (stlogs0, stlogs1, stlogs2, stlogs3) across a resource group…
All Deploy and Manage Azure Compute Resources questions and the topic overview →
Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.