A development team is preparing to deploy an application consisting of a Web App, an Azure SQL Database, and a Storage Account. A developer suggests writing a step-by-step PowerShell script to create the resources in a specific sequence to prevent dependency conflicts during deployment.
Which of the following describes how Azure Resource Manager (ARM) templates or Bicep files handle this requirement?
- AARM templates act as imperative scripts, executing each resource block in the exact top-to-bottom sequence written in the file.
- BARM templates resolve execution order by requiring all deployed resources to reside in the same location as the target resource group.
- ARM templates are declarative, allowing ARM to analyze defined dependencies and deploy resources in parallel or the correct order automatically.Answer
- DARM templates resolve dependencies by nesting the resource groups of dependent resources inside each other.
Answer
ARM templates are declarative, allowing ARM to analyze defined dependencies and deploy resources in parallel or the correct order automatically.
The correct option is correct because ARM templates and Bicep use a declarative syntax. You define the desired end state of the infrastructure, and Azure Resource Manager determines the correct order to deploy the resources, utilizing parallel execution where possible and resolving dependencies dynamically.
Step-by-Step Solution
Key Concept
Declarative nature and dependency orchestration of Azure Resource Manager (ARM) templates
Estimated Time:1m 0s