Hello moti jirata,
Greetings! Thanks for raising this question in Q&A forum.
The Deny effect in Azure Policy is used to block resource requests that don't comply with your defined governance standards. When a resource creation or update request matches a deny policy, it is blocked before it even reaches the Resource Provider and returns a 403 (Forbidden) error.
Why the Deny Policy Triggers
Azure Policy evaluates every resource create/update request. The deny effect is processed before audit, so any non-compliant resource is blocked immediately. Common reasons this happens:
- The resource doesn't meet location restrictions (e.g., only
eastus is allowed)
The resource type isn't permitted in your subscription or resource group
Required tags are missing on the resource
SKU or pricing tier doesn't match the policy rules
How Deny Policy Evaluation Works
Azure Policy uses a cumulative most restrictive model — if multiple policies apply to the same resource and both have a deny effect, the resource is blocked regardless of scope. The evaluation order is:
disabled (checked first — skips evaluation if disabled)
append and modify (can alter the request)
deny (blocks the request if matched)
audit (logs non-compliance)
auditIfNotExists / deployIfNotExists (evaluated last)
How to Fix or Bypass a Deny Policy
Check which policy is blocking: Go to Azure Portal → Resource Group / Subscription → Policies → Compliance and look for non-compliant assignments
Add an exclusion: If a specific resource or resource group should be exempt, add it as an exclusion in the policy assignment scope
Update the policy rule: If the policy condition is too restrictive, modify the if condition in the policy definition to narrow its scope
Use the correct values: Ensure your resource properties (location, SKU, tags) align with what the policy expects
Deny vs. DenyAction
These are two different effects — don't confuse them:
| Effect |
Blocks |
Use Case |
deny |
Create / Update requests |
Enforce standards on resource configuration |
|
|
|
deny |
Create / Update requests |
Enforce standards on resource configuration |
denyAction |
Delete requests |
Protect critical resources from accidental deletion |
If you share the specific error message or the policy rule that is blocking you, I can help narrow down the exact fix!
If this answer helps you kindly accept the answer which will help others who have similar questions.
Best Regards,
Jerald Felix.