Skip to Content

AZ-104: Azure Resource Manager Templates Explained

Learn how to use Azure Resource Manager templates to deploy and manage your Azure infrastructure. Find out what happens if you run the same template twice and why it matters.

Table of Contents

Question

What happens if the same template is run a second time?

A. Azure Resource Manager deploys the new resources as copies of the previously deployed resources.
B. Azure Resource Manager doesn’t change the deployed resources.
C. Azure Resource Manager deletes the previously deployed resources and redeploys them.

Answer

B. Azure Resource Manager doesn’t change the deployed resources.

Explanation

If the resource already exists and no change is detected in the properties, no action is taken. If the resource already exists and a property has changed, the resource is updated. If the resource doesn’t exist, it’s created.

Azure Resource Manager templates are idempotent, which means they can be run multiple times and produce the same result. If the same template is run a second time, Resource Manager compares the template with the existing resources and makes no changes if they match. If there are any differences, Resource Manager updates the resources to match the template.

A is incorrect. If the resource already exists and no change is detected in the properties, no action is taken. If the resource already exists and a property has changed, the resource is updated. If the resource doesn’t exist, it’s created.
C is incorrect. If the resource already exists and no change is detected in the properties, no action is taken. If the resource already exists and a property has changed, the resource is updated. If the resource doesn’t exist, it’s created.

Microsoft Azure Administrator AZ-104 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Azure Administrator AZ-104 exam and earn Microsoft Azure Administrator AZ-104 certification.