Skip to content

Commit e593aca

Browse files
superfliegeroygara
andauthored
Update articles/virtual-machines/disks-enable-performance.md
Co-authored-by: rogara <[email protected]>
1 parent fc8b163 commit e593aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Set-AzContext -SubscriptionName <<yourSubscriptionName>>
106106
$diskConfig = New-AzDiskConfig -Location $region -CreateOption Copy -DiskSizeGB $size -SkuName $sku -PerformancePlus $true -SourceResourceID $sourceURI
107107
108108
$dataDisk = New-AzDisk -ResourceGroupName $myRG -DiskName $myDisk -Disk $diskconfig
109-
Add-AzVMDataDisk -VMName $myVM -ResourceGroupName $myRG -DiskName $myDisk -Lun $lun -CreateOption Attach -ManagedDiskId $dataDisk.Id
109+
Add-AzVMDataDisk -VMName $myVM -ResourceGroupName $myRG -DiskName $myDisk -Lun $lun -CreateOption Empty -ManagedDiskId $dataDisk.Id
110110
```
111111
---
112112

0 commit comments

Comments
 (0)