Homeβ€Ί Blogβ€Ί Azure Architecture Series #113 β€” VM Sizing: The Mistakes That Recur…
Azure Architecture Azure Architecture Series

Azure Architecture Series #113 β€” VM Sizing: The Mistakes That Recur

Verified against current vendor documentation on 4 December 2026. Pricing, limits and API behaviour were checked against the official docs on that date. Cloud services change fast — if you are reading this much later, treat the specifics as a starting point and re-check the linked sources.

Business Challenge

#111 covered how to read a size name. #112 covered whether you are allowed to deploy it. This one is about the sizing errors that survive both — the ones where the name was read correctly, the quota was fine, the deployment succeeded, and the result was still wrong.

They have a shape in common. A VM size is presented as two numbers, and it silently fixes about eight. Cores and memory are in the dropdown. The IOPS ceiling, the throughput ceiling, the cache size, the maximum disk count, the temp disk, the storage controller and the set of sizes you can later resize to are all consequences of the same choice, and none of them appear beside the price.

So the mistakes recur not because the documentation is hidden — every fact in this post is on three Microsoft pages — but because the sizing decision is made in a dimension where the constraint does not live.

The five in this post

Buying faster disks a VM cannot use. Treating cached and uncached I/O as one budget. Setting host caching without knowing what it taxes. Treating resize as a dial. And trusting the control plane about what size a VM is actually running.

Architecture

Diagram: the recurring Azure VM sizing mistakes, in four bands. The first band shows that the VM caps the disks and the disks cap the VM, using two documented worked examples on the same VM where the bottleneck moves depending on which side was under-provisioned. In the disk-level capping example a Standard_D8s_v3 allows 12,800 uncached IOPS, the application asks for 10,000 split as 1,000 plus 4,500 plus 4,500, but three E30 disks deliver 500 each, so only 1,500 IOPS are delivered. In the VM-level capping example the same Standard_D8s_v3 with the same 12,800 ceiling receives a request for 15,000 IOPS against three P30 disks capable of 5,000 each, which is plenty, so 12,800 IOPS are delivered. The band notes that buying premium disks fixes the first case and does nothing for the second, and that a Standard_D2s_v3 cannot reach a P30's 5,000 IOPS whether cached or not because of limits at the SSD and network levels. The second band shows that a premium-capable VM has two I/O budgets rather than one. The uncached or Remote Storage limits for a Standard_D8s_v3 are 16 disks, 12,800 IOPS and 192 megabytes per second, with burst limits of 16,000 IOPS and 400 megabytes per second. The cached or Local Storage limits are a 64 gibibyte temporary disk, a 200 gibibyte cache, 16,000 IOPS and 128 megabytes per second. The two budgets add: caching three disks and leaving two uncached lets a 25,000 IOPS request be served as 15,000 cached plus 10,000 uncached with no capping, which makes disk layout a throughput decision rather than only a capacity one. The band then lists how each operation is charged: a read hit counts against the cached budget only, a read miss counts against both budgets, and a write under read-only caching counts against both, so a read-only cache still taxes writes. The third band covers resize, which is bound to the hardware cluster the VM landed on. The size dropdown shows only sizes available on the current cluster and stopping the VM may reveal more. Resizing a running VM restarts it and is described as a disruptive operation, especially for stateful workloads. Deallocation releases dynamic IP addresses while the OS and data disks survive. For a VM in an availability set, if the size is not available on the cluster every VM in the set must be deallocated. Windows VMs cannot cross the boundary between sizes with and without a local temp disk, though Linux can. A SCSI-based VM cannot be resized to a remote NVMe-enabled size at all. And a VM using premium storage needs the s variant, Standard_E4s_v3 rather than Standard_E4_v3. The band concludes that a resize plan is a maintenance window with a fallback rather than a slider in a review comment. The fourth band covers the failure that reports nothing: if a resize operation fails, the VM model still displays the requested size while the VM continues running on its previous size until the resize is successfully allocated. The portal and every GET operation return the requested size because the displayed size always reflects the latest applied configuration rather than the actual running size, so a capacity audit and the Terraform state both agree and are both wrong. The diagram closes with the fix for all five: size the I/O path alongside the cores, keep host caching deliberate, treat resize as a change with a window, and verify the running size from guest metrics rather than from the control plane.
Every recurring VM sizing mistake is the same mistake β€” sizing one dimension and inheriting four.

The three I/O paths a size decides for you

Before the mistakes, the model they all come from. “Azure VMs have input/output operations per second (IOPS) and throughput limits based on the VM type and size. Managed OS disks and data disks have their own IOPS and throughput limits.” Two sets of limits, and a request has to fit through both.

