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/disks-convert-types.md
+32-5Lines changed: 32 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,9 @@ The preview allowing direct switching to Premium SSD v2 disks has some additiona
36
36
- Existing disks can only be directly switched to 512 sector size Premium SSD v2 disks.
37
37
- You can only perform 40 conversions at the same time per subscription per region.
38
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 before changing to Premium SSD v2.
40
-
- If your existing disk is using bursting, you must disable it 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 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
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
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
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.
@@ -57,6 +57,33 @@ This preview is currently only available in the following regions:
57
57
- Central India
58
58
- France Central
59
59
60
+
### Disable host caching
61
+
62
+
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 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
+
You can use the following command to change your disk from double encryption to encryption at rest with customer-managed keys:
## Switch all managed disks of a VM from one account to another
61
88
62
89
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:
0 commit comments