|
| 1 | +--- |
| 2 | +title: Upgrade Windows Operating System |
| 3 | +description: Learn how to upgrade Windows OS during migration. |
| 4 | +author: AnuragMehrotra |
| 5 | +ms.author: anuragm |
| 6 | +ms.manager: vijain |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 07/10/2023 |
| 9 | +ms.custom: engagement-fy23 |
| 10 | +--- |
| 11 | + |
| 12 | +# Azure Migrate Windows Server upgrade (Preview) |
| 13 | + |
| 14 | +This article describes how to upgrade Windows Server OS while migrating to Azure. Azure Migrate OS upgrade allows you to move from an older operating system to a newer one while keeping your settings, server roles, and data intact. You can move your on-premises server to Azure with an upgraded OS version of Windows Server using Windows upgrade. |
| 15 | + |
| 16 | +> [!NOTE] |
| 17 | +> This feature is currently available only for VMWare agentless migration. |
| 18 | +
|
| 19 | +## Prerequisites |
| 20 | + |
| 21 | +- Ensure you have an existing Migrate project or [create](create-manage-projects.md) a project. |
| 22 | +- Ensure you have discovered the servers according to [Discover servers in VMware environment](tutorial-discover-vmware.md) and replicated the servers as described in [Migrate VMware VMs](tutorial-migrate-vmware.md#replicate-vms). |
| 23 | +- Verify the operating system disk has enough [free space](https://learn.microsoft.com/windows-server/get-started/hardware-requirements#storage-controller-and-disk-space-requirements) to perform the in-place upgrade. The minimum disk space requirement is 32 GB. |
| 24 | +- The upgrade feature only works for Windows Server Standard and Datacenter editions. |
| 25 | +- This feature does not work for Windows Server with an evaluation license and needs a full license. If you have any server with an evaluation license, upgrade to full edition before starting migration to Azure. |
| 26 | +- Disable antivirus and anti-spyware software and firewalls. These types of software can conflict with the upgrade process. Re-enable antivirus and anti-spyware software and firewalls after the upgrade is completed. |
| 27 | +- Ensure that your VM has the capability of adding another data disk as this feature requires the addition of an extra data disk temporarily for a seamless upgrade experience. |
| 28 | +- For Private Endpoint enabled Azure Migrate projects, follow [these](migrate-servers-to-azure-using-private-link.md?pivots=agentlessvmware#replicate-vms) steps before initiating any Test migration/Migration with OS upgrade. |
| 29 | + |
| 30 | + |
| 31 | +> [!NOTE] |
| 32 | +> In case of OS upgrade failure, Azure Migrate may download the Windows SetupDiag for error details. Ensure the VM created in Azure post the migration has access to [SetupDiag](https://go.microsoft.com/fwlink/?linkid=870142). In case there is no access to SetupDiag, you may not be able to get detailed OS upgrade failure error codes but the upgrade can still proceed. |
| 33 | +
|
| 34 | +## Overview |
| 35 | + |
| 36 | +The Windows OS upgrade capability helps you move from an older operating system to a newer one while keeping your settings, server roles, and data intact. Since both upgrade and migration operations are completed at once, this reduces duplicate planning, downtime, and test efforts. The upgrade capability also reduces the risk, as customers can first test their OS upgrade in an isolated environment in Azure using test migration without any impact on their on-premises server. |
| 37 | + |
| 38 | +You can upgrade to up to two versions from the current version. |
| 39 | + |
| 40 | +**Source** | **Supported target versions** |
| 41 | +--- | --- |
| 42 | +Windows Server 2012 | Windows Server 2016 |
| 43 | +Windows Server 2012 R2 | Windows Server 2016, Windows Server 2019 |
| 44 | +Windows Server 2016 | Windows Server 2019, Windows Server 2022 |
| 45 | +Windows Server 2019 | Windows Server 2022 |
| 46 | + |
| 47 | +## Upgrade Windows OS during test migration |
| 48 | + |
| 49 | +To upgrade Windows during the test migration, follow these steps: |
| 50 | + |
| 51 | +1. On the **Get started** page > **Servers, databases and web apps**, select **Replicate**. |
| 52 | + |
| 53 | + A Start Replication job begins. When the Start Replication job finishes successfully, the machines begin their initial replication to Azure. |
| 54 | + |
| 55 | +3. Select **Replicating servers** in **Migration and modernization** to monitor the replication status. |
| 56 | + |
| 57 | +4. In **Migration goals** > **Servers, databases and webapps** > **Migration and modernization**, select **Replicated servers** under **Replications**. |
| 58 | + |
| 59 | +5. In the **Replicating machines** tab, right-click the VM to test and select **Test migrate**. |
| 60 | + |
| 61 | +6. Select the **Upgrade available** option. In the pane that appears, select the target OS version that you want to upgrade to and select **Apply**. |
| 62 | + |
| 63 | +7. Select **Test migration** to initiate the test migration followed by the OS upgrade. |
| 64 | + |
| 65 | +8. After the migration job is successful, view the migrated Azure VM in **Virtual Machines** in the Azure portal. The machine name has the suffix *-Test*. |
| 66 | + |
| 67 | + You can now use this server with upgraded OS to complete any application testing. The original server continues running on-premises without any impact while you test the newly upgraded server in an isolated environment. |
| 68 | + |
| 69 | +9. After the test is done, right-click the Azure VM in **Replicating machines**, and select **Clean up test migration**. This deletes the test VM and any resources associated with it. |
| 70 | + |
| 71 | +## Upgrade Windows OS during migration |
| 72 | + |
| 73 | +After you've verified that the test migration works as expected, you can migrate the on-premises machines. To upgrade Windows during the migration, follow these steps: |
| 74 | + |
| 75 | +1. On the **Get started** page > **Servers, databases and web apps**, select **Replicate**. A Start Replication job begins. |
| 76 | +2. In **Replicating machines**, right-click the VM and select **Migrate**. |
| 77 | +3. In **Migrate** > **Shut down virtual machines and perform a planned migration with no data loss**, select **Yes** > **OK**. |
| 78 | + - By default, Azure Migrate shuts down the on-premises VM to ensure minimum data loss. |
| 79 | + - If you don't want to shut down the VM, select No. |
| 80 | +4. Select the **Upgrade available** option. |
| 81 | +5. In the pane that appears, select the target OS version that you want to upgrade to and select **Apply**. The upgrade available option changes to upgrade configured. |
| 82 | + |
| 83 | +5. Select **Migrate** to start the migration and the upgrade. |
| 84 | + |
| 85 | +## Next steps |
| 86 | + |
| 87 | +Investigate the [cloud migration journey](https://learn.microsoft.com/azure/architecture/cloud-adoption/getting-started/migrate) in the Azure Cloud Adoption Framework. |
| 88 | + |
| 89 | + |
0 commit comments