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 53d215f commit e93fb08Copy full SHA for e93fb08
articles/virtual-machines/linux/disks-upload-vhd-to-managed-disk-cli.md
@@ -103,7 +103,7 @@ targetDiskName = <targetDiskNameHere>
103
targetRG = <targetResourceGroupHere>
104
targetLocale = <yourTargetLocationHere>
105
106
-sourceDiskSizeBytes= $(az disk show -g $sourceRG -n $sourceDiskName --query '[uniqueId]' -o tsv)
+sourceDiskSizeBytes= $(az disk show -g $sourceRG -n $sourceDiskName --query '[diskSizeBytes]' -o tsv)
107
108
az disk create -g $targetRG -n $targetDiskName -l $targetLocale --for-upload --upload-size-bytes $(($sourceDiskSizeBytes+512)) --sku standard_lrs
109
0 commit comments