Share via

Error Code RequestDisallowedByAzureMessage: Resource was disallowed by Azure: This policy maintains a set of best available regions...

Sean Tisdale 0 Reputation points
2026-02-26T00:10:14.84+00:00

I'm using the student subscription and I receive this error whenever I try to create a Static Web App that will be used to host a React frontend. I am aware of the regions available through my student subscription which are:

["northcentralus","canadacentral","westus","southcentralus","westus3"]

I've tried all regions and still receive this same error for all of them. Is there anyway that I'll be able to create a Static Web App?

{

"code": "InvalidTemplateDeployment",

"message": "The template deployment failed because of policy violation. Please see details for more information.",

"details": [

{

  "code": "RequestDisallowedByAzure",

  "target": "test",

  "message": "Resource 'test' 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.."

}

]

}

Azure Static Web Apps
Azure Static Web Apps

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

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Praneeth Maddali 5,730 Reputation points Microsoft External Staff Moderator
    2026-02-26T01:26:46.86+00:00

    Hi @Sean Tisdale

    Thanks for Reaching us regarding your issue

    The error you’re seeing (RequestDisallowedByAzure) is expected with an Azure for Students subscription when creating an Azure Static Web App. Student subscriptions are restricted by Azure Policy to a small, subscription‑specific set of regions. At the same time, Static Web Apps are supported only in a limited number of backend regions.

    In your case, those Static Web App regions don’t overlap with the regions allowed for your student subscription, so the deployment is blocked regardless of which region you select. This is a subscription limitation and can’t be overridden.

    What you can do next:

    • Use Azure App Service to host your React app instead. App Service supports many more regions and works reliably with Azure for Students.
    • Upgrade to a Pay‑As‑You‑Go or standard Azure subscription, which removes the region policy restriction and allows Static Web Apps to be created normally.

    You can also review your allowed regions under Azure Policy >Authoring >Assignments > “Allowed resource deployment regions”,
    https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Assignments
    but please note that even if a region appears there, Static Web Apps may still be blocked due to backend service placement.

    reference:

    https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/

    https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-region/table

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/relocation/relocation-static-web-apps

    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


  2. TP 152.3K Reputation points Volunteer Moderator
    2026-02-26T01:02:13.3333333+00:00

    Hi Sean,

    Unfortunately Azure Static Web App (SWA) can only be deployed to five different regions, and none of those regions are in the allowed list for your Azure for Students subscription. You may consider using Azure App Service instead, or you could upgrade to Pay-As-You-Go subscription.

    Please click Accept Answer if the above was helpful.

    Thanks.

    -TP

    0 comments No comments

  3. Q&A Assist
    2026-02-26T00:10:26.5833333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error indicates that a region access/optimization policy is applied to the subscription, and that policy is blocking Static Web App creation in all regions being tried, even though they are normally allowed for the student offer.

    This is not a quota or template issue; it is an Azure region-access policy issue. The policy text in the error matches the region optimization / region access policies described in the documentation.

    To proceed, there are only two supported options:

    1. Try an alternative region that the policy allows for this subscription (if any are offered in the portal for Static Web Apps). If the portal shows a banner like “You can create resources in the following regions only…”, use one of those regions.
    2. If no available region works for Static Web Apps, submit a support request to ask for region access for this resource type:
      • Sign in to the Azure portal.
      • Open Help + support and create a new support request.
      • In the problem description, mention the RequestDisallowedByAzure error and that the region optimization / region access policy is preventing creation of a Static Web App in any of the regions available to the student subscription.
      • Request that the subscription be granted access to at least one region that supports Azure Static Web Apps.

    If support does not grant additional region access, Static Web Apps cannot be created in this subscription while that policy is in effect; another subscription without the restrictive region policy would be required.


    References:

    0 comments No comments

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.