Allowed locations for new resources
Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.
Allowed locations for new resources is an Azure guardrail written in Azure Policy. Denies creation of resources in any location that is not on the allowed list you set in the policy parameter. What it breaks: deployments to other locations return 403, and the definition itself excludes resource groups, Microsoft.AzureActiveDirectory/b2cDirectories and resources that use the 'global' region.
More region and residency guardrails ยท About Azure Policy
Built-in policy definition: Allowed locations
Definition ID: e56962a6-4747-49cd-b67b-bf8b01975c4c
Category: General
Supported effects: Audit, Deny, Disabled
policyRule (copied from the repository file):
{
"if": {
"allOf": [
{
"field": "location",
"notIn": "[parameters('listOfAllowedLocations')]"
},
{
"field": "location",
"notEquals": "global"
},
{
"field": "type",
"notEquals": "Microsoft.AzureActiveDirectory/b2cDirectories"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
}
- Blocks
- Denies creation of resources in any location that is not on the allowed list you set in the policy parameter.
- Breaks
- Deployments to other locations return 403, and the definition itself excludes resource groups, Microsoft.AzureActiveDirectory/b2cDirectories and resources that use the 'global' region. (source)
- Test before applying
- As for every Azure Policy guardrail: how to test before enforcing
- Mechanism
- Azure Policy (built-in definitions): Resources at the scope of the assignment (management group, subscription, resource group) and their children, except notScopes and exemptions
- Taken from
- open source set, MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE
What the source says
"This policy enables you to restrict the locations your organization can specify when deploying resources." (read 10 Nov 2026).
On what it breaks: "Excludes resource groups, Microsoft.AzureActiveDirectory/b2cDirectories, and resources that use the 'global' region."
Related guardrails
- Deny access outside approved RegionsAWS, Service control policies (SCPs), region and residency
- Deny enabling or disabling opt-in RegionsAWS, Service control policies (SCPs), region and residency
- Resource location restrictionGoogle Cloud, Organization Policy Service (managed and legacy constraints), region and residency
- Allowed locations assigned at a management groupAzure, Management group assignment, region and residency
Related pages
Sources
- Allowed locations for new resources, read 10 Nov 2026
- How to test it first, read 10 Nov 2026
Last reviewed 16 Nov 2026.