There are three paths, and which one an I/O takes depends on how you configured host caching:

PathWhen it appliesLimits it passes through
Uncached managed disk Host caching set to none Disk-level provisioning, then VM network-level provisioning
Cached managed disk, cache hit Read served from the server SSD SSD-level provisioning only
Cached managed disk, cache miss Read not present in the SSD, and every write SSD-level, then disk-level, then VM network-level
Temporary disk Only on VMs that support temp disks SSD-level provisioning

The third row is the one that gets overlooked, and it is stated plainly: “Writes that a cached managed disk initiates always follow the path of a cached miss. They go through SSD-level, disk-level, and VM network-level provisioning.” A cache does not make writes cheaper — it makes them cost both budgets.

One piece of good news in the same place, because it answers a question people reasonably ask: “Azure uses a prioritized network channel for disk traffic. Disk traffic takes precedence over low-priority network traffic.” So the VM network limit on the disk path is not something a chatty application can starve.

Why This Architecture Holds Up

Mistake one: buying faster disks for a VM that cannot use them

Microsoft documents two worked examples on the same VM size, and reading them side by side is the fastest way to internalise the model. Both use a Standard_D8s_v3, which allows 12,800 uncached IOPS.

Disk-level cappingVM-level capping
VM uncached limit12,800 IOPS12,800 IOPS
DisksE30 OS disk + two E30 data disks, 500 IOPS eachP30 OS disk + two P30 data disks, 5,000 IOPS each
Application asks for10,000 IOPS15,000 IOPS
Split across disks1,000 + 4,500 + 4,5004,267 + 4,266 + 4,266
Delivered1,500 IOPS12,800 IOPS
The fixBetter disks β€” “such as Premium SSD P30 disks”A bigger VM. Disks are already fine.

The left column is the one everybody diagnoses correctly: three disks at 500 IOPS each deliver 1,500 whatever the application asked for. The right column is the one that produces a quarter of wasted spend, because the symptom is identical — the application is slow, the disks are at their ceiling — and the standard reaction is to upgrade the disks again.

The compact version of this mistake

“The system prevents a Standard_D2s_v3 VM from achieving the 5,000 IOPS potential of a P30 disk, whether it's cached or not, because of limits at the SSD and network levels.”

You can attach a P30 to a two-core VM. You will be billed for the P30. You will not get the P30.

Which reframes disk selection as a sizing decision rather than a storage one. The right question is not “how fast does this workload need its disk to be” but “which VM size has an I/O ceiling above what I am about to provision”. The documentation's own closing advice is the measurement half of that: “Use VM-level and disk-level metrics to track the performance and set up alerts as needed” — two sets of metrics, because there are two places to be capped.

Mistake two: treating cached and uncached as one budget

A premium-capable VM has two storage bandwidth limits, in two different places in the documentation: “The 'Uncached' disk data under the Remote Storage are the default storage maximum limits that the virtual machine can handle” and “The 'Cached' disk data under the Local Storage tab are separate limits when you enable host caching.”

For the Standard_D8s_v3 those are:

BudgetWhere it is documentedThe numbers
UncachedRemote Storage16 disks, 12,800 IOPS, 192 MBps β€” bursting to 16,000 IOPS and 400 MBps
CachedLocal Storageone 64-GiB temporary disk, a 200-GiB cache, 16,000 IOPS, 128 MBps

Two footnotes on that table are worth carrying. The burst figures are not a second steady state — “Burst speeds can be maintained for up to 30 minutes at a time” — so sizing against the burst column is sizing against a 30-minute budget. And the page defines the two modes operationally rather than abstractly: “For cached data disk operation, the host cache mode is set to ReadOnly or ReadWrite. For uncached data disk operation, the host cache mode is set to None.” Which budget a disk draws from is decided entirely by that one setting.

And the consequence that most sizing exercises miss: “A virtual machine's cached limits are separate from its uncached limits. This separation means you can enable host caching on some disks attached to a VM while not enabling host caching on other disks. This configuration allows your virtual machines to get a total storage I/O of the cached limit plus the uncached limit.”

The documented example makes it concrete. Three P30s with read/write caching, two P30s with caching disabled, one Standard_D8s_v3, and a request for 25,000 IOPS — served as 15,000 through the cached path and 10,000 through the uncached path, with no capping, because each total sits inside its own budget. That is more I/O than either limit allows on its own.

So the layout of disks across a VM is a throughput decision. Putting every disk on the same caching setting throws away one of the two budgets you are paying for, and nothing in the portal frames it that way — caching reads as a per-disk performance toggle, not as a choice about which of two ceilings that disk will consume.

