Is there any way to list SAS tokens of a storage account in Azure CLI? I can generate one and it spits out the generated token immediately. However, there seems to be no way to list/show/get the same token later using Azure CLI. I see it's possible in REST API but not in Azure CLI.
Asked
Active
Viewed 1,460 times
4 Answers
1
SAS tokens must be generated for a specified scope and permissions, as well as a time frame in which they are valid. Listing SAS tokens for a storage account is NOT possible as a limitless number of tokens are valid.
To get a SAS-token for the same scope, you can pass in the same parameters from the previous generation.

Willie Xu
- 51
- 2
0
Just to make sure we are on the same page; which REST API is it that your are not able to reach from the Azure CLI?
Best regards, Johan Stenberg

Johan Stenberg
- 51
- 3
-
What I am saying is there is no command in Azure CLI to list SAS tokens. – Abhijeet Singh Oct 26 '18 at 20:06
0
There is no way to track already issues SAS tokens. The rest API which you are referring is also created new token, It will not list the existing tokens.

jeevan
- 11
- 2