Share via

Unable to create a container registry in a student subscription

Wael Benslimene 60 Reputation points
2026-04-29T19:55:28.41+00:00

This policy maintains a set of best available regions where your subscription can deploy resources. The objective of this policy is to ensure that your subscription has full access to Azure services with optimal performance. Should you need additional or different regions, contact support.. (Code: RequestDisallowedByAzure, )

Azure Container Registry
Azure Container Registry

An Azure service that provides a registry of Docker and Open Container Initiative images.

0 comments No comments

Answer accepted by question author

Himanshu Shekhar 6,420 Reputation points Microsoft External Staff Moderator
2026-04-29T20:43:54.5333333+00:00

Hey Wael, it looks like your student subscription has an Azure Policy assignment that restricts which regions you can deploy resources into which is why you’re getting Code “RequestDisallowedByAzure.” By default, student subscriptions only allow a handful of “best-available” regions. Here’s how you can move forward:

  1. Check which regions are allowed in your subscription - In the Azure portal go to Policy > Assignments, look for an “Allowed locations” policy scoped to your subscription, and review its list of regions or run in Cloud Shell/CLI:
    •       az account list-locations --query "[].{Region:name, Enabled:metadata.regionType=='Physical'}" -o table
      
      (You may need to filter to the specific policy’s allowedLocations list.)
  2. Pick one of those allowed regions when creating the registry For example, if “East US” is allowed:
       az group create --name myRG --location eastus
    

--resource-group myRG \ --name myUniqueAcrName
--sku Standard
--location eastus

  1. If you truly need a region that isn’t in the allowed list You’ll have to contact Azure Support to have that policy scope adjusted or have a new policy assignment created that includes your desired region.

Reference links for creating a registry once you’ve chosen an allowed region:

  1. Quickstart (Portal): https://learn.microsoft.com/azure/container-registry/container-registry-get-started-portal#create-a-container-registry
  2. Quickstart (CLI): https://learn.microsoft.com/azure/container-registry/container-registry-get-started-azure-cli#create-a-container-registry

Was this answer helpful?

1 person found this answer helpful.

Answer accepted by question author

TP 157K Reputation points Volunteer Moderator
2026-04-29T20:02:22.9733333+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

Andreas Baumgarten 132K Reputation points MVP Volunteer Moderator
2026-04-29T20:04:27.5566667+00:00

Hi @Wael Benslimene ,

please navigate in the Azure Portal to https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade.MenuView/~/Assignments/%23view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Assignments/undefined

Please check the following policy:

User's image

In the list you can verify which regions are allowed for deployments in your Azure Subscription:

User's image

In the "Parameter value" of "allowedLocations" are the available Azure regions listed for your resources.


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards

Andreas Baumgarten

Was this answer helpful?


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.