Azure / Azure/azure-rest-api-specs

az sig gallery-application doesn't accept sas uris when creating from az cli

Open
#21,212 0 comments 0 reactions 0 assignees View on GitHub
AAD Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
6k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

**az sig gallery-application version create** fails with the following error when I try to provide a SAS URI. However, the same works when using Azure portal to create a new version (easy to verify when you create from the portal and use the browse option for "Source application package")

- ERROR: (InvalidParameter) Source uri: '"https://.blob.core.windows.net//?sp=r&sv=2021-06-08&sr=b&sig=***************************************"' must be an absolute uri.
- Code: InvalidParameter
- Message: Source uri: '"https://.blob.core.windows.net//?sp=r&sv=2021-06-08&sr=b&sig=***************************************" must be an absolute uri.
- Target: galleryApplicationVersion.properties.publishingProfile.source.mediaLink

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the az sig gallery-application version create request with the SAS URI shown in the issue, then compare it with the Azure portal's source application package request. Trace the gallery application version API specification and its source.mediaLink validation; done means a valid SAS URI is accepted without the reported absolute-URI error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.