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.
More on Azure DevOps, Bicep and Terraform
What services make up Azure DevOps?BeginnerWhat are branch policies in Azure Repos?BeginnerExplain the YAML pipeline structure in Azure Pipelines.BeginnerWhat are service connections and how should they authenticate?IntermediateWhat are environments in Azure Pipelines?IntermediateWhat deployment strategies do deployment jobs support?Intermediate