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
@@ -21,12 +21,12 @@ Premium SSD v2 support a 4k physical sector size by default, but can be configur
21
21
22
22
## Determine region availability programmatically
23
23
24
-
To use a Premium SSD v2, you need to determine the regions and zones where it's supported. Not every region and zones support Premium SSD v2. For a list of regions, see [Regional availability](#regional-availability).
25
-
26
-
To determine regions, and zones support premium SSD v2, replace `yourSubscriptionId` then run the following command:
24
+
Since not every region and zone supports Premium SSD v2, you can use the Azure CLI or PowerShell to determine region and zone supportability. For a list of supported regions, see [Regional availability](#regional-availability).
27
25
28
26
# [Azure CLI](#tab/azure-cli)
29
27
28
+
To determine the regions and zones that support Premium SSD v2, replace `yourSubscriptionId` with your subscription, and then run the [az vm list-skus](/cli/azure/vm#az-vm-list-skus) command:
29
+
30
30
```azurecli
31
31
az login
32
32
@@ -39,6 +39,8 @@ az vm list-skus --resource-type disks --query "[?name=='PremiumV2_LRS'].{Region:
39
39
40
40
# [PowerShell](#tab/azure-powershell)
41
41
42
+
To determine the regions and zones that support Premium SSD v2, replace `yourSubscriptionId` with your subscription, and then run the [Get-AzComputeResourceSku](/powershell/module/az.compute/get-azcomputeresourcesku) command:
To programmatically determine the regions and zones you can deploy to, use either the Azure CLI or Azure PowerShell Module.
56
+
To programmatically determine the regions and zones you can deploy to, use either the Azure CLI, Azure PowerShell Modul.
55
57
56
58
---
57
59
@@ -61,7 +63,9 @@ Now that you know the region and zone to deploy to, follow the deployment steps
61
63
62
64
# [Azure CLI](#tab/azure-cli)
63
65
64
-
Create a Premium SSD v2 disk in an availability zone. Then create a VM in the same region and availability zone that supports Premium Storage and attach the disk to it. The following script creates a Premium SSD v2 with a 4k sector size, to deploy one with a 512 sector size, update the `$logicalSectorSize` parameter. Replace the values of all the variables with your own, then run the following script:
66
+
Create a Premium SSD v2 disk in an availability zone by using the [az disk create](/cli/azure/disk#az-disk-create) command. Then create a VM in the same region and availability zone that supports Premium Storage and attach the disk to it by using the [az vm create](/cli/azure/vm#az-vm-create) command.
67
+
68
+
The following script creates a Premium SSD v2 with a 4k sector size, to deploy one with a 512 sector size, update the `$logicalSectorSize` parameter. Replace the values of all the variables with your own, then run the following script:
65
69
66
70
```azurecli-interactive
67
71
## Initialize variables
@@ -99,7 +103,9 @@ az vm create -n $vmName -g $resourceGroupName \
99
103
100
104
# [PowerShell](#tab/azure-powershell)
101
105
102
-
Create a Premium SSD v2 disk in an availability zone. Then create a VM in the same region and availability zone that supports Premium Storage and attach the disk to it. The following script creates a Premium SSD v2 with a 4k sector size, to deploy one with a 512 sector size, update the `$logicalSectorSize` parameter. Replace the values of all the variables with your own, then run the following script:
106
+
Create a Premium SSD v2 disk in an availability zone by using the [New-AzDiskConfig](/powershell/module/az.compute/new-azdiskconfig) to define the configuration of your disk and the [New-AzDisk](/powershell/module/az.compute/new-azdisk) command to create your disk. Next, create a VM in the same region and availability zone that supports Premium Storage by using the [az vm create](/cli/azure/vm#az-vm-create). Finally, attach the disk to it by using the [Get-AzVM](/powershell/module/az.compute/get-azvm) command to identify variables for the virtual machine, the [Get-AzDisk](/powershell/module/az.compute/get-azdisk) command to identify variables for the disk, the [Add-AzVMDataDisk](/powershell/module/az.compute/add-azvmdatadisk) command to add the disk, and the [Update-AzVM](/powershell/module/az.compute/update-azvm) command to attach the new disk to the virtual machine.
107
+
108
+
The following script creates a Premium SSD v2 with a 4k sector size, to deploy one with a 512 sector size, update the `$logicalSectorSize` parameter. Replace the values of all the variables with your own, then run the following script:
103
109
104
110
```powershell
105
111
# Initialize variables
@@ -184,28 +190,34 @@ You've now deployed a VM with a premium SSD v2.
184
190
185
191
## Adjust disk performance
186
192
187
-
Unlike other managed disks, the performance of a Premium SSD v2 can be configured independently of its size. For conceptual information on this, see [Premium SSD v2 performance](disks-types.md#premium-ssd-v2-performance).
193
+
Unlike other managed disks, the performance of a Premium SSD v2 can be configured independently of its size by using the Azure CLI and PowerShell. Making adjustments to disk performance by using the Azure portal is not currently supported.
194
+
195
+
For conceptual information on adjusting disk performance, see [Premium SSD v2 performance](disks-types.md#premium-ssd-v2-performance).
188
196
189
197
# [Azure CLI](#tab/azure-cli)
190
198
191
-
The following command changes the performance of your disk, update the values as you like, then run the command:
199
+
Use the [az disk update](/cli/azure/disk#az-disk-update) command to change the performance configuration of your Premium SSD v2 disk. For example, you can use the `disk-iops-read-write` parameter to adjust the max IOPS limit, and the `disk-mbps-read-write` parameter to adjust the max throughput limit of your Premium SSD v2 disk.
200
+
201
+
Update the values to suit your business need, and then run the following command to adjust the performance of your disk:
192
202
193
203
```azurecli
194
204
az disk update --subscription $subscription --resource-group $rgname --name $diskName --disk-iops-read-write=5000 --disk-mbps-read-write=200
195
205
```
196
206
197
207
# [PowerShell](#tab/azure-powershell)
198
208
199
-
The following command changes the performance of your disk, update the values as you like, then run the command:
209
+
Use the [New-AzDiskUpdateConfig](/powershell/module/az.compute/new-azdiskupdateconfig) command to define your new performance configuration values for your Premium SSD v2 disks, and then use the [Update-AzDisk](/powershell/module/az.compute/update-azdisk) command to apply your configuration changes to your disk. For example, you can use the `DiskIOPSReadWrite` parameter to adjust the max IOPS limit, and the `DiskMBpsReadWrite` parameter to adjust the max throughput limit of your Premium SSD v2 disk.
210
+
211
+
Update the values to suit your business need, and then run the following command to adjust the performance of your disk:
Currently, adjusting disk performance is only supported with Azure CLI or the Azure PowerShell module.
220
+
Currently, adjusting disk performance is only supported with the Azure CLI or Azure PowerShell module.
209
221
210
222
---
211
223
@@ -219,6 +231,6 @@ Currently, adjusting disk performance is only supported with Azure CLI or the Az
219
231
220
232
## Next steps
221
233
222
-
Add a data disk using either the [Azure portal](linux/attach-disk-portal.md), [CLI](linux/add-disk.md), or [PowerShell](windows/attach-disk-ps.md).
234
+
Add a data disk by using either the [Azure portal](linux/attach-disk-portal.md), [Azure CLI](linux/add-disk.md), or [PowerShell](windows/attach-disk-ps.md).
223
235
224
236
Provide feedback on [Premium SSD v2](https://aka.ms/premium-ssd-v2-survey).
0 commit comments