List existing SASTokens on a container using Azure powershell List existing SASTokens on a container using Azure powershell powershell powershell

List existing SASTokens on a container using Azure powershell


It is not possible to get the list of SAS URLs because they are not stored anywhere in Azure Storage.


Probably a bit late.... but on this page:https://docs.microsoft.com/en-us/azure/storage/storage-dotnet-shared-access-signature-part-1

It says:"The SAS token generated by the storage client library is not tracked by Azure Storage in any way. You can create an unlimited number of SAS tokens on the client side."

HTH!Paul


With Powershell perhaps not, but Perhaps possible with the REST API: https://docs.microsoft.com/en-us/rest/api/storagerp/storageaccounts/listaccountsas

For the POST request, some of the request body parameters are REQUIRED to be filled which will need trial and error as you may not remember for what duration the SAS was allowed for. But provided all the values at https://docs.microsoft.com/en-us/rest/api/storagerp/storageaccounts/listaccountsas#request-body are somehow documented , then it should be programmatically possible to get the SAS token itself.