In-place upgrade for supported VMs running Windows in Azure

Applies to: ✔️ Windows VMs

Caution

Following the process in this article will cause a disconnection between the data plane and the control plane of the virtual machine (VM). Azure capabilities such as Auto guest patching, Auto OS image upgrades, Hotpatching, and Azure Update Manager won't be available. To utilize these features, it's recommended to create a new VM using your preferred operating system instead of performing an in-place upgrade.

This article describes how to do an in-place system upgrade of supported Windows 10-based Azure VMs. This article also describes workarounds for Azure VMs that aren't supported for in-place system upgrades. For Azure VMs running Windows Server, see In-place upgrade for supported Windows Server VMs.

Note

Looking for Windows Server?
For the in-place system upgrade procedure for VMs that are running Windows Server, see In-place upgrade for VMs running Windows Server in Azure.

Original product version:   Windows 10, version 1803, all editions, Windows 10, version 1709, all editions, Virtual Machine running Windows, Windows 10, Windows 8.1, Windows 7 Enterprise
Original KB number:   4014997

Symptoms

Consider the following scenario:

  • You have a VM that's running Windows in a Microsoft Azure environment.
  • You run an in-place upgrade of the VM to a newer version of the operating system.

In this scenario, the upgrade may fail or become blocked and require direct console access.

Cause

In-place system upgrades are supported for specific versions of Azure Windows VMs. We're working to broaden support of in-place system upgrade (as a Feature Update) to other versions soon.

Windows versions supported for in-place system upgrades

Windows versions not yet supported for in-place system upgrades (consider using a workaround)

  • Windows 10 and 11 Enterprise multi-session, all versions
  • Windows 8.1
  • Windows 7 Enterprise

In-place system upgrade process for a Windows 10 VM

This process requires 45-60 minutes to complete and for the VM to restart. To do the in-place system upgrade, follow these steps:

  1. Verify that the Windows 10 VM doesn't use Ephemeral OS Disk. This feature is currently not supported.

  2. Verify that the Windows 10 VM has at least 2 GB of RAM, and 12 GB of free disk space on the system disk.

  3. To prevent data loss, back up the Windows 10 VM by using Azure Backup. Or use a third-party backup solution from Azure Marketplace Backup & Recovery.

  4. Check whether the backup was successful. To do this, turn off the original Windows 10 VM. Verify that a new VM can be successfully restored from the backup and that all applications are running successfully.

    Note

    Either the original Windows 10 VM or the restored VM can be used as a source for in-place system upgrade. But both VMs can't be running at the same time unless the system name of the VM and the IP addresses on one of the VMs was changed to prevent conflicts.

  5. Connect to the Windows 10 VM, and go to Settings > Updates & Security > Windows Update.

  6. In Windows Update, select Check for updates.

  7. When the Feature Update item appears, select Download and install now.

  8. The update will download and install. User settings and data will be preserved, and the VM will restart automatically.

If you have general questions about this procedure, post to Microsoft Q&A and add the azure-virtual-machines tag to your question.

Workaround

To work around this issue, create an Azure VM that's running a supported version. Download and upgrade the VHD of the VM.

To prevent data loss, back up the Windows 10 VM by using Azure Backup. Or use a third-party backup solution from Azure Marketplace Backup & Recovery.

Download and upgrade the VHD

Step 1: Do an in-place upgrade in a local Hyper-V VM

  1. Download the VHD of the VM.
  2. Attach the VHD to a local Hyper-V VM.
  3. Start the VM.
  4. Run the in-place upgrade.

Step 2: Upload the VHD to Azure

Follow the steps in the following article to upload the VHD to Azure and to deploy the VM.

Upload a generalized VHD and use it to create new VMs in Azure

Note

When performing an in-place upgrade on Azure Windows VMs, the VM properties on the Azure portal aren't updated; the changes are only reflected within the OS. This means that the source image information in the VM properties, including the publisher, offer, and plan, remains unchanged. The image used to deploy the VM remains the same, and only the OS is upgraded.

References

Microsoft server software support for Microsoft Azure virtual machines.

Contact us for help

If you have questions or need help, create a support request, or ask Azure community support. You can also submit product feedback to Azure feedback community.