Share via

i m unable to make cosmosdb and fucntion app in my current azure student subcription in any region

himanshu saini 0 Reputation points
2026-04-17T06:02:11.83+00:00

when i tries to make cosmosdb and function app and many more things it says in error thats not allowed by azure so plaese tell me can i make cosmosdb and function app like services in my current subscription or not

Azure Cosmos DB
Azure Cosmos DB

An Azure NoSQL database service for app development.


3 answers

Sort by: Most helpful
  1. SAI JAGADEESH KUDIPUDI 2,625 Reputation points Microsoft External Staff Moderator
    2026-04-17T11:32:29.88+00:00

    Hi himanshu saini,
    I understand how confusing this can be, especially when you still have credits available but resource creation is blocked.

    With an Azure for Students subscription, you can create services like Azure Cosmos DB and Azure Functions, but there are a few important limitations that commonly cause the “not allowed by Azure” error you’re seeing:

    1. Region restrictions (most common cause) Azure for Students subscriptions are restricted to a limited set of allowed regions, enforced through Azure Policy. If you try to deploy resources outside these regions, the deployment fails even if credits are available. You can check your allowed regions in the Azure portal under: Azure Policy → Authoring → Assignments → Allowed resource deployment regions. Only deploy Cosmos DB or Function Apps in the regions listed there.
    2. Cosmos DB Free Tier limit Each subscription can have only one Azure Cosmos DB Free Tier account. If a free‑tier Cosmos account already exists (even in another resource group), creating another Cosmos DB account will be blocked unless you upgrade to Pay‑As‑You‑Go. Free Tier details are documented here: https://learn.microsoft.com/azure/cosmos-db/free-tier
    3. Azure Functions plan selection Azure Functions are supported in Azure for Students subscriptions, but you must select the Consumption (serverless) plan. Creation will fail if you choose Premium or Dedicated (App Service) plans. See: https://learn.microsoft.com/azure/azure-functions/functions-create-first-azure-function
    4. Resource provider registration Make sure these resource providers are registered in your subscription:
    • Microsoft.DocumentDB (Cosmos DB)
    • Microsoft.Web (Function Apps)

    You can verify this under Subscriptions → Resource providers in the Azure portal.

    You can create Cosmos DB and Function Apps in an Azure for Students subscription, as long as you:

    • Deploy only to allowed regions
    • Use Cosmos DB Free Tier (one per subscription)
    • Choose Azure Functions – Consumption plan

    If you need multiple Cosmos DB accounts, paid SKUs, or unrestricted regions, upgrading to Pay‑As‑You‑Go is required.

    Microsoft documentation Links:

    https://azure.microsoft.com/free/students
    https://learn.microsoft.com/azure/cosmos-db/free-tier
    https://learn.microsoft.com/azure/azure-functions/functions-create-first-azure-function
    If you’re still blocked after checking the allowed regions, feel free to share the exact error message and the region you’re attempting to use, and I’ll be happy to help you narrow it down further.

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.
    Please do not forget to "Accept Answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.


  2. TP 155.8K Reputation points Volunteer Moderator
    2026-04-17T06:06:35.5666667+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

    0 comments No comments

  3. Q&A Assist
    2026-04-17T06:02:28.02+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Azure for Students subscriptions can create Azure services like Azure Cosmos DB and Azure Functions, but they are limited by:

    1. Available credit and time
      • Azure for Students provides $100 credit for 12 months and access to more than 25 free services, including compute, storage, network, and databases.
      • When the $100 credit is exhausted or 12 months pass, the subscription is disabled and all services are decommissioned. In that state, creating new resources (including Cosmos DB and Function Apps) is blocked until the subscription is upgraded or renewed.
    2. Regional and SKU restrictions
      • Some regions or SKUs are not available for a given subscription. For example, if a region has a quota of 0 instances for the subscription, deployment fails with errors like quota/limit or “not allowed” messages.
      • For App Service / Function Apps, if the requested SKU is not allowed in the resource group or region, creation fails. In such cases, it is necessary to:
        • Try a different region (preferably a paired region), or
        • Create a new App Service plan in a new resource group in the same region, or
        • Use a different SKU that is available.
      • For Cosmos DB, high demand or subscription limits in a region can cause conflicts; switching to another region is required.
    3. Disabled or expired Azure for Students subscription
      • If the Azure for Students credit is used up or has expired, the subscription is disabled and new resources cannot be created. To continue using Azure services (including Cosmos DB and Function Apps), the subscription must be upgraded to a pay-as-you-go subscription by contacting Azure support.

    What to check and try:

    1. Verify that the Azure for Students subscription is still active and has remaining credit using the Azure Sponsorships portal.
    2. If the subscription is disabled because credit is exhausted or expired, upgrade to a pay-as-you-go subscription via Azure support.
    3. When creating Cosmos DB or Function Apps:
      • Try a different Azure region (especially if the error mentions quota, conflict, or high demand).
      • For Function Apps/App Service, if the error mentions SKU not allowed or similar, create a new App Service plan in a new resource group or change the SKU/region as described in the context.

    If, after these checks, the subscription is still active and errors persist in all regions, contact Azure support from the portal for subscription/limit review, as the issue is likely quota or policy-based on that specific student subscription.


    References:

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.