Azure for Students subscription blocks Static Web App deployment in every region (RequestDisallowedByAzure)

Anwesha Rawat 20 Reputation points
2026-07-01T14:20:55.6666667+00:00

I have an Azure for Students subscription, and it is Active.

I am trying to create an Azure Static Web App. Regardless of which region I choose, the deployment fails with the following error:

{
  "code": "InvalidTemplateDeployment",
  "message": "The template deployment failed because of policy violation.",
  "details": [
    {
      "code": "RequestDisallowedByAzure",
      "message": "Resource '<resource-name>' was disallowed by Azure: 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."
    }
  ]
}

I have tried multiple regions, and the same error occurs for every one.

My subscription status is Active.

Could someone please check whether there is a policy applied to my Azure for Students subscription that is preventing resource creation or advise how to resolve this issue?What can it be>?

Thank you.

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.

0 comments No comments

Answer accepted by question author

Praneeth Maddali 10,795 Reputation points Microsoft External Staff Moderator
2026-07-02T03:37:05.53+00:00

Hi @Anwesha Rawat

Thank you for confirming that you've already selected one of the regions listed in the Allowed resource deployment regions policy.

In that case, the issue is likely not the region you selected directly. With Azure for Students subscriptions, Azure Static Web Apps may still fail with RequestDisallowedByAzure because the service relies on backend deployment regions that may not be available under the subscription's regional restrictions. This can occur even when the selected region appears in your allowed locations list.

As a quick validation step, could you try creating a simple Storage Account or an Azure App Service (Free F1 tier) in the same allowed region? If those resources deploy successfully but Static Web Apps continues to fail, it would strongly indicate a limitation specific to Azure Static Web Apps on the Azure for

In that scenario, using Azure App Service or Azure Storage Static Website Hosting would be the recommended alternatives

Reference:

https://learn.microsoft.com/azure/governance/policy/overview

https://learn.microsoft.com/azure/app-service/overview

https://learn.microsoft.com/azure/storage/blobs/storage-blob-static-website

If the answer is helpful,  Please do click "Accept the answer” and Yes, this can be beneficial to other community members.

If you have any other questions, let me know in the "comments" and I would be happy to help you

Was this answer helpful?

2 people found this answer helpful.

Answer accepted by question author

Aditya N 2,990 Reputation points Microsoft External Staff Moderator
2026-07-01T16:27:26.8366667+00:00

Hello @Anwesha Rawat

Thank you for reaching out Microsoft Q&A.

Azure for Students accounts limit the regions where you can deploy resources. Usually, each student is allowed access to about five regions, and these can differ from one user to another.

The error message “RequestDisallowedByAzure” indicates that the resources you're trying to deploy are blocked due to a policy restricting the Azure regions where your subscription can create resources.

Please go to Azure Policy → Authoring → Assignments using the link provided below:

https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/%7E/Assignments

  • Click on assignment named Allowed resource deployment regions
  • Review the Allowed locations parameter to see which regions are permitted for your subscription. It should show a list of regions.
  • The regions listed in your Parameter value represent the locations you are permitted to deploy resources to. Please try creating a resource in one of those allowed regions.

Allowed regions depend on:

  • Datacenter capacity
  • Local compliance rules
  • Microsoft’s allocation for free-tier accounts

Suggestion is to use standard Web Apps if possible.

Kindly let us know if the above helps.

Was this answer helpful?

2 people found this answer helpful.

Answer accepted by question author

TP 158.6K Reputation points Volunteer Moderator
2026-07-01T14:41:16.4766667+00:00

Hi,

Unfortunately Azure for Students is restricted to small number of regions (typically five) for capacity reasons and is blocked from making Quota requests. Additionally, if a resource (such as Static Web App) is only available in certain regions and none of those overlap with your allowed Azure for Students regions, you cannot create the resource.

An alternative to Static Web App is App Services. You should be able to create an App Services Web App Free tier in one of your five allowed regions.

One option to allow you to use different/more regions would be to create separate Pay-As-You-Go subscription and only use that when you need to deploy a resource that you cannot deploy to one of your five allowed regions in your Azure for Students. If you do this you need to verify pricing before creating any resources and make sure to delete resources immediately after you are finished using them.

Below are instructions for viewing the five regions you are allowed to deploy to:

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 click Accept Answer and upvote if the above was helpful.

Thanks.

-TP

Was this answer helpful?

2 people found 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.