Scanning Terraform Against Azure Policy at Build Time in Azure DevOps
Azure Policy stops noncompliant resources at deploy time. This shows how to catch the same violations earlier, in the Azure DevOps build, so a bad Terraform plan fails the pipeline instead of the deployment.