question

RaminderChima-9287 avatar image
0 Votes"
RaminderChima-9287 asked SumanthMarigowda-MSFT commented

Azure Blob Storage: SAS Signature did not match, simple yet complicated

Hi,
I know this question has been asked and answered several times but yet I can find numerous questions still posted daily..#
I am trying to do a very simple thing.
A. Go to Azure Portal and drill down to blob storage container
B. Go to Shared Access Signature. Specify details like Permission [Read, List, Write], Start and Expiry Date and time [Today-now till one year]
C. No IP Address Filter [Even the account has no firewall setting], HTTPS only.
D. Press Generate SAS Token and URL

Now if I copy and Paste [Browser and Postman] to check, it does not work, and I am irritated that a simple thing in azure has been made complicated.
<Error>
<Code>AuthenticationFailed</Code>
<Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:697dac34-601e-0056-2888-5753cf000000 Time:2021-06-02T08:22:40.0347860Z</Message>
<AuthenticationErrorDetail>Signature did not match. String to sign used was r 2021-06-02T08:16:04Z 2021-06-02T16:16:04Z /blob/Container/$root https 2020-02-10 c </AuthenticationErrorDetail>
</Error>

One point I notice is that the Time in token is one hour behind the current time, though My laptop is set to same Azure region where the time matches [Windows and Azure]
And I am lost and frustrated....

Need pointers in the right direction.
All the articles explain the difference between various access types and what is SAS, but no help on how to do it...

azure-blob-storage
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
2 Votes"
deherman-MSFT answered SumanthMarigowda-MSFT commented

@RaminderChima-9287
It looks like you are trying to load a container via the URL in your browser. Unfortunately this is not supported by default. If you try loading a specific blob then it should work as you are intending. If you want to list all blobs in the container you need to use the List Blobs format.

 https://storageaccount.blob.core.windows.net/testcontainer?restype=container&comp=list&sp=racwdl&st=2021-06-03T19:51:51Z&se=2021-06-04T03:51:51Z&spr=https&sv=2020-02-10&sr=c&sig=rnHO%2FxDJtoGB890250HAynonMY1kDk3e

Hope this helps! Let me know if you are still facing issues and we will be happy to take a deeper look.



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.


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.