Skip to content

Commit 2f45442

Browse files
committed
Modifying script.
1 parent fe99eb6 commit 2f45442

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Once enabled, the IOPS and throughput limits for an eligible disk increase to th
2525

2626
## Prerequisites
2727

28-
Either use the Azure Cloud Shell to run your commands or install the latest [Azure PowerShell module](/powershell/azure/install-az-ps) or [Azure CLI](/cli/azure/install-azure-cli) locally.
28+
Either use the Azure Cloud Shell to run your commands or install a version of the [Azure PowerShell module](/powershell/azure/install-az-ps) 9.5 or newer, or the latest [Azure CLI](/cli/azure/install-azure-cli) locally.
2929

3030

3131
## Enable performance plus
@@ -94,10 +94,11 @@ $region=desiredRegion
9494
$sku=desiredSKU
9595
#Size must be 1024 or larger
9696
$size=1024
97+
$sourceURI=diskOrSnapshotURI
9798
9899
Set-AzContext -SubscriptionName <<yourSubscriptionName>>
99100
100-
$diskConfig = New-AzDiskConfig -Location $region -CreateOption Empty -DiskSizeGB $size -SkuName $sku -PerfromancePlus $true
101+
$diskConfig = New-AzDiskConfig -Location $region -CreateOption Copy -DiskSizeGB $size -SkuName $sku -PerfromancePlus $true -SourceResourceID $sourceURI
101102
102103
$dataDisk = New-AzDisk -ResourceGroupName $myRG -DiskName $myDisk
103104
```

0 commit comments

Comments
 (0)