Error "RequestDisallowedByAzure" when deploying resource group

Pearl Molefe 40 Reputation points
2026-07-29T20:06:37.5733333+00:00

Hi,

I am trying to follow the lab at https://microsoftlearning.github.io/mslearn-postgresql/ . When I get to the part where I deploy the resource group I get the error below. I initially used the region suggested (eastus) when that didn't work I tried ukwest and still got the same error. Please assist.Screenshot 2026-07-29 at 8.52.56 pm

Thanks

Azure | Azure Training
0 comments No comments

Answer accepted by question author

TP 160.7K Reputation points Volunteer Moderator
2026-07-29T20:17:41.3633333+00:00

Hi,

Azure for Students restricts which regions you can deploy resources to. Typically you are restricted to five different regions, and these vary for each person.

Please navigate to Azure Policy -- Authoring -- Assignments using link below:

https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Assignments

Click on assignment named Allowed resource deployment regions

User's image

Examine Allowed locations Parameter value for list of regions, similar to below (regions in screenshot are different than yours):

User's image

The regions shown in your Parameter value are the ones you are allowed to deploy resources to. Please try to create resources in one of these regions and let me know the results.

Please click Accept Answer and upvote if the above was helpful.

Thanks.

-TP

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Marcin Policht 100.1K Reputation points MVP Volunteer Moderator
2026-07-29T20:16:20.7466667+00:00

The error is not caused by the Bicep template. The error message indicates that your Azure subscription has a policy restricting which Azure regions can be used for deployments. Although you changed the deployment from eastus to ukwest, both regions are being blocked by the policy.

If you are using your own or an organizational subscription, you will need to deploy to one of the regions permitted by your subscription's Azure Policy or ask your subscription administrator to allow the required region.

If you have permission to view Azure Policy assignments, you can also run:

az policy assignment list -o table

This will help confirm whether a policy is restricting resource deployments to a specific set of Azure regions.


If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

hth

Marcin

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.