Azure / azure-cli

Azure Command-Line Interface
MIT License
4.02k stars 2.99k forks source link

az storage account generate-sas doesn't generate full url #16768

Open ikteru opened 3 years ago

ikteru commented 3 years ago

The command to generate a SAS link doesn't generate a full url, it just generate the token and that's it. There is an option in the command that lets you do that and it's "--full-url". However, every time I try to use it, the azure-cli tells me it doesn't exist: image I figured maybe it's because it's not the latest version of the cli, so I updated it to 2.18.0 and tried again, I got the same result.

I checked the --help of that command and it honestly doesn't contain half the options that are mentioned in the documentation, not just "--full-url" but more of the options.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

yonzhan commented 3 years ago

storage

Juliehzl commented 3 years ago

Hi @ikteru, thanks for your feedback! We d not support full uri for account sas because there is no api (python SDK) support. If python SDK could give support to return full sas url, we will add such support in azure cli, too. @xiafu-msft to confirm if python SDL will support return full account sas url for get_account_sas() operation.

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

Issue Details
The command to generate a SAS link doesn't generate a full url, it just generate the token and that's it. There is an option in the command that lets you do that and it's "--full-url". However, every time I try to use it, the azure-cli tells me it doesn't exist: ![image](https://user-images.githubusercontent.com/24244295/106594128-f90bf980-6551-11eb-9343-a345efcc3be5.png) I figured maybe it's because it's not the latest version of the cli, so I updated it to 2.18.0 and tried again, I got the same result. I checked the --help of that command and it honestly doesn't contain half the options that are mentioned in the documentation, not just "--full-url" but more of the options. --- #### Document Details ⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.* * ID: 92115d19-d7a0-93a8-bf2b-5126d1cddcd0 * Version Independent ID: a657f09b-e1ac-12a2-4b9c-7aaa1f0e3f5c * Content: [az storage account](https://docs.microsoft.com/en-us/cli/azure/storage/account?view=azure-cli-latest) * Content Source: [latest/docs-ref-autogen/storage/account.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/storage/account.yml) * Service: **storage** * GitHub Login: @rloutlaw * Microsoft Alias: **routlaw**
Author: ikteru
Assignees: Juliehzl
Labels: `OKR3.2 Candidate`, `Service Attention`, `Storage`, `feature-request`
Milestone: S186