Interview Prep/Azure/Azure DevOps, Bicep and Terraform

What does `what-if` do and how reliable is it?

AdvancedConceptAzure DevOps, Bicep and Terraform
Answer

what-if previews changes of a deployment against current state: create, delete (Complete mode/stacks), modify (property-level diff), no change, ignore.

az deployment group what-if -g rg-shop -f main.bicep -p @prod.bicepparam

It can show noise: properties the RP normalises or sets server-side appear as changes. It improved a lot but is not as precise as a Terraform plan. We run it in PR pipelines as a review aid, not as a hard gate.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on Azure DevOps, Bicep and Terraform