0
votes

There is this page that describes how to connect to azure storage via rest: https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key

On the page there is code example that has the following line:

Authorization: SharedKey myaccount:ctzMq410TV3wS7upTBcunJTDLEJwMAZuFPfr0mrrA08=

I am looking in the Azure portal, in the storage settings. The question is: Where from do I get the ctzMq410TV3wS7upTBcunJTDLEJwMAZuFPfr0mrrA08= key?

2

2 Answers

1
votes

As stated in the article, in the section titled "Constructing the signature string" the signature is constructed for the request, it's not a fixed string.

https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key#constructing-the-signature-string

Specifically for storage you should read this article about creating the signature:

https://docs.microsoft.com/en-us/azure/storage/common/storage-rest-api-auth#creating-the-authorization-header

1
votes

As noted by @bryanlewis, you have to build that string by following the instructions in the documentation page. But if you want to know where to get the access key needed to build the string, it's under the Settings -> Access keys tab in the Portal.

enter image description here