Bitzu

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

Single choice

Which deployment mode does Azure Resource Manager use when none is specified?

  1. Complete
  2. Incremental
  3. Validate-only
  4. 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.

Select all that apply

Which statements about incremental mode are correct?

  1. It is the default mode
  2. Resources not in the template are left unchanged
  3. Resources not in the template are deleted
  4. Properties omitted for an existing resource may reset to defaults
  5. 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

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.

Download on the App StoreGet it on Google Play

More AZ-400 topics in this module