An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
Hello Alhomiyn Wafi Abdulaziz M
Thank you for reaching out to the Microsoft Q&A forum.
When investigated it looks like your App Service creation is being blocked by an Azure Policy in your Azure for Students subscription—specifically one that restricts which regions you can use. Here’s how you can unblock yourself:
Identify the blocking policy
• In the Azure portal go to Policy > Authoring > Assignments
• Find the assignment named Allowed resource deployment regions
• Click into it and look at the “Allowed locations” parameter—those are the only regions you can deploy into
Redeploy into an allowed region
• When you create your App Service, pick one of the regions listed under Allowed locations
• That should satisfy the policy and your deployment will succeed
If you really need a region that isn’t on that list
a) If you have Owner or Policy Contributor rights follow below steps:
- In Policy > Assignments select “Allowed resource deployment regions” > Edit assignment
- Add your desired region to the Allowed locations list and save
b) If you don’t have rights:
- Share the policyAssignmentId and policyDefinitionId (you can find these in the Activity Log or via CLI) with your subscription admin
- Ask them to either update the allowed locations or create a policy exemption
If the issue persists, Let me know:
- Which region you originally tried?
- The exact error you see in the Activity Log?
- Whether you have permissions to edit policy assignments?
Let me know if any further queries - feel free to reach out!
Reference list
- Troubleshoot RequestDisallowedByPolicy https://learn.microsoft.com/azure/governance/policy/troubleshoot/general#requestdisallowedbypolicy-error
- Operation blocked by Policy (what causes it & how to view in Activity Log) https://supportabilityhub.microsoft.com/solutions/apollosolutions/65e4479d-09ca-d2b0-a863-f8fa7473ae85/ebea4d37-9f36-4fdd-b93a-f1dcde729745
- Resolve RequestDisallowedByPolicy for Azure Resource Manager Deployments https://learn.microsoft.com/azure/azure-resource-manager/troubleshooting/error-policy-requestdisallowedbypolicy
- (For custom policies) Creating Policies to Block Specific Deployment Types in Azure OpenAI https://learn.microsoft.com/azure/ai-services/openai/how-to/deployment-types#policy-examples