Skip to content

Commit 673e958

Browse files
Merge pull request #3677 from MicrosoftDocs/main638847578903203839sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 95202cc + add1475 commit 673e958

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed
65.2 KB
Loading
66.8 KB
Loading
79.5 KB
Loading

azure-local/migrate/migrate-troubleshoot.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Troubleshoot issues when migrating VMs to Azure Local using Azure Migrate
33
description: Learn about how to troubleshoot issues when migrating Windows VMs to your Azure Local instance using Azure Migrate (preview).
44
author: alkohli
55
ms.topic: how-to
6-
ms.date: 05/14/2025
6+
ms.date: 06/04/2025
77
ms.author: alkohli
88
ms.reviewer: alkohli
99
ms.custom: linux-related-content
@@ -375,6 +375,49 @@ Complete the following steps:
375375
1. Verify that the intended IP address isn't currently assigned to another network interface.
376376
1. Update the logical network configuration as needed to ensure no IP conflicts exist before retrying the migration.
377377

378+
### Clean up resources from failed migrations
379+
380+
**Root cause**
381+
382+
In some cases, migrations to Azure Local may fail during the migration phase, such as during planned failover, not during initial replication. When this occurs, manual cleanup of partially created resources may be required to ensure future migration attempts are successful.
383+
384+
**Recommended resolution**
385+
386+
To determine where the failure occurred, open the Planned failover job in the Azure Migrate portal. Use the job details to identify whether the failure occurred before or after VM creation on the Azure Local instance.
387+
388+
*If the failure occurred before VM creation*
389+
390+
Task failures listed above the red line (above the **Preparing protected entities** task) indicate that no target VM was created. No cleanup is required and you can retry migration directly.
391+
392+
:::image type="content" source="./media/migrate-troubleshoot/before-vm-creation.png" alt-text="Screenshot of Planned failover page before creation." lightbox="./media/migrate-troubleshoot/before-vm-creation.png":::
393+
394+
*If the failure occurred during or after VM creation*
395+
396+
Task failures listed below the red line (**Preparing protected entities** task and below) indicate that a target VM was partially or fully created. Manual cleanup is required before retrying migration.
397+
398+
:::image type="content" source="./media/migrate-troubleshoot/after-vm-creation.png" alt-text="Screenshot of Planned failover page after creation." lightbox="./media/migrate-troubleshoot/after-vm-creation.png":::
399+
400+
1. In Azure portal, navigate to the target Azure Local instance.
401+
402+
1. Locate and verify if a VM corresponding to the failed migration exists.
403+
404+
1. If found, delete the VM from the portal.
405+
406+
:::image type="content" source="./media/migrate-troubleshoot/delete-vm.png" alt-text="Screenshot showing Delete button for selected virtual machine." lightbox="./media/migrate-troubleshoot/delete-vm.png":::
407+
408+
1. Connect to the Azure Local instance directly (via Hyper-V Manager) and confirm that the associated VM was also removed from the local Hyper-V host. If it wasn't removed, manually delete the VM resource.
409+
410+
1. Don't delete any of the following resources that may have been created:
411+
412+
- Migrated (target) disk.
413+
414+
- Seed disk.
415+
416+
- Network interfaces.
417+
418+
These resources will be reused automatically by Azure Migrate during subsequent migration attempts.
419+
420+
378421
## Next steps
379422

380423
Depending upon the phase of migration you are in, you may need to review one of the following articles to troubleshoot issues:

0 commit comments

Comments
 (0)