A read-heavy database on a P20 disk hits its 2,300 IOPS cap, and the usual fix is a bigger disk: P30 doubles the IOPS and nearly doubles the bill, from $73.22 to $135.17 a month in East US. Azure disk host caching can serve many of those reads without touching the disk at all, at no extra charge. It can also lose data or do nothing if you set it wrong. This guide covers when each setting helps, the limits that apply, and how to change it safely.
Key Takeaways
- Azure disk host caching has three settings: None, ReadOnly and ReadWrite. A read served from the cache never touches the disk, so it doesn't use the disk's IOPS.
- Use ReadOnly for read-heavy data disks (SQL Server data files), None for write-heavy disks (transaction logs), and keep ReadWrite on the OS disk.
- Caching only works on Standard HDD, Standard SSD and Premium SSD disks under 4 TiB. Premium SSD v2 and Ultra Disk don't support it.
- Changing the cache setting detaches and reattaches the disk. On an OS disk, the VM restarts. Stop the application first.
What is Azure disk host caching?
Azure disk host caching is a read (and optionally write) cache that sits on the physical server running your VM, between the VM and the remote managed disk. It uses a mix of the host's RAM and local SSD. When a read finds its data in the cache, it completes locally and never travels to Azure Storage.
That matters for two reasons. Cache hits are faster than a round trip to the remote disk, and they don't count against the disk's provisioned IOPS and throughput. Microsoft's disk performance documentation puts it this way: a read served from cache "never touches the disk."
Host caching is set per disk, not per VM. Each data disk and the OS disk carries its own setting, and you can mix settings on the same VM. A common SQL Server layout has the data disks on ReadOnly, the log disk on None and the OS disk on ReadWrite.
The cache itself is not unlimited. Each VM size has its own cached IOPS and throughput limit, separate from its uncached limit. Pick a VM size without enough cached capacity and caching won't help, however well the disks are configured.

How do None, ReadOnly and ReadWrite differ?
The three settings differ in what they do with reads and writes. ReadOnly caches reads only, ReadWrite caches reads and writes, and None caches nothing.
Source: Microsoft Learn, Virtual machine and disk performance and Premium storage performance, Nov 2026.
ReadOnly
ReadOnly is the setting that saves the most disk IOPS for the least risk. A cache hit returns locally. A cache miss goes to the disk, and the result is added to the cache. A write must reach both the cache and the disk before it completes, so nothing is lost if the host fails.
ReadWrite
ReadWrite also caches writes. A write completes as soon as it lands in the host cache and is "lazily written to the disk when the cache is flushed periodically," according to Microsoft. Applications can force a flush with fsync or FUA writes. If the application doesn't, a VM crash can lose writes the app thought were saved. That's why Microsoft reserves ReadWrite for the OS disk and for applications that handle persistence themselves.
None
None turns the cache off for that disk. Every read and write goes to the remote disk and counts against the VM's uncached limit. That's the right choice for write-heavy disks, where a read cache only adds overhead, and for disks larger than the cache can usefully hold.
Which disks and VMs support host caching?
Host caching works on Standard HDD, Standard SSD and Premium SSD managed disks smaller than 4 TiB. Microsoft's Premium storage performance guide states that disk caching isn't supported for disks of 4 TiB and larger.
Premium SSD v2 and Ultra Disk don't support host caching at all. Microsoft's disk types page says Premium SSD v2 "doesn't support host caching." If you move a read-heavy database from Premium SSD to Premium SSD v2, its cache hits disappear, and every read now counts against the disk's provisioned IOPS. Size the v2 disk for the full read load, not the load you saw on the cached Premium SSD.
The VM matters as much as the disk. Each size in the Dsv5 and Ddsv5 series lists "Premium Storage caching: Supported," and each publishes its own cached and uncached limits. Check the size page for your VM before you count on cached IOPS.
How do cached and uncached VM limits work?
Every VM has two separate I/O budgets: a cached limit for traffic served by the host cache, and an uncached limit for traffic that goes to remote disks. Microsoft's documentation states it directly: "A virtual machine's cached limits are separate from its uncached limits."
How each operation counts:
- Cache hit (ReadOnly or ReadWrite): counts toward the cached limit only.
- Cache miss: counts toward both the cached and uncached limits.
- Write on a ReadOnly disk: counts toward both limits.
- Write on a ReadWrite disk: counts as cached when it lands in the cache, and as uncached when it is flushed to the disk.
- Any I/O on a disk with caching set to None: counts toward the uncached limit only.
Microsoft's worked example
Microsoft illustrates this with a Standard_D8s_v3, which has a cached limit of 16,000 IOPS and an uncached limit of 12,800 IOPS. Attach five P30 disks at 5,000 IOPS each: the OS disk and two data disks with caching on, and two data disks with caching off.
The application asks for 25,000 IOPS, 5,000 per disk. The three cached disks need 15,000 IOPS, inside the 16,000 cached limit. The two uncached disks need 10,000 IOPS, inside the 12,800 uncached limit. Nothing is capped, even though 25,000 IOPS is well above the VM's uncached limit alone.
That's the practical value of mixing settings. Spreading disks across both budgets lets one VM deliver more total I/O than either budget allows by itself.

