Business Challenge
#111 was about choosing a size. This one is about the two things that decide whether the size you chose can actually be deployed, neither of which is a property of the size.
The failure looks like this. A scale-out runs fine in one region and fails in another with a quota error, so somebody raises the quota, and it fails again with the same error. Or the quota reads comfortably below its limit and the deployment fails anyway with an allocation failure. Or — the most expensive version — a disaster recovery plan is written, tested on a quiet Tuesday with four VMs, and discovered during a real regional failover to need sixty.
All three come from the same root. Azure enforces vCPU limits at two tiers, and Microsoft is explicit about the arithmetic: “The vCPU quotas for virtual machines and scale sets are arranged in two tiers for each subscription, in each region. The first tier is the Total Regional vCPUs, and the second tier is the various VM size family cores such as the D-series vCPUs.” Then: “Anytime a new VM is deployed the vCPUs for the VM must not exceed the vCPU quota for the VM size family or the total regional vCPU quota. If you exceed either of those quotas, the VM deployment won't be allowed.”
And underneath both of those, a third gate that is not a quota at all.
The sentence that explains most allocation failures
“Azure checks quota and capacity separately. Quota is your subscription's permission to deploy a certain number of vCPUs or VMs. Capacity is the actual compute resources available in the selected region or availability zone.”
“Even with sufficient quota, deployments can still fail if Azure doesn't have enough capacity for your requested VM size in the target region or zone.” No amount of quota raising fixes that one, because quota is a number in your subscription and capacity is a machine in a building.
Architecture
What the usage output actually tells you
The quickest way to understand the two tiers is to read a real listing. Microsoft documents the output of az vm list-usage --location "Central US", and the shape of it is the lesson:
| Name | CurrentValue | Limit |
|---|---|---|
| Total Regional vCPUs | 29 | 100 |
| Virtual Machines | 7 | 10000 |
| Virtual Machine Scale Sets | 0 | 2000 |
| Standard DSv3 Family vCPUs | 8 | 100 |
| Standard DSv2 Family vCPUs | 3 | 100 |
| Standard Dv3 Family vCPUs | 2 | 100 |
| Standard D Family vCPUs | 8 | 100 |
| Standard Dv2 Family vCPUs | 8 | 100 |
Add the five family rows that are consuming anything: 8 + 3 + 2 + 8 + 8 = 29, which is exactly the Total Regional vCPUs figure. Every used core is counted once in its family and once regionally. That is the whole model, and it is why the two tiers are not alternatives.
Now look at the limits. Thirteen families each sit at 100, against a regional ceiling of 100. The family tier is deliberately oversubscribed relative to the regional tier: you are permitted up to 100 D-series cores and up to 100 F-series cores, but not both, because the regional number is shared. Reading only the family row tells you nothing about whether you can deploy.
The documented Get-AzVMUsage output for the same region makes the opposite point. There the regional limit is 260 while the family limits scatter: Standard B Family at 10, Standard H Family at 8, Standard NV Family at 24, Standard NC Family at 48, and most of the rest at 100. The NC limit is double the NV limit, and the B limit is a tenth of what most families get. And several families arrive at a limit of 0 — Standard MS, ND, NCv2, NCv3 and LSv2 in that listing. A family at zero is not a quota you are near; it is a family you cannot deploy at all until you ask.
Why this matters for a sizing decision
#111 treated size selection as a design question. The quota model adds a constraint that is invisible from the size name: changing D16s_v5 to E16s_v5 because you wanted a better memory ratio moves 16 cores from one family counter to another. Both might be under their limits. Either might be at zero.
Why This Architecture Holds Up
Because a stopped VM still consumes its quota
This is the single most surprising line on the page, and it is one sentence long: “Quota is calculated based on the total number of cores in use both allocated and deallocated.” The documented remedies are to “request a quota increase or delete VMs that are no longer needed.”
So the mental model most people carry — stop a VM, stop paying, get the capacity back — is half right. Compute billing stops. Quota consumption does not. Which means the common cost-control patterns all quietly hold quota:
| Pattern | Compute bill | vCPU quota |
|---|---|---|
| Dev/test VMs shut down overnight and at weekends | Stopped | Still consumed |
| A decommissioned app left deallocated “just in case” | Stopped | Still consumed |
| A failed-over workload whose old VMs are stopped, not deleted | Stopped | Still consumed |
| A deallocated VM associated to a capacity reservation | Reservation still bills | Still consumed |
| Deleted VMs | Stopped | Released |
The last-but-one row is documented separately and is worth stating in full, because it is the same rule arriving from a different direction: a deallocated VM still associated to a capacity reservation “still counts against the quota allocated to the reservation”, specifically “to prevent a quota overrun”, and the remedy is to delete the VM.
The practical consequence for a design: your quota headroom is not the number in the portal minus your running fleet. It is the number minus everything that exists. A subscription that has been through two migrations and a reorganisation is routinely holding quota for machines nobody has booted in a year, and the first time anyone finds out is a failover.
Because increases propagate in one direction and only one
Here is the asymmetry that makes the “I raised the quota and it failed again” story so common. From the quota-increase documentation: “When you request an increase in the vCPU quota for a VM series, Azure increases the regional vCPU quota limit by the same amount.”
That is one-way. A family request raises both tiers. A regional request raises only the regional tier, and the family counter stays where it was. So if you diagnosed the error as “regional quota” and raised the regional quota, you may have changed nothing that was blocking you.
The rule to remember
Ask for the family increase. It moves the regional limit along with it, for free, in a single request. Asking for the regional increase gets you half the change and another failed deployment.
Microsoft also documents the inverse problem arriving by default on a brand-new subscription: “the default value for the total number of vCPUs in a region might not be equal to the total default vCPU quota for all individual VM series. This can result in a subscription without enough quota for each individual VM series that you want to deploy.” In that state you own family headroom you cannot spend, and the only fix is an explicit regional request.
Two operational details that are easy to get wrong. Quotas are per region, so “if you need 30 vCPUs in West Europe… Only the vCPU quota limit in West Europe is increased to 30 vCPUs” — a multi-region design needs a request per region, and the DR region is the one everybody forgets. And the request needs “an Azure account with the Contributor role (or another role that includes Contributor access)”, which is more than a deployment identity usually holds, so the person who hits the error is frequently not the person who can clear it.
The good news is the latency: a request “usually happens within a few minutes”, falling back to a support request if it is not fulfilled automatically. That is fast enough to be a runbook step and far too slow to be an incident-time discovery.
Because spot and reservations are counted differently, not just priced differently
Two things sit outside the standard tiers and both catch people.
Spot has its own quota type. “Azure Resource Manager enforces two types of vCPU quotas for virtual machines: standard vCPU quotas [and] spot vCPU quotas”, and standard quotas apply to “pay-as-you-go VMs and reserved VM instances”. So a batch tier moving to spot is not drawing from the quota you have been tracking, and the increase you need is a different request.
Single-subscription reserved instances pre-commit quota. Reserved VM Instances scoped to one subscription without size flexibility “work as a placeholder in the quota system”. The documented example: with 10 Standard_D1 reservations, “Azure will ensure that there are always at least 10 vCPUs available in the Total Regional vCPUs quota… and there are at least 10 vCPUs available in the Standard D Family vCPU quota”. Those cores are held in both tiers whether or not anything is running on them. Buying a reservation therefore reduces the quota available to everything else, which is not how a billing instrument is usually expected to behave.
Because only one mechanism actually guarantees hardware, and it bills like a running VM
Quota cleared, and the deployment still fails. The documentation's three mitigations are “a different VM size, zone, or region” — all of which change your design — and then: “For guaranteed capacity, see On-demand capacity reservation.”
The distinction from a Reserved Instance is the thing to get straight, because the names invite the opposite conclusion:
| On-demand capacity reservation | Reserved instance | |
|---|---|---|
| Term | None β create and delete at any time | Fixed one-year or three-year commitment |
| Billing | Pay-as-you-go rates for the underlying VM size | Significant cost savings over pay-as-you-go |
| Capacity SLA | Provides a capacity guarantee in the specified region or zone | Doesn't provide a capacity guarantee |
| Scope | Per region or per availability zone | Regional level only |
So the instrument with “reserved” in its name reserves money, and the one that reserves capacity is the other one. The documentation is blunt about the middle option too: reserved instances “prioritize capacity but don't guarantee it”, and the “Capacity priority” setting “doesn't carry an SLA.”
What a capacity reservation costs is the part that decides whether you use it. “Capacity reservations are priced at the same rate as the underlying VM size. For example, if you create a reservation for 10 D2s_v3 VMs, you start getting billed for 10 D2s_v3 VMs, even if the reservation isn't being used.” Deploy six against it and “You see a bill for six D2s_v3 VMs and four unused capacity reservations, both charged at the same rate”. You are not paying a premium for the guarantee; you are paying for the machines from the moment you reserve them, used or not. And both halves are eligible for Savings Plan and RI discounts, so a reservation plus an RI is a sensible pairing rather than a double charge.
Three ways a capacity reservation silently does nothing
The VM does not name it. “To consume capacity reservation, the VM has to specify the reservation in its properties. Otherwise, the capacity reservation isn't used.” You pay, and your VMs take their chances on general capacity.
You overallocate it. Deploying beyond the reserved quantity is permitted, but those extra VMs “aren't covered by the SLA” and are “subject to quota checks and Azure fulfilling the extra capacity” β exactly the behaviour you bought the reservation to avoid.
Your workload is on the unsupported list. Spot VMs, dedicated hosts, availability sets, proximity placement groups, Ultra Disk, VMs resuming from hibernation, and the ND-series, NCads H100 v5-series, Hb-series and Hc-series are all excluded.
One more design constraint worth knowing before you build around it: a reservation group “can have only one reservation per VM size per zone”, and “other changes to capacity reservation, such as VM size or location, aren't permitted” — only the quantity is mutable. Changing size means creating a new reservation, migrating, and deleting the old one, with both billing in the overlap. And if you create a group without specifying zones, “Azure will select the best zone available” and every VM using that group “must be deployed without specifying a zone”, which is a zonal design decision made implicitly by the platform at creation time.
Because the SLA is measured in a way you have to trigger
The capacity SLA does not pay out on a region being short of hardware. It pays out on your failed deployments against your reservation, and the documented worked example shows how the clock runs: a reserved unit accumulates Minutes Not Available only while you are attempting deployments that fail with a VM capacity error. In the example, one unit sits at 15 accumulated minutes and then adds 40 more across four attempts at ten-minute intervals, reaching 55 minutes — “The percentage uptime is 99.87. This reserved unit qualifies for a service credit of 10%.” The unit that stopped at 15 minutes reaches “99.97%” and “doesn't qualify for a service credit.”
Which has an operational implication people miss: if your automation gives up after one failed attempt, you accrue almost nothing. The measurement assumes you keep retrying. That is a reason to make failover retry persistently, quite apart from wanting the VMs.
Key Architecture Decisions
| Decision | Do this | Because |
|---|---|---|
| Raising a quota that blocked a deployment | Request the VM-family increase | Azure raises the regional limit by the same amount; the regional request does not work in reverse |
| Working out real headroom | Count everything that exists, not what is running | Quota counts cores both allocated and deallocated β only deletion releases them |
| Changing a VM family in a template | Check the target family's quota first | Family limits are not equal, and several arrive at a limit of 0 |
| Planning a multi-region or DR footprint | One quota request per region, DR region included | Regional quota is per region; raising West Europe leaves every other region untouched |
| Who files the request | Someone with Contributor or above | The deployment identity that hits the error often cannot clear it |
| Moving a tier to spot | Request spot quota separately | Spot vCPU quota is a distinct quota type from standard |
| Buying single-subscription RIs | Budget the quota they will hold | They act as placeholders reserving vCPUs in both tiers whether or not anything runs |
| An allocation failure with quota to spare | Change size, zone or region β do not file a quota request | Quota and capacity are separate checks; this one is capacity |
| Capacity that must be there on failover | On-demand capacity reservation, zone-scoped | It is the only mechanism with a capacity SLA, and the only one that can be scoped to a zone |
| Cost of that guarantee | Budget the full VM rate from creation | An unused reservation bills exactly like a running VM of that size |
| Making the reservation actually work | Set the reservation group on every VM that needs it | A VM that does not name the group does not consume the reservation |
| Scoping what you reserve | Only the instances that must not fail | Critical workloads can target reservations while noncritical ones run on general capacity |
Closing Thought
Quotas look like an administrative detail and they are a reliability control. Every one of the failures at the top of this post is a capacity plan that was never written down: the DR region whose quota was never raised, the subscription holding cores for deleted applications, the reservation nobody attached to a VM.
The reason it recurs is that the three gates fail at different times. Family and regional quota fail at deployment, deterministically, in a way a test environment reproduces. Capacity fails when a region is busy, which is to say during exactly the event your DR plan exists for. A design that has only been exercised on a quiet afternoon has tested two of the three gates.
The one line to take away
Raise quota through the family request so both tiers move; count deallocated VMs as consumed because Azure does; and remember that no quota increase buys hardware — if capacity has to be there, reserve it, scope it to a zone, name it on the VM, and budget it as a running machine.
Next in the series: VM sizing, and the mistakes that recur — the sizing errors that survive review because every component is configured correctly.
Official Azure Reference
- vCPU quotas for Azure Virtual Machines — the two-tier model of Total Regional vCPUs and VM size family cores enforced per subscription per region, the rule that exceeding either blocks the deployment, the separate quota on the overall number of virtual machines, the statement that quota counts cores both allocated and deallocated, the separation of quota from capacity and the size, zone and region mitigations, the pointer to on-demand capacity reservation for guaranteed capacity, the worked az vm list-usage and Get-AzVMUsage outputs with their per-family limits and zero-limit families, and the Reserved VM Instance placeholder behaviour with its ten Standard_D1 example holding quota in both tiers
- On-demand capacity reservation in Azure — the no-term reservation of capacity in a region or zone, the VM size, location and quantity properties, the distinction from Reserved Instances including the capacity SLA and the regional-versus-zonal scope, the requirement that a VM name the reservation in its properties, the quota requirement and the omission of quota checks up to the reserved quantity, overallocation and its loss of SLA cover, the pricing at the underlying VM rate with the ten-reserved six-deployed four-unused worked example, Savings Plan and RI eligibility on used and unused reservations, the reservation group zone rules and the one-reservation-per-size-per-zone constraint, the immutability of size and location, the virtualMachinesAllocated and virtualMachinesAssociated properties and the deallocated-VM quota behaviour, the Minutes Not Available worked example with its 99.97% and 99.87 uptimes and 10% credit, the supported and unsupported VM series and deployment types, the fault domain limit of 3, and the paid-customer eligibility rule
- Increase regional vCPU quotas — the two quota types of standard and spot and what standard applies to, the restatement of the two-tier enforcement, the rule that a VM-series increase raises the regional limit by the same amount, the per-region scoping with the 30-vCPU West Europe example, the new-subscription case where the regional default does not match the sum of series defaults, the Contributor role requirement, the new-limit versus adjust-usage-percentage request modes, and the few-minutes fulfilment with support-request fallback
- View quotas in the Azure portal — the My quotas page and its location, provider, subscription and usage filters (no claims drawn from it)
- Increase VM-family vCPU quotas — the per-family request path referenced throughout as the one to prefer (no claims drawn from it)
Comments