Skip to content

Commit d9f039d

Browse files
Update New-AzGalleryApplicationVersion.md (Azure#19858)
Tested and the $SASUri is without "?" + It should be "$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + $SASToken" With the "? I get an invalid SASUri
1 parent 3ab4313 commit d9f039d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compute/Compute/help/New-AzGalleryApplicationVersion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $SASToken = New-AzStorageBlobSASToken -Context $ctx -Container $containerName -b
3333
$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
3434
$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
3535
$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
36-
$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
36+
$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + $SASToken
3737
New-AzGalleryApplicationVersion -ResourceGroupName $rgname -Location EastUS -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -Install "powershell -command 'Expand-Archive -Path package.zip -DestinationPath C:\\package\'" -Remove "del C:\\package"
3838
```
3939

0 commit comments

Comments
 (0)