Skip to content

Commit e93fb08

Browse files
(Azure CXP) resolves MicrosoftDocs/azure-docs#53549
Changed code snippet as the code is querying 'uniqueID' where we want the 'diskSizeBytes'.
1 parent 53d215f commit e93fb08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/virtual-machines/linux/disks-upload-vhd-to-managed-disk-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ targetDiskName = <targetDiskNameHere>
103103
targetRG = <targetResourceGroupHere>
104104
targetLocale = <yourTargetLocationHere>
105105
106-
sourceDiskSizeBytes= $(az disk show -g $sourceRG -n $sourceDiskName --query '[uniqueId]' -o tsv)
106+
sourceDiskSizeBytes= $(az disk show -g $sourceRG -n $sourceDiskName --query '[diskSizeBytes]' -o tsv)
107107
108108
az disk create -g $targetRG -n $targetDiskName -l $targetLocale --for-upload --upload-size-bytes $(($sourceDiskSizeBytes+512)) --sku standard_lrs
109109

0 commit comments

Comments
 (0)