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
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:
| Path | When it applies | Limits 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 capping | VM-level capping | |
|---|---|---|
| VM uncached limit | 12,800 IOPS | 12,800 IOPS |
| Disks | E30 OS disk + two E30 data disks, 500 IOPS each | P30 OS disk + two P30 data disks, 5,000 IOPS each |
| Application asks for | 10,000 IOPS | 15,000 IOPS |
| Split across disks | 1,000 + 4,500 + 4,500 | 4,267 + 4,266 + 4,266 |
| Delivered | 1,500 IOPS | 12,800 IOPS |
| The fix | Better 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:
| Budget | Where it is documented | The numbers |
|---|---|---|
| Uncached | Remote Storage | 16 disks, 12,800 IOPS, 192 MBps β bursting to 16,000 IOPS and 400 MBps |
| Cached | Local Storage | one 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.
| Operation | Read-only caching | Read/write caching |
|---|---|---|
| Read, cache hit | Cached budget only | Cached budget only |
| Read, cache miss | Both budgets | Both budgets |
| Write | Both 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:
| Boundary | Rule |
|---|---|
| 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
| Decision | Do this | Because |
|---|---|---|
| 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
- Virtual machine and disk performance — the interaction of VM-level and disk-level IOPS and throughput limits, the three I/O paths and what each passes through, the rule that cached writes always take the cache-miss path, the prioritized network channel for disk traffic, the Standard_D2s_v3 and P30 example, the disk-level capping worked example with its three E30 disks and 1,500 IOPS result, the VM-level capping worked example with its 12,800 IOPS cap and per-disk split, the separate cached and uncached limits for the Standard_D8s_v3 under Remote and Local Storage with their burst figures and 200-GiB cache, the caching defaults for data and OS disks, the read-only and read/write recommendations and the advice not to cache other patterns, the per-operation accounting of cache hits, misses and writes against each budget, the f/sync and fua flush, the combined 25,000 IOPS example split as 15,000 cached and 10,000 uncached, and the recommendation to track VM-level and disk-level metrics
- Resize a virtual machine — that resize works running or deallocated, the hardware cluster constraint and when deallocation is required, the restart of a running VM and the statement that resize is a disruptive operation for stateful workloads, the release of dynamic IP addresses with OS and data disks unaffected, the failed-resize behaviour where the model and all GET operations still display the requested size, the advice that stopping a VM may reveal more sizes, Get-AzVMSize listing cluster-available sizes, the premium storage s-variant guidance with its Standard_E4s_v3 example, the Windows and Linux local temp disk resize rules and the snapshot workaround, the SCSI to remote NVMe restriction, and the availability set deallocation requirement
- Cost recommendations in Azure Advisor — the identification of idle and underutilized resources from the Cost tab, the High-impact right-size or shutdown recommendations for virtual machines and for scale sets with their past-7-days analysis, the caveat that low utilization can be by design, the preview unattached disks recommendation with its irreversibility warning and Azure Site Recovery exclusion, the Standard HDD to Standard SSD billing cap recommendation, the AKS Vertical Pod Autoscaler and Spot node recommendations, the expiring reservation flag and its on-demand billing consequence, and the savings plan recommendation
- Dsv3 size series — the end-of-life warning with its 15 November 2029 retirement date, the prohibition on creating, resizing into, running or purchasing after it, the affected sizes and the sovereign-cloud exclusion, the 4 GiB per vCPU design note, the Local Storage table giving the Standard_D8s_v3 its 64-GiB temp disk, 200-GiB cache, 16,000 cached IOPS and 128 MBps, the Remote Storage table giving it 16 disks, 12,800 uncached IOPS, 192 MBps and burst figures of 16,000 IOPS and 400 MBps alongside the Standard_D2s_v3's 4 disks and 3,200 IOPS, the 30-minute burst duration, the definition of cached and uncached operation in terms of the host cache mode, the 4 NICs and 2,000 Mbps network maximum, and the feature support table
- Virtual machine sizes overview — the family list a size series is chosen from (no claims drawn from it)
- Disk metrics — the VM-level and disk-level metrics named as the way to detect capping (no claims drawn from it)
Comments