AZ-400 ยท Infrastructure as code
ARM templates and Bicep in pipelines
ARM template and Bicep structure, parameters and modules, deployment scopes and modes (incremental/complete), what-if, deploying from Azure Pipelines and GitHub Actions, template specs.
Key points
- Bicep compiles to ARM JSON; both are declarative; reuse via parameters and modules.
- Scopes: resource group, subscription, management group, tenant.
- Incremental (default): leaves unlisted resources alone. Complete: deletes them; deployment stacks are now recommended for deletions.
- Pipelines: lint/build, what-if preview, deployment.
- Template specs: versioned templates in Azure, RBAC-controlled sharing.
Source: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-modes
Practice questions
Which deployment mode does Azure Resource Manager use when none is specified?
- Complete
- Incremental
- Validate-only
- Replace
Show answer
Answer: B. Incremental
Incremental is the default and leaves resources that are not in the template untouched. Complete mode must be requested explicitly.
Which statements about incremental mode are correct?
- It is the default mode
- Resources not in the template are left unchanged
- Resources not in the template are deleted
- Properties omitted for an existing resource may reset to defaults
- It can only be used at subscription scope
Show answer
Answer: A. It is the default mode, B. Resources not in the template are left unchanged, D. Properties omitted for an existing resource may reset to defaults
Incremental mode is the default, keeps resources absent from the template, and reapplies all properties of resources that are in it (unspecified ones reset to defaults). Deleting extra resources is complete mode behavior.
True or false: complete mode is the currently recommended way to delete resources that a Bicep deployment no longer defines.
Show answer
Answer: False
False. Documentation recommends deployment stacks for deletions because complete mode is being gradually deprecated.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
