output "assignment_id" { description = "The initiative assignment. Compliance results are listed under it in Azure Policy." value = azurerm_management_group_policy_assignment.guardrails.id } output "verify" { description = "Checks, about 30 minutes after apply." value = <<-EOT az policy state summarize --management-group ${element(split("/", var.management_group_id), 3)} --filter "policyAssignmentName eq 'guardrail-baseline'" In audit mode: the counts show what enforcing would refuse. Set enforce = true when they are understood. Enforced: az storage account create -n guardtest$RANDOM -g --allow-blob-public-access true # RequestDisallowedByPolicy EOT }