We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79c4bd9 commit fc8b163Copy full SHA for fc8b163
articles/virtual-machines/disks-enable-performance.md
@@ -85,7 +85,7 @@ $diskConfig = New-AzDiskConfig -Location $region -CreateOption Empty -DiskSizeGB
85
86
$dataDisk = New-AzDisk -ResourceGroupName $myRG -DiskName $myDisk -Disk $diskConfig
87
88
-Add-AzVMDataDisk -VMName $myVM -ResourceGroupName $myRG -DiskName $myDisk -Lun $lun -CreateOption Attach -ManagedDiskId $dataDisk.Id
+Add-AzVMDataDisk -VMName $myVM -ResourceGroupName $myRG -DiskName $myDisk -Lun $lun -CreateOption Empty -ManagedDiskId $dataDisk.Id
89
```
90
91
To migrate data from an existing disk or snapshot to a new disk with performance plus enabled, use the following script:
0 commit comments