Soru

Zorluk: KolayAzure Resource Manager (ARM) and ARM Templates/Bicep

Is the following statement true or false?

Redeploying an Azure Resource Manager (ARM) template to a resource group deletes and recreates all existing resources defined in the template, even if their configuration has not changed.

Cevap: Cevap

Cevap

The statement is false. Redeploying an Azure Resource Manager (ARM) template does not delete and recreate existing resources that are unchanged.
The statement is false because Azure Resource Manager (ARM) template deployments are idempotent and run in incremental mode by default. When a template is redeployed, ARM compares the resources defined in the template with the existing resources in the resource group. It only creates new resources or updates those with configuration changes, leaving unchanged resources unmodified rather than deleting and recreating them.

Adım Adım Çözüm

1
Analyze the statement regarding resource recreation during template redeployment.
The statement asserts that redeploying an ARM template deletes and recreates all defined resources regardless of configuration changes.
To evaluate the correctness of this assertion based on ARM deployment mechanics.
2
Recall the properties of ARM template deployments.
ARM templates are declarative and idempotent. By default, they deploy in incremental mode.
Incremental mode ensures that only new resources are created or existing resources with configuration changes are updated.
3
Evaluate the statement's validity.
Since unchanged resources are left untouched, the statement is false.
ARM does not delete and recreate unchanged resources during a template redeployment.

Anahtar Kavram

ARM Template Deployment Modes and Idempotency
Bu soruyu puanla