An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
Hello Arthur, it looks like every time you try to spin up a resource you’re running into an Azure Policy that only allows deployments in a specific set of regions. Your error message even mentions that “this policy maintains a set of best available regions where your subscription can deploy resources.” Here’s how you can unblock yourself:
- Identify the blocking policy
- In the Azure portal: • Go to Policy on the left menu → Assignments. • Look for an assignment named something like “Allowed locations” or “Allowed regions.”
- With Azure CLI:
az policy assignment list --scope /subscriptions/<your-subscription-id> az policy assignment show --name <assignment-name> --scope /subscriptions/<your-subscription-id>
- Review which regions are allowed
- In the portal, click into that policy assignment and check its Parameters tab to see the list of Allowed locations.
- In CLI you’ll see a JSON block with a “listOfAllowedLocations” array.
- Deploy into one of the permitted regions
- When you run az vm create, ARM template or portal-create, pick one of the regions from that allowed list.
- If you really need a region that isn’t on the list
- You’ll need someone with Policy Contributor (or Owner) rights to either: a) Edit the “Allowed locations” policy assignment to add your desired region, or b) Create a policy exemption for your resource group/subscription.
- If you don’t have those rights, contact your subscription admin or open a support request so they can grant an exception or broaden the allowed regions.
That should get you up and running. If you need more help, let us know whether you have access to the Policy blade or if you’re on a partner/enterprise-managed subscription—different subscription types sometimes have built-in location policies.
References
- Troubleshoot “Resource creation was disallowed by policy”: https://learn.microsoft.com/azure/azure-resource-manager/troubleshooting/error-policy-requestdisallowedbypolicy
- Understand Azure Policy effects: https://learn.microsoft.com/azure/governance/policy/concepts/effects
- Manage policy assignments in Azure: https://learn.microsoft.com/azure/governance/policy/tutorials/create-and-manage
- Azure CLI: az policy assignment show: https://learn.microsoft.com/cli/azure/policy/assignment?view=azure-cli-latest#az-policy-assignment-show