Policy FAQ and tips
Common questions about the policy guardrails.
- A deployment failed with
RequestDisallowedByPolicy. Check the mode. Indenymode, find the failing assignment in the activity log and fix the resource, or switch toaudit. - Policy shows non-compliant straight after deployment. Compliance evaluation can take up to about 30 minutes. Trigger a scan with
az policy state trigger-scan. - I already have tenant-wide policy. Use
policy_mode: noneand let your own assignments apply. Check them against the policy assignments first. - Can I add more policies? Yes. Add an entry to the
policiesmap ininfra/policy.tf(Terraform) or thepoliciesarray ininfra/workload.bicep(Bicep). Browse built-ins in AzAdvertizer or the Learn built-in list. - Preview policies. The accelerator does not assign preview policies.
Live status
The e2e.yml workflow applies the assignments in the default audit mode to a real subscription in every scenario except existing-platform, which defaults to none. deny mode has not been tested live.