Share via

How to fix this error while creating a SQL Database?

Munazzah Maqsood 20 Reputation points
2026-02-23T21:57:58.61+00:00

{

"error": {

"code": "InvalidTemplateDeployment",

"details": [

  {

    "code": "RequestDisallowedByAzure",

    "target": "munazzahmaqsood-db",

    "message": "Resource 'munazzahmaqsood-db' 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": "EECS3421_DB_MunazzahMaqsood",

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

},

"details": {

"code": "InvalidTemplateDeployment",

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

"details": [

  {

    "code": "RequestDisallowedByAzure",

    "target": "munazzahmaqsood-db",

    "message": "Resource 'munazzahmaqsood-db' 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": "EECS3421_DB_MunazzahMaqsood",

    "message": "Resource 'EECS3421_DB_MunazzahMaqsood' 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 SQL Database
0 comments No comments

Answer accepted by question author

TP 157.4K Reputation points Volunteer Moderator
2026-02-23T22:01:09.4733333+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

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 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. AI answer

    2026-02-23T21:58:08.3066667+00:00

    The error you are encountering, RequestDisallowedByAzure, indicates that your subscription is restricted from deploying resources in the specified regions due to a policy that maintains a set of best available regions. To resolve this issue, you can take the following steps:

    1. Review the Policy: Check the policies applied to your Azure subscription to understand the restrictions. This can usually be done through the Azure portal under the policy management section.
    2. Contact Support: If you need to deploy resources in different regions that are currently disallowed, you should contact Azure support. They can assist you in enabling the necessary regions for your subscription.
    3. Select Allowed Regions: If possible, modify your deployment to select regions that are allowed under your current subscription policy. This may involve changing the region in your deployment template or configuration.

    By following these steps, you should be able to address the deployment error and successfully create your SQL Database.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer 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.