Skip to content

Commit c60d85e

Browse files
Merge pull request #245101 from MicrosoftDocs/main
publish main to live, 4 PM Sundday 7/16
2 parents 0bc301d + 05bd2e3 commit c60d85e

16 files changed

+227
-50
lines changed

articles/migrate/concepts-migration-planning.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: rajosh
66
ms.manager: abhemraj
77
ms.service: azure-migrate
88
ms.topic: conceptual
9-
ms.date: 02/27/2023
9+
ms.date: 07/10/2023
1010
ms.custom: engagement-fy23
1111
---
1212

@@ -151,6 +151,16 @@ When you're ready for migration, use the Migration and modernization tool, and t
151151
- With the Migration and modernization tool, you can migrate on-premises VMs and servers, or VMs located in other private or public cloud (including AWS, GCP) with around zero downtime.
152152
- Azure DMS provides a fully managed service that's designed to enable seamless migrations from multiple database sources to Azure Data platforms, with minimal downtime.
153153

154+
### Upgrade Windows OS
155+
156+
Azure Migrate provides an option to customers to upgrade their Windows Server OS seamlessly during the migration. 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. [Learn more](how-to-upgrade-windows.md).
157+
158+
Azure Migrate OS upgrade uses an Azure VM [Custom script extension](../virtual-machines/extensions/custom-script-windows.md) to perform the following activities for an in-place upgrade experience:
159+
160+
- A data disk containing Windows Server setup files is created and attached to the VM.
161+
- A Custom Script Extension called `InPlaceOsUpgrade` is enabled on the VM, which downloads a script from the storage account and initiates the upgrade in a quiet mode.
162+
163+
154164
## Next steps
155165

156166
- Investigate the [cloud migration journey](/azure/architecture/cloud-adoption/getting-started/migrate) in the Azure Cloud Adoption Framework.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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+

articles/migrate/index.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ landingContent:
7979
url: ./how-to-discover-applications.md
8080
- text: Add migration tools
8181
url: ./how-to-migrate.md
82+
- text: Upgrade Windows OS
83+
url: ./how-to-upgrade-windows.md
8284
- text: Scale VMware assessment
8385
url: ./scale-vmware-assessment.md
8486
- text: Automate and scale migration
13.1 KB
Loading
15.1 KB
Loading
72.2 KB
Loading
27.7 KB
Loading

