question

Manikanta-0725 avatar image
0 Votes"
Manikanta-0725 asked deherman-MSFT edited

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

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

dotnet-csharpazure-storage-accountsazure-storage-explorer
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

deherman-MSFT avatar image
1 Vote"
deherman-MSFT answered deherman-MSFT commented

@Manikanta-0725
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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you, is there is any other way to get the details without SubscriptionID

0 Votes 0 ·

In order to run APIs through the Azure Management Library you must be authenticated. More about setting up the authentication can be found here.


0 Votes 0 ·