An Azure service that provides a registry of Docker and Open Container Initiative images.
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:
- 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:
-
(You may need to filter to the specific policy’s allowedLocations list.)az account list-locations --query "[].{Region:name, Enabled:metadata.regionType=='Physical'}" -o table
-
- 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
- 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: