Every Windows VM built from a standard Marketplace image carries a 127 GiB OS disk, which bills as a 128 GiB P10 at $19.71 a month in East US on Premium SSD. For a stateless web tier or a scale set that you reimage rather than repair, that disk stores nothing you need to keep. Azure ephemeral OS disks put the OS on the VM's local storage instead and remove the managed OS disk. This guide covers what you save, the VM size trap that can wipe out the saving, the limits, and how to deploy one.
Key Takeaways
- An Azure ephemeral OS disk lives on the VM's local storage, not in Azure Storage. Microsoft's AKS guidance says ephemeral OS disks "are free; you incur no storage cost for OS disks."
- The saving per VM is the OS disk you no longer pay for: $19.71 a month for a P10, $9.60 for an E10 or $5.28 for a P4 in East US.
- You need a VM size with local storage, and those can cost more. A D4ds_v5 is $24.82 a month more than a D4s_v5, which is more than a P10 costs. Ephemeral pays off when you already run, or need, a size with local disk.
- Data on an ephemeral OS disk is lost on resize, redeploy or a host healing event. Stop-deallocate, snapshots, Azure Backup and Site Recovery aren't supported.
What is an Azure ephemeral OS disk?
An Azure ephemeral OS disk is an operating system disk created on the VM's local storage, such as the temp disk, cache disk or local NVMe disk, instead of a managed disk in Azure Storage. Microsoft's ephemeral OS disk documentation describes them as "created on the local virtual machine (VM) storage and not saved to the remote Azure Storage."
Three things follow from that:
- Lower latency. The OS reads and writes locally. Microsoft describes "lower read/write latency to the OS disk and faster VM reimage."
- No persistence. Anything written to the OS disk is lost when the VM moves to another host, is resized or is redeployed.
- No managed OS disk to pay for. Microsoft's AKS ephemeral OS disk guide states: "Ephemeral OS disks are free; you incur no storage cost for OS disks."
They're designed for stateless applications: workloads where every instance can be rebuilt from an image in minutes, and where nothing important lives on the C: drive or root volume.

How much does an ephemeral OS disk save?
An ephemeral OS disk saves the monthly price of the managed OS disk it replaces. Standard Marketplace images decide the size: Microsoft notes Windows Server images are "about 127 GiB" and Ubuntu images "about 30 GiB."
Source: Azure Retail Prices API, Premium SSD and Standard SSD Managed Disks, LRS, East US, Nov 2026. Image sizes from Microsoft Learn.
Fleet math
The saving is small per VM and meaningful across a fleet. For 200 stateless Windows VMs on Premium SSD OS disks:
200 × $19.71 = $3,942 a month, or $47,304 a year
For 200 Linux scale set instances on Standard SSD E4 OS disks:
200 × $2.40 = $480 a month, or $5,760 a year
The Windows case is where the money is, because the Marketplace image forces a 128 GiB disk even when the OS uses a fraction of it. That holds only if the VM size doesn't change. The next section explains why.
Why can a VM with local storage cost more?
Ephemeral OS disks need local storage on the VM, and in most current series the size with a local disk costs more per hour than the size without. The "d" in a size name, such as D4ds_v5, marks a local temp disk. If you move from a size without one to get an ephemeral OS disk, the VM price increase can be larger than the OS disk saving.
Source: Azure Retail Prices API, Virtual Machines Dsv5 and Ddsv5 series, East US, pay-as-you-go, Nov 2026. Monthly = hourly × 730.
Compare that with the OS disk you remove:
- Windows on a P10 ($19.71): switching D4s_v5 to D4ds_v5 adds $24.82 to save $19.71. You lose $5.11 a month per VM.
- Linux on a P4 ($5.28): you lose $19.54 a month per VM.
So the rule is simple. Ephemeral OS disks save money when the VM already has local storage, or when you need a "d" size anyway, for example for tempdb, a build cache or scratch space. They don't save money if you change VM series only to get them.

