Azure for Students blocks Cosmos DB account creation with RequestDisallowedByAzure

Laiba Zafar 0 Reputation points
2026-10-28T12:40:28.4933333+00:00

Hello,

I have an Azure for Students subscription and want to create an Azure Cosmos DB for NoSQL account for learning purposes.

When I try to create the account, the portal only shows East US 2 EUAP and Central US EUAP. Both locations fail with the error RequestDisallowedByAzure because of the subscription's region policy.

Could you please advise which region I should use or how I can resolve this restriction without switching to a paid subscription?

Thank you. Azure Cosmos DB

Azure for Students

Azure Cosmos DB
Azure Cosmos DB

An Azure NoSQL database service for app development.

0 comments No comments

2 answers

Sort by: Most helpful
  1. TP 165.1K Reputation points Volunteer Moderator
    2026-10-28T12:55:02.4+00:00

    Hi,

    First please check your list of five allowed regions, then once you know those you may use command line to create your Cosmos DB account. Below are instructions for both steps:

    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 creating your Cosmos DB account using command line. You may use Azure Cloud Shell and run commands similar to below (substitute one of your allowed regions for southafricanorth):

    az group create -l southafricanorth -n my-cosmosdb-group
    az cosmosdb create --name mycosmosdbacct8275431 --resource-group my-cosmosdb-group --enable-free-tier  
    
    

    Thanks.

    -TP

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. AI answer

    2026-10-28T12:41:20.75+00:00

    Check the Allowed resource deployment regions policy assigned to your Azure for Students subscription, then create Cosmos DB by CLI in one of its listed standard regions rather than either EUAP region.

    Find the regions assigned to your subscription

    1. In the Azure portal, open Policy.
    2. Select Authoring → Assignments.
    3. Set the scope to your Azure for Students subscription.
    4. Open Allowed resource deployment regions (it might instead appear as Allowed locations).
    5. Under Parameters, inspect the Allowed locations value.

    Azure for Students subscriptions commonly receive a subscription-specific list of permitted regions; therefore, there is no single region that works for every student subscription. This exact Cosmos DB symptom—only the two EUAP choices appearing while standard regions are blocked—has been resolved by checking that policy assignment first.^1^

    Create the account in an allowed standard region

    Choose a location that is both:

    • Listed in the policy's Allowed locations parameter.
    • Supported by the Cosmos DB creation experience.

    Because the portal is presenting only EUAP locations, use Azure Cloud Shell or Azure CLI with the Azure region name from the policy. Replace <allowed-region> with its CLI name, such as westus, only if that exact region is in your policy:

    resourceGroupName="cosmos-learning-rg"
    location="<allowed-region>"
    accountName="student-cosmos-$RANDOM"
    
    az group create \
      --name "$resourceGroupName" \
      --location "$location"
    
    az cosmosdb create \
      --resource-group "$resourceGroupName" \
      --name "$accountName" \
      --locations regionName="$location"
    

    These are the documented commands for creating a resource group and an Azure Cosmos DB for NoSQL account.^2^

    The resource group's location does not override the Cosmos DB account location—the Cosmos DB deployment itself must comply with the assigned policy.

    If every allowed region still fails

    Open the failed deployment and copy the policy assignment name/ID from its error details. A policy-denied deployment identifies the policy assignment and definition responsible for the block; those details distinguish the subscription policy from Cosmos DB regional availability.^3^

    Then use Azure portal → Help + support → Create a support request and provide:

    • Subscription: Azure for Students
    • Resource type: Azure Cosmos DB for NoSQL
    • Full RequestDisallowedByAzure error
    • Policy assignment name/ID
    • The allowed regions shown by the assignment
    • The fact that none can provision a Cosmos DB account

    If requesting access to a particular restricted region, select Service and subscription Limit (quotas) and follow the documented region-access request process.^4^ Approval depends on the subscription offer and regional capacity; it is not guaranteed.

    You cannot solve a subscription-assigned location restriction merely by selecting another unlisted region or placing the resource group elsewhere. If no region is simultaneously allowed by the student policy and usable for Cosmos DB, Microsoft Support must adjust or clarify the subscription's permitted regions. This is the available path that does not require immediately converting to Pay-As-You-Go.


    References

    1. Azure for Students - Cosmos DB region restriction, only US regions available in portal - Microsoft Q&A
    2. Create an Azure Cosmos DB for NoSQL account
    3. Resolve errors for request disallowed by policy
    4. Azure region access request process - Azure | Microsoft Learn
    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.