What are the necessary parameters required to construct the signature string for Azure Blob Storage

Satya Naik 21 Reputation points
2023-02-03T14:45:30.5666667+00:00

I am getting this error once in a while and replicating this is also an issue. Sometimes it works and sometimes it doesn't. Not able to figure out what the issue actually is .

Error Message:
<Code>

AuthenticationFailed

</Code>

<Message>

Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

RequestId:9778b282-201e-0017-42d4-37199c000000

Time:2023-02-03T13:33:59.4370920Z

</Message>

<AuthenticationErrorDetail>

The MAC signature found in the HTTP request 'ErN2zP3io4xho3gs3Bxg615Yrx5E4DNof830O49Xboo=' is not the same as any computed signature. Server used following string to sign: 'GET

--- 6 new lines ---

Fri, 03 Feb 2023 10:44:43 GMT

-- 2 new line ---

"0x8DB05D3A8CCC4C9"

-- 3 new line ---

x-ms-date:Fri, 03 Feb 2023 13:33:35 GMT

x-ms-version:2017-04-17

/aryapocblobstorage/aryapocblobcontainer/webchat/7rxMr1c4lf87ulIDVCJvQF-in/8db05d3a87f28ff-7rxMr1c4lf87ulIDVCJvQF-in%257C0000103.json'.

</AuthenticationErrorDetail>

</Error>

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,639 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SaiKishor-MSFT 17,221 Reputation points
    2023-02-08T21:18:12.88+00:00

    @Satya Naik

    Here is the doc that explain how to build this string- https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key#blob-queue-and-file-services-shared-key-authorization

    This issue happens when the authorization signature is incorrect. Please refer to this doc for details regarding troubleshooting this error/issue- https://techcommunity.microsoft.com/t5/azure-paas-blog/the-mac-signature-found-in-the-http-request-xxxx-is-not-the-same/ba-p/3293726

    Hope this helps. Please let me know if you require any further assistance and I will be glad to assist further. Thank you!

    0 comments No comments