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

  • ABoth VM1 and VNet1 remain untouched while VM2 is added to RG-App
  • BThe deployment fails immediately with a resource group conflict error
  • CVM1 and VNet1 are automatically moved to the default resource group
  • DBoth VM1 and VNet1 are deleted because they are omittedCorrect answer

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.

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.