Share via

Validation Failed error on Azure Student Subscription while creating VMs

makeki 20 Reputation points
2026-03-20T14:50:49.1533333+00:00

Below is the error that I am getting when I try to create a vm.

  "code": "InvalidTemplateDeployment",
  "message": "The template deployment failed with multiple errors. Please see details for more information.",
  "details": [
    {
      "code": "RequestDisallowedByAzure",
      "target": "fkumicrosoft773_z1",
      "message": "Resource 'fkumicrosoft773_z1' 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": "fkumicrosoft-nsg",
      "message": "Resource 'fkumicrosoft-nsg' 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.."
    }, ...... and so on for every resource

Account details/history:
I am using my institute email id, which is also linked with my github id. I had an account with my college email id, I used the free trial $200 for a month subscription. After that was over I planned to shift to my 1 year $100 student subscription. I availed the github student developer pack, the pack includes 1 year $100 azure for students subscription. I signed in via github, now my azure is linked with github and I can see Azure for Students in subscriptions as active.
I have the owner role in that subscription's IAM.
Afaik, this is not a region policy issue I have tried with East US, West US, and many other standard ones. I am using a free eligible B2. The issue I believe is in validation of the student sponsorship.

PS: its not necessary for vm sizes to show in your local currency

Going to microsoftazuresponshorships.com/balance with the same account, shows I have no active subscription which is peculiar.
There are other students in my university who have availed and are using the student subscription so its not the issue of university. My billing profile and language + region all are indian, but vm sizes costs are displayed in usd for some regions. The accounts that are running show vm size costs in inr.

Please let me know what should I do, I just want a vm running and this has been a BIG BIG detour

Azure Policy
Azure Policy

An Azure service that is used to implement corporate governance and standards at scale for Azure resources.


Answer accepted by question author
  1. Bharath Y P 7,320 Reputation points Microsoft External Staff Moderator
    2026-03-20T15:46:22.5733333+00:00

    Hello Makeki, it looks like your Azure for Students subscription has an Azure Policy in place that only allows deployments into a specific set of regions. When you try to spin up a VM outside those regions (or with a disallowed SKU), you’ll hit the “RequestDisallowedByAzure” error on every resource in your template.

    Here’s how you can unblock yourself:

    1. Identify exactly which regions are allowed • Run this in Cloud Shell or Azure CLI (replace <SUB_ID> with your subscription ID):
      
           az policy assignment list \
      
             --scope /subscriptions/<SUB_ID> \
      
             --query "[?contains(name,'SubscriptionLocation')].parameters.allowedLocations.value" \
      
             -o table
      
      
      • That will spit out the array of allowed Azure regions for your Student subscription (typically things like East US 2, West US 2, Central US, North Europe, West Europe, Australia East, etc.).
    2. Redeploy into one of those locations • Update your ARM template or CLI command to use one of the allowed regions. For example:
      
           az vm create \
      
             --name myVM \
      
             --resource-group myRG \
      
             --image UbuntuLTS \
      
             --size Standard_B2s \
      
             --location eastus2
      
      
      • Make sure the VM SKU you choose (e.g. Standard_B2s) is also on the “allowed SKUs” list for your subscription.
    3. Double-check your subscription status • In the portal go to Subscriptions → Azure for Students and confirm it’s “Active”. • Under “Usage + quotas” you should see your remaining credit. If it still shows zero or “no active subscription” at microsoftazuresponsorships.com, you may need to raise a support ticket so the sponsorship account gets properly re-activated.
    4. If you need other regions or SKUs • Student subscriptions are locked down by policy—you can’t modify or disable that yourself. • File a support request and reference the policy assignment blocking your deployments. Support can either grant you an exception or guide you on next steps.

    Hope that gets you unstuck! If you’re still seeing the same policy error after picking an allowed region, let us know:

    • Which region(s) you tried

    • Exact VM size you’re requesting

    • The full JSON error (with policyAssignmentId) from your failed deployment

    References

    • Troubleshoot “Resource creation was disallowed by policy”:

    https://dori-uw-1.kuma-moon.com/azure/governance/policy/troubleshoot/general#requestdisallowedbypolicy-error

    • Resolve RequestDisallowedByPolicy for Azure VMs:

    https://dori-uw-1.kuma-moon.com/azure/governance/policy/tutorials/create-and-manage#troubleshooting

    • List policy assignments via CLI:

    https://dori-uw-1.kuma-moon.com/cli/azure/policy/assignment#az_policy_assignment_list

    1 person found this answer helpful.

0 additional answers

Sort by: Most 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.