Where the saving is real
- Scale sets and AKS node pools that already run sizes with local storage, such as Ddsv5, Dadsv5, Ddsv6 or Lsv3.
- Fleets where the OS disk is Premium SSD and oversized, such as 256 GiB P15 OS disks at $38.01 each.
- VMs that need local NVMe or temp storage for the application anyway.
Which VMs and placements support ephemeral OS disks?
Ephemeral OS disks need a VM size with local storage, and the OS image must fit in that storage. Microsoft's rule: "The image OS disk's size should be less than or equal to the NVMe/temp/cache size of the VM size chosen."
Source: Microsoft Learn, Ephemeral OS disks, updated Sep 2026.
What placement does to local storage
The OS takes space from the local disk you'd otherwise use:
- Temp placement: remaining temp space = temp disk size − OS image size.
- NVMe placement: the OS takes whole NVMe disks. On a size with one NVMe disk, the OS "occupies the entire NVMe disk." On a size with several, unused disks come back to you as raw local disks.
Placement "doesn't impact the performance or cost" of the ephemeral OS disk, according to Microsoft. Performance follows the local storage it sits on.
Full caching
Microsoft also offers full caching, which keeps the entire OS disk locally for resilience during remote storage outages. It needs local storage of more than 2× the OS disk size plus 1 GiB, and VMs with eight or more vCPUs. Microsoft says there's "no extra charge for full caching beyond the standard VM and disk costs." If you choose a Standard SSD or Premium SSD base disk, you pay that base disk's charges.
What doesn't work with ephemeral OS disks?
The trade-off for no OS disk bill is no persistence. Microsoft lists these limits:
Source: Microsoft Learn, Ephemeral OS disks and FAQ, Sep 2026.
Two of these affect cost directly. First, you can't stop-deallocate to save compute overnight; the VM must be deleted and recreated. That suits scale sets and AKS node pools, which scale in by deleting instances anyway. It doesn't suit a single VM you switch off on weekends.
Second, a scale set can't mix ephemeral and persistent OS disk instances. Plan the change per scale set or node pool.
When should you use an ephemeral OS disk?
Use an ephemeral OS disk when the VM is stateless, rebuilt from an image, and already on a size with local storage.
Good fits
- AKS node pools, where nodes are replaced rather than repaired.
- Virtual Machine Scale Sets for web and API tiers.
- CI/CD build agents and test runners that start clean every run.
- Batch and rendering nodes.
- VDI pools that reset to a golden image.
Poor fits
- Any VM with application state on the OS disk.
- Single VMs you stop overnight to save compute.
- VMs that need Azure Backup, Site Recovery or OS disk snapshots for compliance.
- Workloads where you'd have to move to a pricier VM series to get local storage.

How do you deploy an ephemeral OS disk?
You set an ephemeral OS disk at creation. It can't be added to an existing VM.
Azure CLI: VM
az vm create -g <resource-group> -n <vm-name> \
--image Ubuntu2204 --size Standard_D4ds_v5 \
--ephemeral-os-disk true \
--ephemeral-os-disk-placement ResourceDisk \
--os-disk-caching ReadOnly \
--admin-username azureuser --generate-ssh-keys
Use NvmeDisk for v6 sizes with local NVMe, or CacheDisk for older sizes with a cache disk. Microsoft's examples set OS disk caching to ReadOnly.
Azure CLI: scale set
az vmss create -g <resource-group> -n <vmss-name> \
--image Ubuntu2204 --vm-sku Standard_D4ds_v5 --instance-count 3 \
--ephemeral-os-disk true \
--ephemeral-os-disk-placement ResourceDisk \
--os-disk-caching ReadOnly \
--admin-username azureuser --generate-ssh-keys
Check whether a size fits
Microsoft's FAQ provides a PowerShell script, Get-EphemeralSupportedVMSku, that takes a region and an OS image size and reports which sizes support cache, temp or NVMe placement.
Verify
az vm show -g <resource-group> -n <vm-name> \
--query "storageProfile.osDisk.diffDiskSettings" -o json
The output should show "option": "Local" and your placement. In Cost Management, no managed disk line should appear for the OS disk. Ephemeral disks don't show in the portal as disk resources; Microsoft says a 404 when you open one is expected.
How do you move a workload safely?
You can't convert a VM in place, so moving to ephemeral OS disks means building new instances and retiring the old ones.
- Prove it's stateless. Check that no logs, config or data that matter are written to the OS disk. Move them to a data disk, Azure Files or a log pipeline first.
- Check the size and image fit. Confirm the target size has local storage at least as big as the image, using Microsoft's script.
- Do the cost math. Compare (current VM + OS disk) against (target VM). If the target is a pricier series, the switch may cost more, as the table above shows.
- Build a new scale set or node pool. Deploy with the ephemeral flags alongside the existing one.
- Shift traffic gradually. Move a share of traffic through the load balancer or by cordoning and draining AKS nodes.
- Watch a full cycle. Confirm reimages, scale-out and patching work as expected.
- Retire the old instances. Delete the old scale set or node pool and confirm its OS disks are gone from Cost Management.
Rollback is the old scale set or node pool. Keep it until the new one has run cleanly through at least one peak.
Are your OS disks bigger than they need to be?
Even where ephemeral disks don't fit, OS disks are a common source of quiet waste: Premium SSD on dev VMs, 256 GiB disks on 40 GiB of data, disks left behind after a VM is deleted.
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. Get free insights for a read-only report of what you can save.
Frequently Asked Questions
Do ephemeral OS disks cost anything?
Microsoft's AKS guidance says ephemeral OS disks "are free; you incur no storage cost for OS disks." If you choose a Standard SSD or Premium SSD base disk with partial or full caching, you pay that base disk's charges. You always pay for the VM.
Can I stop and deallocate a VM with an ephemeral OS disk?
No. Stop-deallocate isn't supported. Delete the VM and recreate it, which is why ephemeral OS disks suit scale sets and AKS node pools.
What happens to my data on reimage or resize?
Resize and redeploy delete the OS disk data and reprovision the OS. Reimage returns the VM to its original boot state. Keep anything you need on a managed data disk.
Can I change an existing VM to an ephemeral OS disk?
No. Ephemeral OS disks are set at creation. Build a new VM or scale set and move the workload.
Are ephemeral OS disks the default on AKS?
AKS uses ephemeral OS disks when the node VM size has enough local storage for the OS disk. Check your node pool's OS disk type with az aks nodepool show --query osDiskType.
.png)