articles/migrate/toc.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@
265265
href: how-to-migrate-vmware-vms-with-cmk-disks.md
266266
- name: Test migration
267267
href: how-to-test-replicating-virtual-machines.md
268+
- name: Upgrade Windows OS
269+
href: how-to-upgrade-windows.md
268270
- name: Scale migration
269271
items:
270272
- name: How to migrate VMware VMs at scale using the agentless replication method
@@ -312,7 +314,9 @@
312314
- name: Troubleshoot stuck replication and slow migration issues in agentless VMware
313315
href: troubleshoot-replication-vmware.md
314316
- name: Troubleshoot web app migration issues
315-
href: troubleshoot-webapps-migration.md
317+
href: troubleshoot-webapps-migration.md
318+
- name: Troubleshoot Windows OS upgrade issues
319+
href: troubleshoot-upgrade.md
316320
- name: Reference
317321
items:
318322
- name: Azure CLI
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: Troubleshoot Windows upgrade issues
3+
description: Provides an overview of known issues in the Windows OS upgrade feature
4+
author: AnuragMehrotra
5+
ms.author: anuragm
6+
ms.service: azure-migrate
7+
ms.topic: conceptual
8+
ms.date: 06/08/2023
9+
ms.custom: engagement-fy23
10+
---
11+
12+
# Troubleshoot Windows OS upgrade issues 
13+
14+
This article describes some common issues that you might encounter when you upgrade the Windows OS using the Migration and modernization tool. 
15+
16+
## Cannot attach the OS setup disk as VM reached maximum disk allowed
17+
18+
The Test Migration and Migration will fail in the prerequisite stage if the VM already has the maximum number of data disks based on its SKU. Since the workflow creates an additional data disk temporarily, it's mandatory to have n-1 (n represents maximum number of disks supported for the respective SKU of the VM) disks to complete the upgrade successfully.   
19+
20+
### Recommended action
21+
22+
Select a different target Azure VM SKU that can attach more data disks and retry the operation. Since Azure Migrate completed the migration and created a VM in Azure, retry the operation by following these steps:   
23+
24+
1. Clean up the migration:  
25+
1. Test Migration: Right-click the Azure VM in **Replications** and select **Clean up test migration**. 
26+
1. Migration: Since the VM is already migrated to Azure, follow [these](https://learn.microsoft.com/azure/virtual-machines/windows-in-place-upgrade) steps here to upgrade the OS.
27+
28+
2. Update the target VM SKU settings:   
29+
1. In the Azure portal, select the Azure Migrate project.   
30+
2. Go to **Migration tools** > **Replications** > Azure VM count.   
31+
3. Select the Replicating machine.   
32+
4. Go to **Compute and network**.   
33+
5. In **Compute**, change the VM size to support more data disks.   
34+
35+
3. Verify that 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. If more space is needed, follow [these](https://learn.microsoft.com/azure/virtual-machines/windows/expand-os-disk) steps to expand the operating system disk attached to the VM for a successful OS upgrade.   
36+
37+
## Migration fails for Private endpoint enabled Azure Migrate projects 
38+
39+
The migration fails if the storage account that you select for replicating VMs doesn't have the Firewall settings of the target VNET.
40+
41+
### Recommended action
42+
43+
Add the target VNET into the firewall in the storage account that you select in the above step for replicating VMs: 
44+
45+
1. Go to **Networking** > **Firewall and Virtual Networks** > **Public Network Access – Enabled from selected Virtual Network and IP address** > **Virtual Network** > Add existing Virtual Network and add your target VNET. Then proceed with the Test Migration/Migration.   
46+
47+
2. Perform the initial replication by following [these](migrate-servers-to-azure-using-private-link.md?pivots=agentlessvmware#replicate-vms) steps. 
48+
49+
## Server is migrated without OS upgrade with status “Completed with errors” 
50+
51+
If the source OS version and the OS version to be upgraded are the same, the server migrates without an OS upgrade with the status **Completed with errors**. For example, if the source OS version is Windows 2019 and the upgrade option selected is Windows 2019, then the server is migrated without an OS upgrade with the status **Completed with errors**. 
52+
53+
### Recommended action
54+
55+
Ensure the current OS version is different from the target OS version.  
56+
57+
## Next steps
58+
59+
[Learn more](tutorial-migrate-vmware.md) about migrating VMware VMs.

articles/migrate/tutorial-migrate-vmware.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,17 @@ Before you begin this tutorial, you should:
4040
3. Go to the already created project or [create a new project](./create-manage-projects.md)
4141
4. Verify permissions for your Azure account - Your Azure account needs permissions to create a VM, and write to an Azure managed disk.
4242

43+
> [!NOTE]
44+
> If you're planning to upgrade your Windows operating system, Azure Migrate may download the Windows SetupDiag for error details in case upgrade fails. 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.
45+
4346
## Set up the Azure Migrate appliance
4447

4548
The Migration and modernization tool runs a lightweight VMware VM appliance that's used for discovery, assessment, and agentless migration of VMware VMs. If you follow the [assessment tutorial](./tutorial-assess-vmware-azure-vm.md), you've already set the appliance up. If you didn't, set it up now, using one of these methods:
4649

4750
- **OVA template**: [Set up](how-to-set-up-appliance-vmware.md) on a VMware VM using a downloaded OVA template.
4851
- **Script**: [Set up](deploy-appliance-script.md) on a VMware VM or physical machine, using a PowerShell installer script. This method should be used if you can't set up a VM using an OVA template, or if you're in Azure Government.
4952

50-
After creating the appliance, you check that it can connect to Azure Migrate:Server Assessment, configure it for the first time, and register it with the Azure Migrate project.
53+
After creating the appliance, you check that it can connect to Azure Migrate: Server Assessment, configure it for the first time, and register it with the Azure Migrate project.
5154

5255
## Replicate VMs
5356

@@ -103,7 +106,7 @@ Enable replication as follows:
103106

104107
11. In **Compute**, review the VM name, size, OS disk type, and availability configuration (if selected in the previous step). VMs must conform with [Azure requirements](migrate-support-matrix-vmware-migration.md#azure-vm-requirements).
105108

106-
- **VM size**: If you're using assessment recommendations, the VM size dropdown shows the recommended size. Otherwise Azure Migrate picks a size based on the closest match in the Azure subscription. Alternatively, pick a manual size in **Azure VM size**.
109+
- **VM size**: If you're using assessment recommendations, the VM size dropdown shows the recommended size. Otherwise, Azure Migrate picks a size based on the closest match in the Azure subscription. Alternatively, pick a manual size in **Azure VM size**.
107110
- **OS disk**: Specify the OS (boot) disk for the VM. The OS disk is the disk that has the operating system bootloader and installer.
108111
- **Availability Zone**: Specify the Availability Zone to use.
109112
- **Availability Set**: Specify the Availability Set to use.
@@ -175,7 +178,7 @@ Do a test migration as follows:
175178
4. Choose the subnet to which you would like to associate each of the Network Interface Cards (NICs) of the migrated VM.
176179

177180
:::image type="content" source="./media/tutorial-migrate-vmware/test-migration-subnet-selection.png" alt-text="Screenshot shows subnet selection during test migration.":::
178-
181+
1. You have an option to upgrade the Windows Server OS during test migration. To upgrade, select the **Upgrade available** option. In the pane that appears, select the target OS version that you want to upgrade to and select **Apply**. [Learn more](how-to-upgrade-windows.md).
179182
5. The **Test migration** job starts. Monitor the job in the portal notifications.
180183
6. After the migration finishes, view the migrated Azure VM in **Virtual Machines** in the Azure portal. The machine name has a suffix **-Test**.
181184
7. After the test is done, right-click the Azure VM in **Replicating machines**, and click **Clean up test migration**.
@@ -199,6 +202,7 @@ After you've verified that the test migration works as expected, you can migrate
199202
3. In **Migrate** > **Shut down virtual machines and perform a planned migration with no data loss**, select **Yes** > **OK**.
200203
- By default Azure Migrate shuts down the on-premises VM, and runs an on-demand replication to synchronize any VM changes that occurred since the last replication occurred. This ensures no data loss.
201204
- If you don't want to shut down the VM, select **No**
205+
1. You have an option to upgrade the Windows Server OS during migration. To upgrade, select the **Upgrade available** option. In the pane that appears, select the target OS version that you want to upgrade to and select **Apply**. [Learn more](how-to-upgrade-windows.md).
202206
4. A migration job starts for the VM. Track the job in Azure notifications.
203207
5. After the job finishes, you can view and manage the VM from the **Virtual Machines** page.
204208

0 commit comments

Comments
 (0)