You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/management/move-limitations/virtual-machines-move-limitations.md
+28-6Lines changed: 28 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Move Azure VMs to new subscription or resource group
3
3
description: Use Azure Resource Manager to move virtual machines to a new resource group or subscription.
4
4
ms.topic: conceptual
5
-
ms.date: 10/10/2019
5
+
ms.date: 03/31/2020
6
6
---
7
7
8
8
# Move guidance for virtual machines
@@ -22,18 +22,40 @@ The following scenarios aren't yet supported:
22
22
23
23
## Virtual machines with Azure Backup
24
24
25
-
To move virtual machines configured with Azure Backup, use the following workaround:
25
+
To move virtual machines configured with Azure Backup, you must delete the restore points from the vault.
26
+
27
+
If [soft delete](../../../backup/backup-azure-security-feature-cloud.md) is enabled for your virtual machine, you can't move the virtual machine while those restore points are kept. Either [disable soft delete](../../../backup/backup-azure-security-feature-cloud.md#disabling-soft-delete) or wait 14 days after deleting the restore points.
28
+
29
+
### Portal
30
+
31
+
1. Select the virtual machine that is configured for backup.
32
+
33
+
1. In the left pane, select **Backup**.
34
+
35
+
1. Select **Stop backup**.
36
+
37
+
1. Select **Delete back data**.
38
+
39
+
1. After delete is complete, you can move the vault and virtual machine to the target subscription. After the move, you can continue backups.
40
+
41
+
### PowerShell
26
42
27
43
* Find the location of your Virtual Machine.
28
44
* Find a resource group with the following naming pattern: `AzureBackupRG_<location of your VM>_1` for example, AzureBackupRG_westus2_1
29
-
* If in Azure portal, then check "Show hidden types"
30
45
* If in PowerShell, use the `Get-AzResource -ResourceGroupName AzureBackupRG_<location of your VM>_1` cmdlet
46
+
* Find the resource with type `Microsoft.Compute/restorePointCollections` that has the naming pattern `AzureBackup_<name of your VM that you're trying to move>_###########`
47
+
* Delete this resource. This operation deletes only the instant recovery points, not the backed-up data in the vault.
48
+
49
+
### Azure CLI
50
+
51
+
* Find the location of your Virtual Machine.
52
+
* Find a resource group with the following naming pattern: `AzureBackupRG_<location of your VM>_1` for example, AzureBackupRG_westus2_1
31
53
* If in CLI, use the `az resource list -g AzureBackupRG_<location of your VM>_1`
32
54
* Find the resource with type `Microsoft.Compute/restorePointCollections` that has the naming pattern `AzureBackup_<name of your VM that you're trying to move>_###########`
33
55
* Delete this resource. This operation deletes only the instant recovery points, not the backed-up data in the vault.
34
-
* After delete is complete, you can move the vault and virtual machine to the target subscription. After the move, you can continue backups with no loss in data.
35
-
* For information about moving Recovery Service vaults for backup, see [Recovery Services limitations](../../../backup/backup-azure-move-recovery-services-vault.md?toc=/azure/azure-resource-manager/toc.json).
36
56
37
57
## Next steps
38
58
39
-
For commands to move resources, see [Move resources to new resource group or subscription](../move-resource-group-and-subscription.md).
59
+
* For commands to move resources, see [Move resources to new resource group or subscription](../move-resource-group-and-subscription.md).
60
+
61
+
* For information about moving Recovery Service vaults for backup, see [Recovery Services limitations](../../../backup/backup-azure-move-recovery-services-vault.md?toc=/azure/azure-resource-manager/toc.json).
0 commit comments