In-place OS upgrade for an Azure Windows VM: what survives, what breaks, and how to prove it first
An in-place upgrade moves an Azure Windows Server VM to a newer OS without replacing the machine — apps, roles, disks, and networking stay put. It is also the option Microsoft documents reluctantly, for a reason you need to understand before you schedule the change. Here is the full picture: supported paths, the control-plane catch, the exact procedure, and how to rehearse on a clone before production.
What survives, what doesn’t
The reason to prefer an in-place upgrade over building a new VM is that everything keyed to the VM resource survives: the resource ID, disks, NICs, role assignments, tags, and the control-plane policies attached to them. Replacing the VM is what silently detaches them.
But Microsoft’s in-place upgrade documentation carries a warning most people skip: the upgrade disconnects the VM’s data plane from its control plane. Because the VM properties still record the original image (publisher, offer, plan) even though the running OS is new, the features that depend on that image record stop working:
Survives the upgrade
- VM resource ID, name, and resource group — Intact. Policies, tags, and graphs keyed to the resource keep pointing at the right machine.
- Managed disks and data volumes — Intact. The OS volume is rewritten in place; data disks are untouched.
- Network interfaces and private IP — Intact. NSGs, route tables, and private endpoints stay attached.
- Role assignments (RBAC), tags, and cost allocation — Intact. No re-tagging, no re-scoping, no broken cost reports.
- Azure Backup policy and backup history — Stays attached to the same VM resource. Verify one manual backup job after the upgrade.
- Site Recovery replication pair — Typically survives, but re-enable and re-protect after the reboot: replication state can go stale across an OS swap.
Breaks or degrades
- Azure Update Manager — Officially unsupported after the upgrade, per Microsoft. The VM stops reporting update compliance.
- Auto guest patching — Unsupported after the upgrade for the same reason: the running OS no longer matches the deployed image.
- Auto OS image upgrades (scale sets) — The platform will not image-upgrade a VM whose OS was moved in place.
- Hotpatching — Gone with the image binding.
- Image plan metadata — Stays on the OLD OS publisher/offer/sku forever. Inventory and cost reports will lie about what you run.
Read that right column as a standing operational task, not a footnote: a fleet upgraded in place looks healthy in Azure Update Manager and quietly isn’t. Whatever you do, plan who patches these machines after the upgrade, and record the old image plan before the metadata becomes fiction.
Supported paths
Azure’s upgrade media targets Windows Server 2012 through 2025, and the allowed source versions are narrow. Per Microsoft’s matrix:
| From | To |
|---|---|
| Windows Server 2008 / 2008 R2 | Windows Server 2012 |
| Windows Server 2012 / 2012 R2 | Windows Server 2016 |
| Windows Server 2012 R2 or 2016 | Windows Server 2019 |
| Windows Server 2016 or 2019 | Windows Server 2022 |
| Windows Server 2012 R2, 2016, 2019, or 2022 | Windows Server 2025 |
A Windows Server 2008-era machine is a two- or three-hop project (2008 → 2012 → 2016 → …), each hop a full OS upgrade with its own validation. That is exactly the kind of fleet work that wants a wave plan rather than a lucky weekend.
Prerequisites checklist
- Managed disks required. Unmanaged storage disks retired in November 2022; migrate first if any old VM still uses them.
- Volume licensing (KMS). The upgrade media assumes KMS activation. Generalized Azure images default to this; imported VMs may need the correct KMS client setup key and a verified connection to the Azure KMS service.
- Disk space. The OS volume needs room for the upgrade scratch space. Expand the OS disk before starting if it is tight — you cannot resize it comfortably mid-upgrade.
- Disable antivirus, anti-spyware, and firewalls for the duration. They conflict with setup; re-enable afterward.
- en-US only. The upgrade media exists in English (US) only. Set the system language or locale to en-US before starting if the server runs another language.
- Run the assessment tool. Microsoft’s Windows OS Upgrade Assessment Tool validates the path and known issues for that specific VM. It is free and it catches a surprising amount.
The procedure
1. Snapshot the disks
Take a snapshot of the OS disk and every data disk. This is not a suggestion — it is the entire recovery plan (how to snapshot a managed disk).
2. Create the upgrade media disk
Azure ships upgrade media as a hidden marketplace image you turn into a managed disk in the
same region and zone as the target VM. Publisher MicrosoftWindowsServer, offer WindowsServerUpgrade, and one of these SKUs: server2025Upgrade, server2022Upgrade, server2019Upgrade, server2016Upgrade, server2012Upgrade. One media disk upgrades one VM at a time; plan concurrent
upgrades need one disk each. The core of Microsoft’s create-disk script:
$image = Get-AzVMImage -PublisherName "MicrosoftWindowsServer" `
-Offer "WindowsServerUpgrade" -Skus "server2025Upgrade" `
-Location $location -Version $latestVersion
# New-AzDiskConfig -CreateOption FromImage, then Set-AzDiskImageReference -Lun 0 3. Attach it to the running VM
Virtual machine → Disks → Attach existing disk, pick the media disk. The VM can be running or stopped for attachment.
4. Run the upgrade
RDP into the running VM, find the new drive (usually E: or F:), and from the single directory on it:
.\setup.exe /auto upgrade /dynamicupdate disable
# add for unattended runs:
.\setup.exe /auto upgrade /dynamicupdate disable /eula accept The /eula accept switch matters: without it, setup can stall waiting on a
license dialog nobody is watching. RDP drops partway through — that is normal. Watch the
boot screenshot in the portal (boot diagnostics) instead of hammering the reconnect button.
5. Post-upgrade checklist
- Keep the snapshots until apps are verified. Delete the media disk once the result is known.
- Re-enable antivirus, anti-spyware, and firewall.
- Run one manual Azure Backup job and confirm it completes — policies survive, but prove it on this machine.
- Re-enable Site Recovery protection on any replicated VM and confirm replication is healthy.
- Check the VM Agent and extensions; some re-install cleanly, some need a kick.
- Record the patching gap. Auto-patching and Update Manager no longer apply to this VM (see the first section). Decide who does patching now.
If it fails: swap back, don’t improvise
A failed in-place upgrade leaves a half-upgraded OS — boot loops, servicing errors like 0x8007042B, apps that won’t start. Don’t debug it on the clock. Create managed
disks from the snapshots, stop the VM, swap the OS disk, detach the old data disks and
attach the snapshot-restored ones, and start. You’re back on the old OS in minutes, and the
real debugging happens off-hours. Microsoft’s recovery steps are in the same doc.
Prove it on a clone before production
The upgrade path on paper is not the upgrade path in production. Domain trust, app ports, installers that pin the old OS, an ISV that only supports “whatever you were running” — those only surface when a machine actually boots into the new OS. Attach the same upgrade media to a clone in a throwaway network and run the identical sequence. If you want a repeatable version of that — scan the fleet, grade every VM, rehearse each wave on clones, and produce a per-VM receipt — that is what JumpGrade automates, and it is on waitlist now.
Join the waitlistFAQ
Does an in-place upgrade keep my apps and data?
Yes — that is the point of an in-place upgrade. Settings, server roles, applications, and data stay in place because the operating system is upgraded underneath them rather than the VM being replaced. Still snapshot the OS and data disks first; the upgrade touches the OS volume.
What breaks when you upgrade Windows Server in place in Azure?
The image-tied control plane. Microsoft states that after an in-place upgrade, auto guest patching, auto OS image upgrades, hotpatching, and Azure Update Manager are no longer supported on that VM, and the VM properties keep the old image plan. Integrations attached to the VM resource itself — backup policies, replication pairs, role assignments, networking — survive.
Can I go straight from Windows Server 2008 R2 to 2025?
No. Upgrade paths are version-specific: 2008/R2 can only go to 2012, and each later target has its own allowed sources. A 2008-era VM is a multi-hop project — plan each hop as its own upgrade with its own validation.
Do I need new licenses for the upgrade?
Azure’s upgrade media requires the VM to be on volume licensing (KMS activation), which is the default for any Windows Server VM deployed from a generalized Azure image. VMs imported from on-premises may need to be converted to the correct KMS client setup key before the media will work.
What happens if the upgrade fails halfway?
The only clean rollback is the snapshots you took first. Create managed disks from the OS and data disk snapshots, stop the VM, swap the OS disk, swap the data disks, and start. Without snapshots you are debugging a half-upgraded OS, which is how a planned change turns into an outage.
Can I test the upgrade before touching production?
Yes, and you should. Clone the VM (or restore a snapshot to a new VM), attach the same upgrade media, and run the identical flow on the clone. A throwaway virtual network is the cleanest place to run it — domain trust and app-port failures show up there, not on a disk clone.