Governance Transforms Terraform Resource Group - Azure/az-prototype GitHub Wiki
Ensure resource group azapi_resource blocks have parent_id
Domain: iac
| Check | Description |
|---|---|
| TFM-RG-001 | Add parent_id to resource group resources that are missing it |
Add parent_id to resource group resources that are missing it
Rationale: The azapi provider requires parent_id on all resources. For resource groups, parent_id must be /subscriptions/${var.subscription_id}. Without it, terraform plan fails immediately.
Agents: terraform-agent
All
Type: Structured
Search: 'azapi_resource for resourceGroups without parent_id'
Replace: 'added parent_id'
Handler: add_resource_group_parent_id