AZ-104 Practice Question 75: Bicep What If Preview
Microsoft Azure Administrator Associate (AZ-104) · Test 8 · question 5 of 10
Before deploying a Bicep file to a production resource group, an administrator wants a report of which resources will be created, modified or deleted, without changing anything.
Which command should the administrator run?
Show answer and explanation
Answer:
The what-if operation compares the template with the current state of the resource group and lists the resources that would be created, modified or deleted, and it changes nothing.
Option A, validate, checks that the template is valid and could be deployed, but it does not list the changes that would be made to existing resources.
Option B compiles the Bicep file to an ARM JSON template and does not contact Azure at all.
Option D performs the deployment, and in Complete mode it also deletes resources that are not in the template.
Reference: Bicep deployment what-if operation