Mistake three: setting host caching without knowing what it charges for

Caching looks free. It is not, and the accounting is worth memorising because it inverts for writes.

OperationRead-only cachingRead/write caching
Read, cache hitCached budget onlyCached budget only
Read, cache missBoth budgetsBoth budgets
WriteBoth budgets β€” “written to both the cache and the disk before it's considered complete”Cached on write, uncached later β€” “lazily written to the disk when the cache is flushed”

Three things follow. A read-only cache taxes your writes against both budgets while giving writes no benefit at all — which is the wrong setting for anything write-heavy, and it is a setting people choose because it sounds conservative. A read/write cache acknowledges writes at the cache, so the uncached cost arrives later and in bursts, and it can be forced early with “an f/sync or fua command”. And the defaults are asymmetric: “By default, cache-capable data disks do not have caching enabled. Cache-capable OS disks have read/write caching enabled.”

Microsoft's own guidance is unusually willing to say no here: read-only is “for workloads that only do read operations”, read/write is “for workloads that do a balance of read and write operations”, and “If your workload doesn't follow either of these patterns, we don't recommend that you use host caching.” Caching off is a legitimate answer, and it keeps the whole uncached budget for the thing that needs it.

Mistake four: treating resize as a dial

Sizing is routinely justified with “we can always resize later”. That is true in the sense that the operation exists. It is a different operation from the one people picture.

It is bound to the hardware cluster you are on. “Deallocation may be required if the new size isn't available on the hardware cluster currently hosting the VM.” The portal's size list reflects that cluster, not the region — which is why “If your VM is still running and you don't see the size you want in the list, stopping the virtual machine may reveal more sizes”, and why Get-AzVMSize is documented as listing “the VM sizes that are available on the hardware cluster where the VM is hosted”. A size being absent from the dropdown is not a statement about Azure.

It is disruptive even when it works. “Even when deallocation isn't required, changing the size of a running VM will cause it to restart. For this reason, resizing a VM should be considered a disruptive operation, especially for stateful workloads.” And deallocating “releases any dynamic IP addresses assigned to the VM”, though “The OS and data disks are not affected” — so anything holding a dynamic IP in a firewall rule, a DNS record or a peer's allow-list needs checking before, not after.

The availability set multiplier

“If the new size for a VM in an availability set isn't available on the hardware cluster currently hosting the VM, then you need to deallocate all VMs in the availability set to resize the VM.” And afterwards, “You also might need to update the size of other VMs in the availability set.”

So resizing one VM in an availability set can mean taking the whole set down — the set that exists specifically so the whole thing is never down at once.

And some resizes are simply not permitted. Two hard limits, both easy to hit:

BoundaryRule
Local temp disk, present or absent Supported for Linux VMs. For Windows, only temp-disk β†’ temp-disk or no-temp-disk β†’ no-temp-disk. Crossing it means snapshot β†’ disk β†’ new VM.
Storage controller “You can't resize a VM size that has a SCSI-based VM to a VM size that has a remote NVMe-enabled VM.”
Premium storage Pick the s variant β€” “choose Standard_E4s_v3 instead of Standard_E4_v3”, the same letter #111 covered

None of that makes resize a bad plan. It makes it a change with a maintenance window, a fallback, and a check that the target size exists on the cluster — rather than a line in a capacity review that says “start small, grow later”.

Mistake five: believing the control plane about what you are running

This is the one worth printing out, because it defeats the obvious verification step:

A failed resize reports success-shaped data

“If a resize operation fails, the VM model will still display the requested size, but the VM will continue running on its previous size until the resize is successfully allocated. This behavior applies to both the Azure portal, and all GET operations, as the displayed size always reflects the latest applied configuration, not the actual running size.”

Read what that covers. Not just the portal blade — all GET operations. So the CLI agrees, the REST API agrees, your inventory script agrees, your Terraform refresh agrees, and your capacity dashboard agrees. Every one of them is reporting the configuration you asked for rather than the machine you have.

The failure mode this produces is specific and expensive: a scale-up is applied during a change window, allocation fails because the target size is not available on that cluster, nothing errors loudly enough to stop the change, the record says the VM is now a D16s_v5, and the application keeps running on eight cores. Then the load arrives. The incident review reads the size from the portal and rules out capacity.

The only reliable check is from inside: core count, memory and I/O ceilings observed from the guest or from VM-level metrics, not from the resource's own configuration. Which is a general principle worth taking out of this post — the control plane records intent, the guest records reality, and a sizing audit that only reads the control plane is auditing a wish list.

A sixth, which #111 predicted: the size name says nothing about its lifespan

