Skip to content

Commit 20906c4

Browse files
authored
Merge pull request #280436 from roygara/pv2ConvPrev
Premium SSD v2 conversion preview
2 parents e65dcd5 + 72a3370 commit 20906c4

File tree

3 files changed

+85
-8
lines changed

3 files changed

+85
-8
lines changed

articles/virtual-machines/disks-convert-types.md

Lines changed: 72 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ title: Convert managed disks storage between different disk types
33
description: How to convert Azure managed disks between the different disks types by using Azure PowerShell, Azure CLI, or the Azure portal.
44
author: roygara
55
ms.service: azure-disk-storage
6-
ms.custom: devx-track-azurecli, devx-track-azurepowershell
6+
ms.custom: devx-track-azurecli, devx-track-azurepowershell, references_regions
77
ms.topic: how-to
8-
ms.date: 04/15/2024
8+
ms.date: 07/25/2024
99
ms.author: rogarana
1010
---
1111

12-
# Change the disk type of an Azure managed disk
12+
# Convert the disk type of an Azure managed disk
1313

1414
**Applies to:** :heavy_check_mark: Linux VMs :heavy_check_mark: Windows
1515

16-
There are five disk types of Azure managed disks: Azure Ultra Disks, Premium SSD v2, premium SSD, Standard SSD, and Standard HDD. You can easily switch between Premium SSD, Standard SSD, and Standard HDD based on your performance needs. Premium SSD and Standard SSD are also available with [Zone-redundant storage](disks-redundancy.md#zone-redundant-storage-for-managed-disks). You can't yet switch from or to an Ultra Disk or a Premium SSD v2, you must deploy a new one with a snapshot of an existing disk. See [Migrate to Premium SSD v2 or Ultra Disk](#migrate-to-premium-ssd-v2-or-ultra-disk) for details.
16+
There are five disk types of Azure managed disks: Azure Ultra Disks, Premium SSD v2, premium SSD, Standard SSD, and Standard HDD. You can easily switch between Premium SSD, Standard SSD, and Standard HDD based on your performance needs. Premium SSD and Standard SSD are also available with [Zone-redundant storage](disks-redundancy.md#zone-redundant-storage-for-managed-disks). For most cases, you can't yet switch from or to an Ultra Disk or a Premium SSD v2, you must deploy a new one with a snapshot of an existing disk. However, you can sign up for a preview and then you can switch from existing disks to a Premium SSD v2. See [Migrate to Premium SSD v2 or Ultra Disk using snapshots](#migrate-to-premium-ssd-v2-or-ultra-disk-using-snapshots) for details.
1717

1818
This functionality isn't supported for unmanaged disks. But you can easily convert an unmanaged disk to a managed disk with [CLI](linux/convert-unmanaged-to-managed-disks.md) or [PowerShell](windows/convert-unmanaged-to-managed-disks.md) to be able to switch between disk types.
1919

@@ -27,6 +27,63 @@ Because conversion requires a restart of the virtual machine (VM), schedule the
2727
- You can only change disk type twice per day.
2828
- You can only change the disk type of managed disks. If your disk is unmanaged, convert it to a managed disk with [CLI](linux/convert-unmanaged-to-managed-disks.md) or [PowerShell](windows/convert-unmanaged-to-managed-disks.md) to switch between disk types.
2929

30+
## Convert Premium SSD v2 disks (preview)
31+
As a public preview, you can switch existing disks to Premium SSD v2 disks the same way you do for other disk types. Use [this survey](https://aka.ms/SeamlessMigrationCustomerSurvey) to sign up for the preview. Premium SSD v2 disks have some limitations, see the [Premium SSD v2 limitations](disks-deploy-premium-v2.md#limitations) section of their article to learn more.
32+
33+
The preview allowing direct switching to Premium SSD v2 disks has some additional limitations and regional restrictions:
34+
35+
- You can't switch an OS disk to a Premium SSD v2 disk.
36+
- Existing disks can only be directly switched to 512 sector size Premium SSD v2 disks.
37+
- You can only perform 40 conversions at the same time per subscription per region.
38+
- If your existing disk is a shared disk, you must detach all VMs before changing to Premium SSD v2.
39+
- If your existing disk is using host caching, you must [set it to none](#disable-host-caching) before changing to Premium SSD v2.
40+
- If your existing disk is using bursting, you must [disable it](#disable-bursting) before changing to Premium SSD v2.
41+
- If your existing disk is using double encryption, you must [switch to one of the single encryption options](#disable-double-encryption) before changing to Premium SSD v2.
42+
- You can't directly switch from a Premium SSD v2 to another disk type. If you want to change a Premium SSD v2 to another disk type, you must migrate using [snapshots](#migrate-to-premium-ssd-v2-or-ultra-disk-using-snapshots).
43+
- You can't directly switch from Ultra Disks to Premium SSD v2 disks, you must migrate using [snapshots](#migrate-to-premium-ssd-v2-or-ultra-disk-using-snapshots).
44+
- If you're using the rest API, you must use an API version `2020-12-01` or newer for both the Compute Resource Provider and the Disk Resource Provider.
45+
46+
This preview is currently only available in the following regions:
47+
48+
- Central US
49+
- East US
50+
- East US 2
51+
- US West
52+
- West Europe
53+
- North Europe
54+
- West US 2
55+
- East Asia
56+
- Southeast Asia
57+
- Central India
58+
- France Central
59+
60+
### Disable host caching
61+
62+
If your disk is using host caching, you must disable it before converting to Premium SSD v2. You can use the following CLI script to identify your disk's LUN and disable host caching. Replace `yourResourceGroup` and `nameOfYourVM` with your own values, then run the script.
63+
64+
```azurecli
65+
$myRG="yourResourceGroup"
66+
$myVM="nameOfYourVM"
67+
68+
lun=$(az vm show -g $myRG -n $myVM --query "storageProfile.dataDisks[].lun")
69+
70+
az vm update --resource-group $myRG --name $myVM --disk-caching $lun=None
71+
```
72+
73+
### Disable bursting
74+
75+
If your disk is using bursting, you must disable it before converting to Premium SSD v2. If you enabled bursting within 12 hours, you have to wait until the 13th hour or later to disable it.
76+
77+
You can use the following command to disable disk bursting: `az disk update --name "yourDiskNameHere" --resource-group "yourRGNameHere" --enable-bursting false`
78+
79+
### Disable double encryption
80+
81+
If your disk is using double encryption, you must disable it before converting to Premium SSD v2. You can use the following command to change your disk from double encryption to encryption at rest with customer-managed keys:
82+
83+
```azurecli
84+
az disk-encryption-set update --name "nameOfYourDiskEncryptionSetHere" --resource-group "yourRGNameHere" --key-url yourKeyURL --source-vault "yourKeyVaultName" --encryption-type EncryptionAtRestWithCustomerKey
85+
```
86+
3087
## Switch all managed disks of a VM from one account to another
3188

3289
This example shows how to convert all of a VM's disks to premium storage. However, by changing the $storageType variable in this example, you can convert the VM's disks type to standard SSD or standard HDD. To use Premium managed disks, your VM must use a [VM size](sizes.md) that supports Premium storage. This example also switches to a size that supports premium storage:
@@ -78,7 +135,7 @@ Start-AzVM -ResourceGroupName $rgName -Name $vmName
78135
```azurecli
79136
80137
#resource group that contains the virtual machine
81-
$rgName='yourResourceGroup'
138+
rgName='yourResourceGroup'
82139
83140
#Name of the virtual machine
84141
vmName='yourVM'
@@ -119,6 +176,8 @@ For your dev/test workload, you might want a mix of Standard and Premium disks t
119176

120177
# [Azure PowerShell](#tab/azure-powershell)
121178

179+
[!INCLUDE [managed-disk-premium-ssd-v2-conversion-preview](../../includes/managed-disk-premium-ssd-v2-conversion-preview.md)]
180+
122181
```azurepowershell-interactive
123182
124183
$diskName = 'yourDiskName'
@@ -153,10 +212,12 @@ Start-AzVM -ResourceGroupName $vm.ResourceGroupName -Name $vm.Name
153212

154213
# [Azure CLI](#tab/azure-cli)
155214

215+
[!INCLUDE [managed-disk-premium-ssd-v2-conversion-preview](../../includes/managed-disk-premium-ssd-v2-conversion-preview.md)]
216+
156217
```azurecli
157218
158219
#resource group that contains the managed disk
159-
$rgName='yourResourceGroup'
220+
rgName='yourResourceGroup'
160221
161222
#Name of your managed disk
162223
diskName='yourManagedDiskName'
@@ -186,6 +247,8 @@ az vm start --ids $vmId
186247

187248
# [Portal](#tab/azure-portal)
188249

250+
[!INCLUDE [managed-disk-premium-ssd-v2-conversion-preview](../../includes/managed-disk-premium-ssd-v2-conversion-preview.md)]
251+
189252
Follow these steps:
190253

191254
1. Sign in to the [Azure portal](https://portal.azure.com).
@@ -201,7 +264,9 @@ The disk type conversion is instantaneous. You can start your VM after the conve
201264

202265
---
203266

204-
## Migrate to Premium SSD v2 or Ultra Disk
267+
## Migrate to Premium SSD v2 or Ultra Disk using snapshots
268+
269+
[!INCLUDE [managed-disk-premium-ssd-v2-conversion-preview](../../includes/managed-disk-premium-ssd-v2-conversion-preview.md)]
205270

206271
Currently, you can only migrate an existing disk to either a Premium SSD v2 or an Ultra Disk through snapshots stored on Standard Storage (Incremental Standard HDD Snapshot). Migration with snapshots stored on Premium storage and other options isn't supported. Migration via snapshot from Premium SSD v2 or Ultra Disk to Premium SSD v1, Standard SSD and Standard HDD is not supported.
207272

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: include file
3+
description: include file
4+
author: roygara
5+
ms.service: azure-disk-storage
6+
ms.topic: include
7+
ms.date: 07/24/2024
8+
ms.author: rogarana
9+
ms.custom: include file
10+
---
11+
> [!NOTE]
12+
> As a public preview, you can change the type of an existing disk to a Premium SSD v2 disk the same way you'd for other disk types. To sign up for the preview see [Premium SSD v2 migration (preview)](#convert-premium-ssd-v2-disks-preview).

includes/managed-disks-ultra-disks-GA-scope-and-limitations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The following list contains Ultra Disk's limitations:
1515
- Currently, Ultra Disks only support Single VM and Availability zone infrastructure options.
1616
- Ultra Disks don't support availability sets.
1717
- The size of an Ultra Disk can't be expanded without either deallocating the VM or detaching the Ultra Disk.
18-
- Existing disks currently can't change their type to an Ultra Disk. They must be [migrated](../articles/virtual-machines/disks-convert-types.md#migrate-to-premium-ssd-v2-or-ultra-disk).
18+
- Existing disks currently can't change their type to an Ultra Disk. They must be [migrated](../articles/virtual-machines/disks-convert-types.md#migrate-to-premium-ssd-v2-or-ultra-disk-using-snapshots).
1919
- Currently, Azure Government and Azure China don't support [customer-managed keys](../articles/virtual-machines/disk-encryption.md#customer-managed-keys) for Ultra disks.
2020
- Azure Disk Encryption isn't supported for VMs with Ultra Disks. Instead, you should use encryption at rest with platform-managed or customer-managed keys.
2121
- Azure Site Recovery isn't supported for VMs with Ultra Disks.

0 commit comments

Comments
 (0)