
Preflight check with AzAPI
One of the cool feature switches in the AzAPI Terraform provider is preflight validation. If enabled, this provides further checks against your resources at plan stage, one of which is checking for Azure Policy violations. Cool, right? Let’s see how to enable it: 1 2 3 provider "azapi" { enable_preflight = true } That. Is. It. We’ll make a couple resources: a resource group, a built-in policy assignment restricting locations to New Zealand North & then a demo that will: