Reputation: 95
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.
Upvotes: 1
Views: 2576
Reputation: 11
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.
Upvotes: 0
Reputation: 61
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.
Upvotes: 1
Reputation: 51
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
Upvotes: 0