Skip to content

Commit

Permalink
Update New-AzGalleryApplicationVersion.md (#19858)
Browse files Browse the repository at this point in the history
Tested and the $SASUri is without "?" +
It should be "$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + $SASToken"
With the "? I get an invalid SASUri
  • Loading branch information
JohanVanneuville committed Oct 20, 2022
1 parent 3ab4313 commit d9f039d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $SASToken = New-AzStorageBlobSASToken -Context $ctx -Container $containerName -b
$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + $SASToken
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"
```

Expand Down

0 comments on commit d9f039d

Please sign in to comment.