Governance Transforms Terraform Resource Group - Azure/az-prototype GitHub Wiki

Terraform Resource Group

Ensure resource group azapi_resource blocks have parent_id

Domain: iac


Checks (1)

Check Description
TFM-RG-001 Add parent_id to resource group resources that are missing it

TFM-RG-001

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

Targets

All

Type: Structured
Search: 'azapi_resource for resourceGroups without parent_id'
Replace: 'added parent_id'
Handler: add_resource_group_parent_id


⚠️ **GitHub.com Fallback** ⚠️