Every worked example in this post uses the Standard_D8s_v3, because that is what Microsoft's own performance documentation uses. Its specification page opens with a warning: “The Dsv3-series is in the End of Life lifecycle stage and retires on November 15, 2029. After that date, you can't create, resize into, run, or purchase Dsv3-series sizes.” The retirement covers the whole series, Standard_D2s_v3 through Standard_D64s_v3, and “doesn't apply to Azure Government, Azure operated by 21Vianet, or sovereign cloud regions.”

Note the second clause in that sentence: you cannot resize into a retiring size. So a size series heading for end of life quietly removes itself from your resize options before it removes itself from your running fleet, which turns a sizing decision made years earlier into a migration with a deadline. #111 made the point that a size name carries no lifecycle information; this is what that costs. The only place the date exists is the series page, and nothing in a template, a tag or a portal blade will surface it.

The other direction: the sizes nobody ever revisits

Everything above is about undersizing. The recurring mistake in the other direction is simply never looking again, and Azure Advisor is the mechanism built for it: it “helps you optimize and reduce your overall Azure spend by identifying idle and underutilized resources”, with “Right-size or shutdown underutilized virtual machines” rated High impact, and the scale set equivalent analysing “usage patterns of your virtual machine scale sets over the past 7 days”.

Two details stop that from being a blunt instrument. Advisor itself concedes that “certain scenarios can result in low utilization by design” — a standby node or a licence-constrained database is meant to look idle, and acting on every recommendation is its own mistake. And the adjacent disk recommendation carries the right warning for anything irreversible: review unattached disks, but “Deleting a disk is irreversible. Create a snapshot before deletion and confirm the data is no longer needed.”

Worth pairing with one recommendation that is pure upside and often ignored: Advisor flags reservations “expiring soon or recently expired”, where “Your resources will continue to operate normally, however, you will be billed at the on-demand rates going forward.” Nothing breaks, nothing alerts, and the bill changes. That is the same failure shape as the silent resize, applied to money.

Key Architecture Decisions

DecisionDo thisBecause
Choosing disks for a workload Check the VM's uncached ceiling first A P30's 5,000 IOPS is unreachable on a D2s_v3 whether cached or not
Diagnosing slow storage Read VM-level and disk-level metrics Disk-level and VM-level capping look identical from the application
Laying out disks on a VM Split them across cached and uncached deliberately The two budgets add β€” 16,000 cached plus 12,800 uncached on a D8s_v3
A write-heavy disk Never read-only caching Writes must reach cache and disk, charging both budgets for no benefit
A workload that is neither read-mostly nor balanced Turn host caching off Microsoft explicitly doesn't recommend caching outside those two patterns
Newly attached data disks Set caching explicitly Cache-capable data disks default to no caching; OS disks default to read/write
Planning to “resize later” Treat it as a change with a window and a fallback It restarts the VM, may need deallocation, and is cluster-bound
Resizing a VM in an availability set Plan for the whole set An unavailable size means deallocating every VM in the set
Resizing a Windows VM Check the temp-disk boundary before committing Windows cannot cross it; the workaround is snapshot, disk, new VM
Anything holding the VM's dynamic IP Fix it before the resize Deallocation releases dynamic IPs; disks are unaffected
Verifying a resize landed Check from the guest, not the portal or a GET A failed resize still displays the requested size everywhere in the control plane
Acting on an Advisor right-size flag Confirm the idleness isn't by design Advisor itself notes low utilisation can be intentional
Cleaning up after a resize or migration Snapshot before deleting unattached disks Disk deletion is irreversible, and ASR replica disks are excluded from the flag

Closing Thought

Three posts into Phase 4 there is a pattern worth naming. #111's point was that a size name encodes eight decisions. #112's was that deploying it depends on two quota tiers and a capacity check you cannot influence. This one is that the same choice fixes your I/O ceilings and constrains every future change to it.

None of these are hard facts to learn. They recur because the VM size is chosen early, by whoever is standing up the environment, in a dropdown that shows two of its eight consequences — and because the feedback is delayed. An undersized I/O path does not fail; it is slow under load six weeks later. A cluster-bound resize does not fail loudly; it reports the size you asked for. An oversized VM does not fail at all.

The one line to take away

Size the I/O path at the same time as the cores, because the VM caps the disks and the disks cap the VM and the symptom is identical. Split disks across the cached and uncached budgets on purpose. And verify a resize from inside the guest — the portal and every API call will report the size you requested whether or not the VM is running it.

Next in the series: ephemeral OS disks — where the temp disk and the cache stop being performance details and become the OS disk itself.

Official Azure Reference

Comments

How was your experience?
Your feedback helps improve this site.
PoorExcellent