list SAS key for a storage

Prasad, Rakesh 221 Reputation points
2022-08-30T06:38:34.803+00:00

hi,

is it possible to list all active SAS keys for a storage?

this API doesnt do what i thought it would. It just generates new keys, which is not what i was looking for => ListAccountSas?api-version=2021-09-01

I want to list already generated, still active SAS key for a storage

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,944 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 45,416 Reputation points Microsoft Employee
    2022-08-31T14:22:59.68+00:00

    @Prasad, Rakesh Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    Storage doesn't track the number of shared access signatures that have been generated for a storage account, and no API can provide this detail. If you need to know the number of shared access signatures that have been generated for a storage account, you must track the number manually.

    When you use shared access signatures in your applications, you need to be aware of two potential risks:

    • If a SAS is leaked, it can be used by anyone who obtains it, which can potentially compromise your storage account.
    • If a SAS provided to a client application expires and the application is unable to retrieve a new SAS from your service, then the application's functionality may be hindered.

    Best practices when using SAS

    Please let us know if you have any further queries. I’m happy to assist you further.

    ----------

    Please do not forget to 236446-screenshot-2021-12-10-121802.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


0 additional answers

Sort by: Most helpful