# Azure Policy (built-in definitions): what it can block and where it stops

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

Azure Policy (built-in definitions) is a Azure mechanism. Azure Policy evaluates resource create and update requests against assigned policy definitions. It applies to resources at the scope of the assignment (management group, subscription, resource group) and their children, except notScopes and exemptions.

Azure Policy evaluates resource create and update requests against assigned policy definitions. With the deny effect, a matching request is stopped before it reaches the resource provider; other effects such as modify and deployIfNotExists change or deploy settings instead of blocking.

Azure Policy evaluates create and update requests against assigned definitions. With the deny effect a matching request is stopped before it reaches the resource provider; modify and deployIfNotExists change or deploy settings instead. It applies at the scope of the assignment (management group, subscription or resource group) and below, except notScopes and exemptions.

Limits: deny acts on create and update, so existing matching resources are only marked noncompliant, and denyAction does not protect child and extension resources when a delete targets the parent. To test, set enforcementMode to DoNotEnforce on the assignment, or assign with the audit effect first. 27 library entries use Azure Policy, taken from the Azure/azure-policy repository.

## Documented limits

- Deny acts on create and update requests; existing resources that match are only marked non-compliant. ([source](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny))
- Scopes excluded with notScopes are not evaluated at all. ([source](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/scope))
- Effects are evaluated in order, and an earlier modify or append can change the request so a deny does not trigger. ([source](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-basics))
- denyAction does not protect child and extension resources when the delete targets the parent. ([source](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny-action))

## Testing before enforcement

Set enforcementMode to DoNotEnforce on the assignment to evaluate it before enforcement; the audit effect separately creates a warning event without stopping the request. ([source](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/assignment-structure))

## The 27 library entries written in it

- [Allowed locations for new resources](/guardrails/azure-policy-allowed-locations/): Azure, Azure Policy (built-in definitions), region and residency
- [Allowed resource types](/guardrails/azure-policy-allowed-resource-types/): Azure, Azure Policy (built-in definitions), resource and cost
- [Not allowed resource types](/guardrails/azure-policy-not-allowed-resource-types/): Azure, Azure Policy (built-in definitions), resource and cost
- [Do not allow deletion of resource types](/guardrails/azure-policy-deny-action-delete/): Azure, Azure Policy (built-in definitions), organization integrity
- [Allowed virtual machine size SKUs](/guardrails/azure-policy-allowed-vm-sizes/): Azure, Azure Policy (built-in definitions), resource and cost
- [Network interfaces should not have public IPs](/guardrails/azure-policy-nic-no-public-ip/): Azure, Azure Policy (built-in definitions), public exposure
- [Network interfaces should disable IP forwarding](/guardrails/azure-policy-nic-no-ip-forwarding/): Azure, Azure Policy (built-in definitions), network perimeter
- [Gateway subnets should not have a network security group](/guardrails/azure-policy-gateway-subnet-no-nsg/): Azure, Azure Policy (built-in definitions), network perimeter
- [Configure storage accounts to disallow public blob access](/guardrails/azure-policy-storage-disable-public-blob/): Azure, Azure Policy (built-in definitions), public exposure
- [Storage accounts should disable public network access](/guardrails/azure-policy-storage-disable-public-network/): Azure, Azure Policy (built-in definitions), public exposure
- [Storage accounts should have the specified minimum TLS version](/guardrails/azure-policy-storage-min-tls/): Azure, Azure Policy (built-in definitions), encryption and keys
- [Storage accounts should prevent shared key access](/guardrails/azure-policy-storage-no-shared-key/): Azure, Azure Policy (built-in definitions), identity and privilege
- [Storage SAS tokens should adhere to 7 day maximum validity](/guardrails/azure-policy-storage-sas-7-days/): Azure, Azure Policy (built-in definitions), data exfiltration
- [Key vaults should have deletion protection enabled](/guardrails/azure-policy-keyvault-purge-protection/): Azure, Azure Policy (built-in definitions), encryption and keys
- [Azure Key Vault should use the RBAC permission model](/guardrails/azure-policy-keyvault-use-rbac/): Azure, Azure Policy (built-in definitions), identity and privilege
- [Configure key vaults to enable the firewall](/guardrails/azure-policy-keyvault-firewall/): Azure, Azure Policy (built-in definitions), network perimeter
- [OS and data disks should be encrypted with a customer-managed key](/guardrails/azure-policy-disk-cmk/): Azure, Azure Policy (built-in definitions), encryption and keys
- [Azure SQL Database should have Microsoft Entra-only authentication enabled](/guardrails/azure-policy-sql-entra-only/): Azure, Azure Policy (built-in definitions), identity and privilege
- [Deploy diagnostic settings for Key Vault to Event Hub](/guardrails/azure-policy-keyvault-diagnostic-logs/): Azure, Azure Policy (built-in definitions), logging and monitoring
- [Application Insights components should block non-Entra ingestion](/guardrails/azure-policy-appinsights-entra-ingestion/): Azure, Azure Policy (built-in definitions), logging and monitoring
- [Configure Cognitive Services accounts to disable public network access](/guardrails/azure-policy-ai-disable-public-network/): Azure, Azure Policy (built-in definitions), ai services
- [Configure Cognitive Services accounts to disable local authentication](/guardrails/azure-policy-ai-disable-local-auth/): Azure, Azure Policy (built-in definitions), ai services
- [Configure Azure AI Services resources to disable local key access](/guardrails/azure-policy-ai-disable-local-auth-dine/): Azure, Azure Policy (built-in definitions), ai services
- [Configure Azure Machine Learning workspaces to disable public network access](/guardrails/azure-policy-ml-workspace-disable-public-network/): Azure, Azure Policy (built-in definitions), ai services
- [Azure Machine Learning registry deployments restricted to the allowed registry (preview)](/guardrails/azure-policy-ml-registry-models/): Azure, Azure Policy (built-in definitions), ai services
- [Microsoft Foundry agents and toolboxes should not use denied tools (preview)](/guardrails/azure-policy-foundry-denied-tools/): Azure, Azure Policy (built-in definitions), ai services
- [Azure AI Search services should disable public network access](/guardrails/azure-policy-search-disable-public-network/): Azure, Azure Policy (built-in definitions), ai services

**Where Act is behind.** Act writes guardrails in the provider's own mechanisms and hands them to your pipeline to enforce, so it is bounded by what those mechanisms can express in each cloud. It does not apply them itself, the boundary types it names are AWS's and Azure's, and exception and waiver handling after a guardrail ships was described as roadmap.

## Related pages

- [Azure RBAC deny assignments (created by deployment stacks): how it works, its limits and how to test it](/mechanisms/rbac-deny-assignment/)
- [Azure resource locks: how it works, its limits and how to test it](/mechanisms/resource-lock/)
- [Management group assignment: how it works, its limits and how to test it](/mechanisms/management-groups/)

## Sources

- Azure Policy (built-in definitions): https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny (read 10 Nov 2026)
- Limit: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/scope (read 10 Nov 2026)
- Limit: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-basics (read 10 Nov 2026)
- Limit: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny-action (read 10 Nov 2026)
- Testing: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/assignment-structure (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/mechanisms/azure-policy/
