How to get Azure storage access rotational key through C# code(KEY 2).

Manikanta 1 Reputation point
2021-10-11T14:25:49.853+00:00

I want to read the azure storage access key rotation code through C# code.

Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
229 questions
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,683 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,230 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 33,216 Reputation points Microsoft Employee
    2021-10-11T17:58:31.207+00:00

    @Manikanta
    You can fetch the keys using the GetKeys method. Please see the sample code available here on GitHub. You might also find this similar StackOverflow thread helpful.

    Hope this helps! Let us know if you have further questions or need further assistance.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.