Which setting should each workload use?
Match the setting to the disk's read/write pattern. The table follows Microsoft's guidance in the Premium storage performance guide and SQL Server on Azure VM storage best practices.
Defaults to check
Don't assume the defaults are right. Microsoft's current performance documentation says OS disks have read/write caching enabled and that "cache-capable data disks do not have caching enabled" by default. Templates, the portal and older automation have set data disks to ReadOnly in the past, so check what your existing disks actually use before changing anything.
A Linux note
On Linux, Microsoft notes you can disable write barriers on disks set to ReadOnly or None for better write performance. On ReadWrite disks, barriers must stay enabled to protect write durability.
What does host caching save?
Host caching has no separate charge. The Azure Retail Prices API lists no caching meter for managed disks; you pay for the disk and the VM as usual. The saving comes from not buying disk performance you can get from the cache.
Sources: performance targets from Microsoft Learn, scalability and performance targets for VM disks; prices from the Azure Retail Prices API, Premium SSD Managed Disks, LRS, East US, Nov 2026.
Worked example: a read-heavy P20
Take a database data disk on a P20 (2,300 IOPS) that peaks at 3,000 IOPS: 2,700 reads and 300 writes. With caching set to None, every operation hits the disk, the disk is capped at 2,300, and the usual fix is a P30 at $135.17 instead of $73.22. That's $61.95 a month more, or $743.40 a year, for one disk.
Now set the disk to ReadOnly. If 70% of reads hit the cache, the disk sees 810 reads (30% of 2,700) plus 300 writes, or 1,110 IOPS. That's under half of the P20's 2,300 IOPS, with no tier change.
The 70% hit rate is an assumption for the example, not a benchmark. Your hit rate depends on how much of the working set fits in the VM's cache. Measure it (see "How do you know the cache is working?") before you cancel the P30.
Across a fleet, the numbers add up. Fifty database disks held at P20 instead of P30 is 50 × $61.95 = $3,097.50 a month, or $37,170 a year, at East US list prices.

When caching won't save money
Caching doesn't help write-heavy disks, random reads over a working set far larger than the cache, or VMs whose cached limit is already full. It also doesn't apply to Premium SSD v2. For those cases, a temporary performance tier change or bursting is the better lever.
How do you check and change the cache setting?
Check the current settings first. This Azure CLI command lists each disk on a VM with its caching mode:
az vm show -g <resource-group> -n <vm-name> \
--query "{os:storageProfile.osDisk.caching, data:storageProfile.dataDisks[].
{lun:lun, name:name, caching:caching}}" -o json
Set caching when you attach a data disk
az vm disk attach -g <resource-group> --vm-name <vm-name> \
--name <disk-name> --lun 2 --caching ReadOnly
Change caching on an attached data disk
Use the disk's position in the dataDisks array (the index, not the LUN):
az vm update -g <resource-group> -n <vm-name> \
--set storageProfile.dataDisks[0].caching=ReadOnly
Change caching on the OS disk
az vm update -g <resource-group> -n <vm-name> \
--set storageProfile.osDisk.caching=ReadWrite
This restarts the VM. Plan a window.
PowerShell
$vm = Get-AzVM -ResourceGroupName <resource-group> -Name <vm-name>
Set-AzVMDataDisk -VM $vm -Lun 2 -Caching ReadOnly
Update-AzVM -ResourceGroupName <resource-group> -VM $vm
Portal
Open the VM, go to Disks, change Host caching for the disk, then Save.

How do you change caching safely?
Microsoft warns that changing the cache setting "detaches and reattaches the target disk." For an OS disk, the VM restarts. Changing it under load risks a failed write or a corrupted file. Treat it as a change, not a toggle.
- Confirm the pattern. Pull read and write IOPS for the disk over 14 days at one-minute maximum. Only switch to ReadOnly if reads dominate.
- Check the VM's cached limit. Look up the cached IOPS and MB/s for the VM size. If the VM can't absorb the cached traffic, caching won't help.
- Take a snapshot. An incremental snapshot of the disk is your rollback for any change that goes wrong. Incremental snapshots bill at $0.05 per GB-month of changed data in East US (Azure Retail Prices API, Nov 2026).
- Stop the application. Stop the service that writes to the disk, or fail it over to a replica. For a database, take it offline or move it to the secondary.
- Change the setting. Use one of the commands above, one disk at a time.
- Verify the attach. Confirm the disk is back, mounted at the same drive letter or path, and that az vm show reports the new setting.
- Start the application and watch. Track latency and the cache metrics below for a full peak cycle before you change the next disk.
- Roll back if needed. Set the caching back to its previous value. If data was affected, restore from the snapshot.
How do you know the cache is working?
Azure Monitor exposes VM-level metrics that show whether the cache is pulling its weight.
Use the Maximum aggregation at one-minute granularity. Averages hide the peaks that users feel.
If hits stay low after a full business cycle, the working set doesn't fit the cache. Switch the disk back to None, or size the disk for the real read load.
Are your disks provisioned for the load they actually see?
Caching settings are one of several reasons a disk can be provisioned well above what it serves. Teams move to a bigger tier to fix a read cap, then never move back once caching or a query fix removes the pressure.
Lucidity's AI Action Engine finds Azure cost waste like this across your subscriptions and acts on it safely, with validated recommendations rather than noise. Want to see where you stand? Get free insights for a read-only report of what you can save.
Frequently Asked Questions
Does Azure charge for disk host caching?
No. There's no caching meter in the Azure Retail Prices API. You pay for the disk and the VM as usual. The cache uses capacity that comes with the VM size.
Can I use host caching with Premium SSD v2?
No. Premium SSD v2 and Ultra Disk don't support host caching. Provision their IOPS for the full read load, because nothing is served from a host cache.
Does changing the cache setting cause downtime?
For a data disk, the disk is detached and reattached, so the application using it must stop briefly. For an OS disk, the VM restarts.
Should I use ReadWrite on data disks?
Only if the application reliably flushes its own writes. Otherwise a VM failure can lose writes the application considered complete. ReadOnly is the safe choice for most data disks.
Why doesn't caching work on my 4 TiB disk?
Microsoft doesn't support host caching on disks of 4 TiB or larger. Use None, or split the data across smaller disks if you need caching.
.png)




