1 min read

Preview Azure deployments with Bicep what-if


Preview before you deploy

Before running a Bicep deployment, check what will change:

whatif.sh
az deployment group what-if \
  --resource-group myRG \
  --template-file main.bicep \
  --parameters main.prod.bicepparam

The output color-codes changes: green for create, orange for modify, red for delete.

For subscription-level deployments:

whatif_sub.sh
az deployment sub what-if \
  --location westeurope \
  --template-file main.bicep

Tip: Add --result-format FullResourcePayloads to see the complete resource definitions, not just the diff.