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/virtual-machines/linux/convert-unmanaged-to-managed-disks.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Convert a Linux VM from unmanaged disks to managed disks
3
-
description: How to convert a Linux VM from unmanaged disks to managed disks by using Azure CLI.
2
+
title: Migrate a Linux VM from unmanaged disks to managed disks
3
+
description: How to Migrate a Linux VM from unmanaged disks to managed disks by using Azure CLI.
4
4
author: roygara
5
5
ms.service: storage
6
6
ms.collection: linux
@@ -10,47 +10,47 @@ ms.author: rogarana
10
10
ms.subservice: disks
11
11
---
12
12
13
-
# Convert a Linux virtual machine from unmanaged disks to managed disks
13
+
# Migrate a Linux virtual machine from unmanaged disks to managed disks
14
14
15
15
**Applies to:**:heavy_check_mark: Linux VMs
16
16
17
-
If you have existing Linux virtual machines (VMs) that use unmanaged disks, you can convert the VMs to use [Azure Managed Disks](../managed-disks-overview.md). This process converts both the OS disk and any attached data disks.
17
+
If you have existing Linux virtual machines (VMs) that use unmanaged disks, you can migrate the VMs to use [Azure Managed Disks](../managed-disks-overview.md). This process converts both the OS disk and any attached data disks.
18
18
19
-
This article shows you how to convert VMs by using the Azure CLI. If you need to install or upgrade it, see [Install Azure CLI](/cli/azure/install-azure-cli).
19
+
This article shows you how to migrate VMs by using the Azure CLI. If you need to install or upgrade it, see [Install Azure CLI](/cli/azure/install-azure-cli).
20
20
21
21
## Before you begin
22
22
* Review [the FAQ about migration to Managed Disks](../faq-for-disks.yml).
* The original VHDs and the storage account used by the VM before conversion are not deleted. They continue to incur charges. To avoid being billed for these artifacts, delete the original VHD blobs after you verify that the conversion is complete. If you need to find these unattached disks in order to delete them, see our article [Find and delete unattached Azure managed and unmanaged disks](find-unattached-disks.md).
26
+
* The original VHDs and the storage account used by the VM before migration are not deleted. They continue to incur charges. To avoid being billed for these artifacts, delete the original VHD blobs after you verify that the migration is complete. If you need to find these unattached disks in order to delete them, see our article [Find and delete unattached Azure managed and unmanaged disks](find-unattached-disks.md).
27
27
28
-
## Convert single-instance VMs
29
-
This section covers how to convert single-instance Azure VMs from unmanaged disks to managed disks. (If your VMs are in an availability set, see the next section.) You can use this process to convert the VMs from premium (SSD) unmanaged disks to premium managed disks, or from standard (HDD) unmanaged disks to standard managed disks.
28
+
## Migrate single-instance VMs
29
+
This section covers how to migrate single-instance Azure VMs from unmanaged disks to managed disks. (If your VMs are in an availability set, see the next section.) You can use this process to migrate the VMs from premium (SSD) unmanaged disks to premium managed disks, or from standard (HDD) unmanaged disks to standard managed disks.
30
30
31
31
1. Deallocate the VM by using [az vm deallocate](/cli/azure/vm). The following example deallocates the VM named `myVM` in the resource group named `myResourceGroup`:
32
32
33
33
```azurecli
34
34
az vm deallocate --resource-group myResourceGroup --name myVM
35
35
```
36
36
37
-
2. Convert the VM to managed disks by using [az vm convert](/cli/azure/vm). The following process converts the VM named `myVM`, including the OS disk and any data disks:
37
+
2. Migrate the VM to managed disks by using [az vm convert](/cli/azure/vm). The following process converts the VM named `myVM`, including the OS disk and any data disks:
38
38
39
39
```azurecli
40
40
az vm convert --resource-group myResourceGroup --name myVM
41
41
```
42
42
43
-
3. Start the VM after the conversion to managed disks by using [az vm start](/cli/azure/vm). The following example starts the VM named `myVM` in the resource group named `myResourceGroup`.
43
+
3. Start the VM after the migration to managed disks by using [az vm start](/cli/azure/vm). The following example starts the VM named `myVM` in the resource group named `myResourceGroup`.
44
44
45
45
```azurecli
46
46
az vm start --resource-group myResourceGroup --name myVM
47
47
```
48
48
49
-
## Convert VMs in an availability set
49
+
## Migrate VMs in an availability set
50
50
51
-
If the VMs that you want to convert to managed disks are in an availability set, you first need to convert the availability set to a managed availability set.
51
+
If the VMs that you want to migrate to managed disks are in an availability set, you first need to migrate the availability set to a managed availability set.
52
52
53
-
All VMs in the availability set must be deallocated before you convert the availability set. Plan to convert all VMs to managed disks after the availability set itself has been converted to a managed availability set. Then, start all the VMs and continue operating as normal.
53
+
All VMs in the availability set must be deallocated before you migrate the availability set. Plan to migrate all VMs to managed disks after the availability set itself has been converted to a managed availability set. Then, start all the VMs and continue operating as normal.
54
54
55
55
1. List all VMs in an availability set by using [az vm availability-set list](/cli/azure/vm/availability-set). The following example lists all VMs in the availability set named `myAvailabilitySet` in the resource group named `myResourceGroup`:
56
56
@@ -68,35 +68,35 @@ All VMs in the availability set must be deallocated before you convert the avail
68
68
az vm deallocate --resource-group myResourceGroup --name myVM
69
69
```
70
70
71
-
3. Convert the availability set by using [az vm availability-set convert](/cli/azure/vm/availability-set). The following example converts the availability set named `myAvailabilitySet` in the resource group named `myResourceGroup`:
71
+
3. Migrate the availability set by using [az vm availability-set convert](/cli/azure/vm/availability-set). The following example converts the availability set named `myAvailabilitySet` in the resource group named `myResourceGroup`:
72
72
73
73
```azurecli
74
74
az vm availability-set convert \
75
75
--resource-group myResourceGroup \
76
76
--name myAvailabilitySet
77
77
```
78
78
79
-
4. Convert all the VMs to managed disks by using [az vm convert](/cli/azure/vm). The following process converts the VM named `myVM`, including the OS disk and any data disks:
79
+
4. Migrate all the VMs to managed disks by using [az vm convert](/cli/azure/vm). The following process converts the VM named `myVM`, including the OS disk and any data disks:
80
80
81
81
```azurecli
82
82
az vm convert --resource-group myResourceGroup --name myVM
83
83
```
84
84
85
-
5. Start all the VMs after the conversion to managed disks by using [az vm start](/cli/azure/vm). The following example starts the VM named `myVM` in the resource group named `myResourceGroup`:
85
+
5. Start all the VMs after the migration to managed disks by using [az vm start](/cli/azure/vm). The following example starts the VM named `myVM` in the resource group named `myResourceGroup`:
86
86
87
87
```azurecli
88
88
az vm start --resource-group myResourceGroup --name myVM
89
89
```
90
90
91
-
## Convert using the Azure portal
91
+
## Migrate using the Azure portal
92
92
93
-
You can also convert unmanaged disks to managed disks using the Azure portal.
93
+
You can also migrate unmanaged disks to managed disks using the Azure portal.
94
94
95
95
1. Sign in to the [Azure portal](https://portal.azure.com).
96
-
2. Select the VM from the list of VMs in the portal.
97
-
3. In the blade for the VM, select **Disks** from the menu.
98
-
4. At the top of the **Disks** blade, select **Migrate to managed disks**.
99
-
5. If your VM is in an availability set, there will be a warning on the **Migrate to managed disks** blade that you need to convert the availability set first. The warning should have a link you can click to convert the availability set. Once the availability set is converted or if your VM is not in an availability set, click **Migrate** to start the process of migrating your disks to managed disks.
96
+
1. Select the VM from the list of VMs in the portal.
97
+
1. In the blade for the VM, select **Disks** from the menu.
98
+
1. At the top of the **Disks** blade, select **Migrate to managed disks**.
99
+
1. If your VM is in an availability set, there will be a warning on the **Migrate to managed disks** blade that you need to migrate the availability set first. The warning should have a link you can click to migrate the availability set. Once the availability set is converted or if your VM is not in an availability set, click **Migrate** to start the process of migrating your disks to managed disks.
100
100
101
101
The VM will be stopped and restarted after migration is complete.
Copy file name to clipboardExpand all lines: articles/virtual-machines/windows/convert-unmanaged-to-managed-disks.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Convert a Windows virtual machine from unmanaged disks to managed disks
3
-
description: How to convert a Windows VM from unmanaged disks to managed disks by using PowerShell in the Resource Manager deployment model
2
+
title: Migrate a Windows virtual machine from unmanaged disks to managed disks
3
+
description: How to migrate a Windows VM from unmanaged disks to managed disks by using PowerShell in the Resource Manager deployment model
4
4
author: roygara
5
5
ms.service: storage
6
6
ms.subservice: disks
@@ -9,11 +9,11 @@ ms.date: 07/12/2018
9
9
ms.author: rogarana
10
10
---
11
11
12
-
# Convert a Windows virtual machine from unmanaged disks to managed disks
12
+
# Migrate a Windows virtual machine from unmanaged disks to managed disks
13
13
14
14
**Applies to:**:heavy_check_mark: Windows VMs
15
15
16
-
If you have existing Windows virtual machines (VMs) that use unmanaged disks, you can convert the VMs to use managed disks through the [Azure Managed Disks](../managed-disks-overview.md) service. This process converts both the operating system (OS) disk and any attached data disks.
16
+
If you have existing Windows virtual machines (VMs) that use unmanaged disks, you can migrate the VMs to use managed disks through the [Azure Managed Disks](../managed-disks-overview.md) service. This process converts both the operating system (OS) disk and any attached data disks.
17
17
18
18
19
19
## Before you begin
@@ -25,11 +25,11 @@ If you have existing Windows virtual machines (VMs) that use unmanaged disks, yo
* The original VHDs and the storage account used by the VM before conversion are not deleted. They continue to incur charges. To avoid being billed for these artifacts, delete the original VHD blobs after you verify that the conversion is complete. If you need to find these unattached disks in order to delete them, see our article [Find and delete unattached Azure managed and unmanaged disks](find-unattached-disks.md).
28
+
* The original VHDs and the storage account used by the VM before migration are not deleted. They continue to incur charges. To avoid being billed for these artifacts, delete the original VHD blobs after you verify that the migration is complete. If you need to find these unattached disks in order to delete them, see our article [Find and delete unattached Azure managed and unmanaged disks](find-unattached-disks.md).
29
29
30
30
31
-
## Convert single-instance VMs
32
-
This section covers how to convert single-instance Azure VMs from unmanaged disks to managed disks. (If your VMs are in an availability set, see the next section.)
31
+
## Migrate single-instance VMs
32
+
This section covers how to migrate single-instance Azure VMs from unmanaged disks to managed disks. (If your VMs are in an availability set, see the next section.)
33
33
34
34
1. Deallocate the VM by using the [Stop-AzVM](/powershell/module/az.compute/stop-azvm) cmdlet. The following example deallocates the VM named `myVM` in the resource group named `myResourceGroup`:
35
35
@@ -39,19 +39,19 @@ This section covers how to convert single-instance Azure VMs from unmanaged disk
2.Convert the VM to managed disks by using the [ConvertTo-AzVMManagedDisk](/powershell/module/az.compute/convertto-azvmmanageddisk) cmdlet. The following process converts the previous VM, including the OS disk and any data disks, and starts the Virtual Machine:
42
+
2.Migrate the VM to managed disks by using the [ConvertTo-AzVMManagedDisk](/powershell/module/az.compute/convertto-azvmmanageddisk) cmdlet. The following process converts the previous VM, including the OS disk and any data disks, and starts the Virtual Machine:
If the VMs that you want to convert to managed disks are in an availability set, you first need to convert the availability set to a managed availability set.
52
+
If the VMs that you want to migrate to managed disks are in an availability set, you first need to migrate the availability set to a managed availability set.
53
53
54
-
1.Convert the availability set by using the [Update-AzAvailabilitySet](/powershell/module/az.compute/update-azavailabilityset) cmdlet. The following example updates the availability set named `myAvailabilitySet` in the resource group named `myResourceGroup`:
54
+
1.Migrate the availability set by using the [Update-AzAvailabilitySet](/powershell/module/az.compute/update-azavailabilityset) cmdlet. The following example updates the availability set named `myAvailabilitySet` in the resource group named `myResourceGroup`:
55
55
56
56
```azurepowershell-interactive
57
57
$rgName = 'myResourceGroup'
@@ -68,7 +68,7 @@ If the VMs that you want to convert to managed disks are in an availability set,
2. Deallocate and convert the VMs in the availability set. The following script deallocates each VM by using the [Stop-AzVM](/powershell/module/az.compute/stop-azvm) cmdlet, converts it by using [ConvertTo-AzVMManagedDisk](/powershell/module/az.compute/convertto-azvmmanageddisk), and restarts it automatically as apart of the conversion process:
71
+
2. Deallocate and migrate the VMs in the availability set. The following script deallocates each VM by using the [Stop-AzVM](/powershell/module/az.compute/stop-azvm) cmdlet, converts it by using [ConvertTo-AzVMManagedDisk](/powershell/module/az.compute/convertto-azvmmanageddisk), and restarts it automatically as apart of the migration process:
@@ -84,21 +84,21 @@ If the VMs that you want to convert to managed disks are in an availability set,
84
84
85
85
## Troubleshooting
86
86
87
-
- Before converting, make sure all the VM extensions are in the 'Provisioning succeeded' state or the conversion will fail with the error code 409.
88
-
- If there is an error during conversion, or if a VM is in a failed state because of issues in a previous conversion, run the `ConvertTo-AzVMManagedDisk` cmdlet again. A simple retry usually unblocks the situation.
89
-
- If you are converting a Linux VM to managed disks, use the latest version of the Azure Linux Agent. Operations using Azure Linux Agent versions '2.2.0' and earlier will likely fail. Running the conversion on a generalized VM or a VM that belongs to a classic availability set is also not supported.
90
-
- If the conversion fails with the "SnapshotCountExceeded" error, delete some snapshots and attempt the operation again.
87
+
- Before converting, make sure all the VM extensions are in the 'Provisioning succeeded' state or the migration will fail with the error code 409.
88
+
- If there is an error during migration, or if a VM is in a failed state because of issues in a previous migration, run the `ConvertTo-AzVMManagedDisk` cmdlet again. A simple retry usually unblocks the situation.
89
+
- If you are converting a Linux VM to managed disks, use the latest version of the Azure Linux Agent. Operations using Azure Linux Agent versions '2.2.0' and earlier will likely fail. Running the migration on a generalized VM or a VM that belongs to a classic availability set is also not supported.
90
+
- If the migration fails with the "SnapshotCountExceeded" error, delete some snapshots and attempt the operation again.
91
91
92
92
93
-
## Convert using the Azure portal
93
+
## Migrate using the Azure portal
94
94
95
-
You can also convert unmanaged disks to managed disks using the Azure portal.
95
+
You can also migrate unmanaged disks to managed disks using the Azure portal.
96
96
97
97
1. Sign in to the [Azure portal](https://portal.azure.com).
98
98
2. Select the VM from the list of VMs in the portal.
99
99
3. In the blade for the VM, select **Disks** from the menu.
100
100
4. At the top of the **Disks** blade, select **Migrate to managed disks**.
101
-
5. If your VM is in an availability set, there will be a warning on the **Migrate to managed disks** blade that you need to convert the availability set first. The warning should have a link you can click to convert the availability set. Once the availability set is converted or if your VM is not in an availability set, click **Migrate** to start the process of migrating your disks to managed disks.
101
+
5. If your VM is in an availability set, there will be a warning on the **Migrate to managed disks** blade that you need to migrate the availability set first. The warning should have a link you can click to migrate the availability set. Once the availability set is converted or if your VM is not in an availability set, click **Migrate** to start the process of migrating your disks to managed disks.
102
102
103
103
The VM will be stopped and restarted after migration is complete.
0 commit comments