# Azure blocks at create and update, and a deny does not touch what already exists

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

The library holds 30 Azure guardrails across 10 risk classes, written in Azure Policy (built-in definitions), Azure RBAC deny assignments (created by deployment stacks), Azure resource locks, Management group assignment. 28 of them have a documented way to test the effect before enforcing.

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, while modify and deployIfNotExists change or deploy settings instead of blocking, and audit only warns. Effects are evaluated in order, so an earlier modify or append can change the request so a deny does not trigger. Existing resources that match are only marked noncompliant. Assignments cascade from management groups by inheritance, and scopes excluded with notScopes are not evaluated at all.

Three other mechanisms sit beside it. Resource locks block deletion or modification at a subscription, resource group or resource and override user permissions, but they apply only to control plane operations. Deny assignments attach deny actions to principals at a scope; Azure creates them for generally available scenarios such as deployment stack deny settings, and customer-managed deny assignments are in private preview. Management groups organize subscriptions into a hierarchy up to six levels deep. The library holds 30 Azure entries, 27 of them Azure Policy.

## The mechanisms

- [Azure Policy (built-in definitions)](/mechanisms/azure-policy/): Azure Policy evaluates resource create and update requests against assigned policy definitions.
- [Azure RBAC deny assignments (created by deployment stacks)](/mechanisms/rbac-deny-assignment/): A deny assignment attaches a set of deny actions to a user, group or service principal at a scope.
- [Azure resource locks](/mechanisms/resource-lock/): A lock on a subscription, resource group or resource blocks deletion (CanNotDelete) or modification and deletion (ReadOnly) of the locked scope.
- [Management group assignment](/mechanisms/management-groups/): Management groups organize subscriptions into a hierarchy so that policy and access assigned on a management group cascade to all its subscriptions by inheritance.

## The 30 entries

| Guardrail | Cloud | Mechanism | Risk class | Tested first |
| --- | --- | --- | --- | --- |
| [Allowed locations for new resources](/guardrails/azure-policy-allowed-locations/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Region and residency | documented |
| [Allowed resource types](/guardrails/azure-policy-allowed-resource-types/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Resource and cost | documented |
| [Not allowed resource types](/guardrails/azure-policy-not-allowed-resource-types/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Resource and cost | documented |
| [Do not allow deletion of resource types](/guardrails/azure-policy-deny-action-delete/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Organization integrity | documented |
| [Allowed virtual machine size SKUs](/guardrails/azure-policy-allowed-vm-sizes/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Resource and cost | documented |
| [Network interfaces should not have public IPs](/guardrails/azure-policy-nic-no-public-ip/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Public exposure | documented |
| [Network interfaces should disable IP forwarding](/guardrails/azure-policy-nic-no-ip-forwarding/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Network perimeter | documented |
| [Gateway subnets should not have a network security group](/guardrails/azure-policy-gateway-subnet-no-nsg/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Network perimeter | documented |
| [Configure storage accounts to disallow public blob access](/guardrails/azure-policy-storage-disable-public-blob/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Public exposure | documented |
| [Storage accounts should disable public network access](/guardrails/azure-policy-storage-disable-public-network/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Public exposure | documented |
| [Storage accounts should have the specified minimum TLS version](/guardrails/azure-policy-storage-min-tls/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Encryption and keys | documented |
| [Storage accounts should prevent shared key access](/guardrails/azure-policy-storage-no-shared-key/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Identity and privilege | documented |
| [Storage SAS tokens should adhere to 7 day maximum validity](/guardrails/azure-policy-storage-sas-7-days/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Data exfiltration | documented |
| [Key vaults should have deletion protection enabled](/guardrails/azure-policy-keyvault-purge-protection/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Encryption and keys | documented |
| [Azure Key Vault should use the RBAC permission model](/guardrails/azure-policy-keyvault-use-rbac/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Identity and privilege | documented |
| [Configure key vaults to enable the firewall](/guardrails/azure-policy-keyvault-firewall/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Network perimeter | documented |
| [OS and data disks should be encrypted with a customer-managed key](/guardrails/azure-policy-disk-cmk/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Encryption and keys | documented |
| [Azure SQL Database should have Microsoft Entra-only authentication enabled](/guardrails/azure-policy-sql-entra-only/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Identity and privilege | documented |
| [Deploy diagnostic settings for Key Vault to Event Hub](/guardrails/azure-policy-keyvault-diagnostic-logs/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Logging and monitoring | documented |
| [Application Insights components should block non-Entra ingestion](/guardrails/azure-policy-appinsights-entra-ingestion/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Logging and monitoring | documented |
| [Configure Cognitive Services accounts to disable public network access](/guardrails/azure-policy-ai-disable-public-network/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | AI services | documented |
| [Configure Cognitive Services accounts to disable local authentication](/guardrails/azure-policy-ai-disable-local-auth/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | AI services | documented |
| [Configure Azure AI Services resources to disable local key access](/guardrails/azure-policy-ai-disable-local-auth-dine/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | AI services | documented |
| [Configure Azure Machine Learning workspaces to disable public network access](/guardrails/azure-policy-ml-workspace-disable-public-network/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | AI services | documented |
| [Azure Machine Learning registry deployments restricted to the allowed registry (preview)](/guardrails/azure-policy-ml-registry-models/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | AI services | documented |
| [Microsoft Foundry agents and toolboxes should not use denied tools (preview)](/guardrails/azure-policy-foundry-denied-tools/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | AI services | documented |
| [Azure AI Search services should disable public network access](/guardrails/azure-policy-search-disable-public-network/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | AI services | documented |
| [Deployment stack deny settings (Azure RBAC deny assignment)](/guardrails/azure-deny-assignment-deployment-stack/) | Azure | [Azure RBAC deny assignments (created by deployment stacks)](/mechanisms/rbac-deny-assignment/) | Organization integrity | none found |
| [Resource locks (CanNotDelete and ReadOnly)](/guardrails/azure-lock-cannotdelete-readonly/) | Azure | [Azure resource locks](/mechanisms/resource-lock/) | Organization integrity | none found |
| [Allowed locations assigned at a management group](/guardrails/azure-mg-assignment-allowed-locations/) | Azure | [Management group assignment](/mechanisms/management-groups/) | Region and residency | documented |

"Tested first" says whether the provider documents a way to see the guardrail's effect before enforcing it. Read 10 Nov 2026.

**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

- [Google Cloud guardrails: 30 preventive policies with what they block and break](/library/gcp/)
- [About](/about/)
- [Editorial policy](/editorial-policy/)

## Sources

- Azure Policy (built-in definitions): https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny (read 10 Nov 2026)
- Azure RBAC deny assignments (created by deployment stacks): https://learn.microsoft.com/en-us/azure/role-based-access-control/deny-assignments (read 10 Nov 2026)
- Azure resource locks: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources (read 10 Nov 2026)
- Management group assignment: https://learn.microsoft.com/en-us/azure/governance/management-groups/overview (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/library/azure/
