Skip to content

Commit fb3e0fe

Browse files
committed
Fixing scripts.
1 parent 22dfaaf commit fb3e0fe

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

articles/virtual-machines/disks-enable-performance.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ myVM=yourVMName
4141
region=desiredRegion
4242
# Valid values are Premium_LRS, Premium_ZRS, StandardSSD_LRS, StandardSSD_ZRS, or Standard_LRS
4343
sku=desiredSKU
44-
45-
az disk create -g $myRG -n $myDisk --size-gb 1024 --sku $sku -l $region –performance-plus true
44+
#Size must be 513 or larger
45+
size=513
46+
az disk create -g $myRG -n $myDisk --size-gb $size --sku $sku -l $region –performance-plus true
4647
4748
az vm disk attach --vm-name $myVM --name $myDisk --resource-group $myRG
4849
```
@@ -56,8 +57,8 @@ myVM=yourVMName
5657
region=desiredRegion
5758
# Valid values are Premium_LRS, Premium_ZRS, StandardSSD_LRS, StandardSSD_ZRS, or Standard_LRS
5859
sku=desiredSKU
59-
#Size must be 1024 or larger
60-
size=1024
60+
#Size must be 513 or larger
61+
size=513
6162
sourceURI=yourDiskOrSnapshotURI
6263
6364
az disk create --name $myDisk --resource-group $myRG --size-gb $size -- --performance-plus true --sku $sku --source $sourceURI --location $region
@@ -74,8 +75,8 @@ $myVM=yourVMName
7475
$region=desiredRegion
7576
# Valid values are Premium_LRS, Premium_ZRS, StandardSSD_LRS, StandardSSD_ZRS, or Standard_LRS
7677
$sku=desiredSKU
77-
#Size must be 1024 or larger
78-
$size=1024
78+
#Size must be 513 or larger
79+
$size=513
7980
8081
Set-AzContext -SubscriptionName <yourSubscriptionName>
8182
@@ -92,8 +93,8 @@ $myVM=yourVMName
9293
$region=desiredRegion
9394
# Valid values are Premium_LRS, Premium_ZRS, StandardSSD_LRS, StandardSSD_ZRS, or Standard_LRS
9495
$sku=desiredSKU
95-
#Size must be 1024 or larger
96-
$size=1024
96+
#Size must be 513 or larger
97+
$size=513
9798
$sourceURI=diskOrSnapshotURI
9899
99100
Set-AzContext -SubscriptionName <<yourSubscriptionName>>

0 commit comments

Comments
 (0)