Disallowed by azure error coming up either i try to creaate vm or container or webapp

Harsh Khandal 100 Reputation points
2025-09-11T09:00:09.89+00:00

error:
X deploymentName: Microsoft.Web-WebApp-Portal-e70e1377-860e

deploymentStatusCode: -1

details: {"code":"InvalidTemplateDeployment", "message":"The template deployment failed with multiple errors. Please see details for more information.","details":

[{"code":"RequestDisallowedByAzure","target":"hkn8n","message":"Resource 'hkn8n' 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 .. "],{"code":"RequestDisallowedByAzure","target":"ASP-N8nResources-

b25c","message":"Resource 'ASP-N8nResources-b25c' 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 .. ")]}

error: {"code":"Invalid TemplateDeployment","details":[{"code";"RequestDisallowedByAzure","target":"hkn8n","message":"Resource 'hkn8n' 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 .. "],

("code":"RequestDisallowedByAzure","target":"ASP-N8nResources-b25c","message":"Resource 'ASP-N8nResources-b25c' 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 .. "}],"message":"The template

deployment failed with multiple errors. Please see details for more information."}

expected: true

location: East US

notificationTimestamp: "2025-09-11T08:28:29.250Z"

resourceGroupName: N8n-Resources

stage: 6

subscriptionld:

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

Answer accepted by question author

TP 160.9K Reputation points Volunteer Moderator
2025-09-11T09:06:12.5333333+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

Look for an assignment similar to "Allowed resource deployment regions" or "Allowed locations", or similar. Click on this assignment, and then examine the Parameter value for list of regions.

These are the regions 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.

1 additional answer

Sort by: Most helpful
  1. Himanshu Shekhar 6,790 Reputation points Microsoft External Staff Moderator
    2025-09-11T18:07:41.4666667+00:00

    Hi Harsh Khandal

    The error "RequestDisallowedByAzure" with message about a policy disallowing deployment in certain regions indicates that your Azure subscription has a policy restricting allowed Azure regions for resource deployment. Your deployment to "East US" or targeted regions is blocked by this policy

    In the Azure portal, go to Subscriptions > select your subscription > Policies. Look for any policies or initiatives enforcing allowed locations or restricted regions.

    Example policy: "Allowed locations" or "Restrict locations for resource creation."

    Identify which regions your subscription is allowed to deploy resources to.

    If "East US" is not in the allowed list, that explains the disallowed deployment.

    If you cannot modify policies, or the region is intentionally restricted, open a support request with Microsoft Azure support to request access to additional regions for your subscription.

    please refer documentation for details: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#location-limits

    Manage resource location restrictions with Azure Policy : https://learn.microsoft.com/en-us/azure/governance/policy/samples/

    Azure subscription and service limits, quotas, and constraints: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#location-limits

    Was this answer helpful?

    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.