Azure / Azure/azure-rest-api-specs
az sig gallery-application doesn't accept sas uris when creating from az cli
- 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
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