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
@@ -17,62 +17,88 @@ The following scenarios aren't yet supported:
17
17
* Virtual Machine Scale Sets with Standard SKU Load Balancer or Standard SKU Public IP can't be moved.
18
18
* Virtual machines in an existing virtual network can't be moved to a new subscription when you aren't moving all resources in the virtual network.
19
19
* Virtual machines created from Marketplace resources with plans attached can't be moved across subscriptions. For a potential workaround, see [Virtual machines with Marketplace plans](#virtual-machines-with-marketplace-plans).
20
-
* Lowpriority virtual machines and lowpriority virtual machine scale sets can't be moved across resource groups or subscriptions.
20
+
* Low-priority virtual machines and low-priority virtual machine scale sets can't be moved across resource groups or subscriptions.
21
21
* Virtual machines in an availability set can't be moved individually.
22
22
23
23
## Azure disk encryption
24
24
25
25
You can't move a virtual machine that is integrated with a key vault to implement [Azure Disk Encryption for Linux VMs](../../../virtual-machines/linux/disk-encryption-overview.md) or [Azure Disk Encryption for Windows VMs](../../../virtual-machines/windows/disk-encryption-overview.md). To move the VM, you must disable encryption.
26
26
27
+
# [Azure CLI](#tab/azure-cli)
28
+
27
29
```azurecli-interactive
28
30
az vm encryption disable --resource-group demoRG --name myVm1 --volume-type all
29
31
```
30
32
33
+
# [PowerShell](#tab/azure-powershell)
34
+
31
35
```azurepowershell-interactive
32
36
Disable-AzVMDiskEncryption -ResourceGroupName demoRG -VMName myVm1 -VolumeType all
33
37
```
34
38
39
+
---
40
+
35
41
## Virtual machines with Marketplace plans
36
42
37
43
Virtual machines created from Marketplace resources with plans attached can't be moved across subscriptions. To work around this limitation, you can de-provision the virtual machine in the current subscription, and deploy it again in the new subscription. The following steps help you recreate the virtual machine in the new subscription. However, they might not work for all scenarios. If the plan is no longer available in the Marketplace, these steps won't work.
az vm image terms accept --publisher {publisher} --offer {product/offer} --plan {name/SKU}
86
+
```
67
87
68
-
```azurecli
69
-
az vm image terms accept --publisher {publisher} --offer {product/offer} --plan {name/SKU}
70
-
```
88
+
# [PowerShell](#tab/azure-powershell)
71
89
72
-
Or, you can create a new instance of a virtual machine with the plan through the portal. You can delete the virtual machine after accepting the terms in the new subscription.
Or, you can create a new instance of a virtual machine with the plan through the portal. You can delete the virtual machine after accepting the terms in the new subscription.
73
97
74
98
1. In the destination subscription, recreate the virtual machine from the cloned OS disk using PowerShell, CLI, or an Azure Resource Manager template. Include the marketplace plan that's attached to the disk. The information about the plan should match the plan you purchased in the new subscription. For more information, see [Create the VM](../../../virtual-machines/marketplace-images.md#create-the-vm).
75
99
100
+
For more information, see [Move a Marketplace Azure Virtual Machine to another subscription](../../../virtual-machines/azure-cli-change-subscription-marketplace.md).
101
+
76
102
## Virtual machines with Azure Backup
77
103
78
104
To move virtual machines configured with Azure Backup, you must delete the restore points collections (snapshots) from the vault. Restore points already copied to the vault can be retained and moved.
@@ -94,68 +120,78 @@ If [soft delete](../../../backup/soft-delete-virtual-machines.md) is enabled for
94
120
3. Move the VM to the target resource group.
95
121
4. Reconfigure the backup.
96
122
97
-
### PowerShell
123
+
### Script
98
124
99
125
1. Find the location of your virtual machine.
100
126
101
127
1. Find a resource group with the naming pattern - `AzureBackupRG_<VM location>_1`. For example, the name might be `AzureBackupRG_westus2_1`.
102
128
103
129
1. If you're moving only one virtual machine, get the restore point collection for that virtual machine.
0 commit comments