Skip to content

Commit 63d9d7e

Browse files
committed
Fixing script.
1 parent 8558c9a commit 63d9d7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to upload a VHD to an Azure managed disk and copy a manag
44
services: "virtual-machines,storage"
55
author: roygara
66
ms.author: rogarana
7-
ms.date: 01/03/2023
7+
ms.date: 08/16/2023
88
ms.topic: how-to
99
ms.service: azure-disk-storage
1010
ms.custom: devx-track-azurecli
@@ -156,7 +156,7 @@ sourceDiskSizeBytes=$(az disk show -g $sourceRG -n $sourceDiskName --query '[dis
156156
157157
az disk create -g $targetRG -n $targetDiskName -l $targetLocation --os-type $targetOS --for-upload --upload-size-bytes $(($sourceDiskSizeBytes+512)) --sku standard_lrs
158158
159-
targetSASURI=$(az disk grant-access -n $targetDiskName -g $targetRG --access-level Write --duration-in-seconds 86400 -o tsv)
159+
targetSASURI=$(az disk grant-access -n $targetDiskName -g $targetRG --access-level Write --duration-in-seconds 86400 --query [accessSas] -o tsv)
160160
161161
sourceSASURI=$(az disk grant-access -n $sourceDiskName -g $sourceRG --duration-in-seconds 86400 --query [accessSas] -o tsv)
162162

0 commit comments

Comments
 (0)