Pcornel
Cloud · Microsoft Azure

ARM Templates and Bicep

Cheat sheet · https://pcornel.dk/topic.php?topic=7005

Back to the Topic

Answer

ARM templates (JSON) and Bicep (a simpler language that compiles to ARM JSON) declare Azure resources. Azure Resource Manager deploys them at resource group, subscription, management group or tenant scope; what-if previews the changes first.

Remember

Incremental mode (default) creates or updates what is in the template and leaves other resources alone — but resets omitted properties of resources it does define. Complete mode deletes resources not in the template; it is being deprecated in favour of deployment stacks. Always run what-if before deploying to production.

First checks

  • az deployment group what-if — preview create/modify/delete.
  • az deployment group list — deployment history and state.
  • az deployment operation group list — per-resource result of one deployment.
  • az bicep build — compile and lint locally.

Verify in this order

Bicep/ARM source → build/lint → validation (template, policy, RBAC) → what-if → deployment at a scope → resource operations → deployment history

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=7005

Confirmation

Confirm action

Continue?