How to resolve authorization error with IP address SAS token?

Soumyadip Dutta 0 Reputation points
2023-11-01T07:44:18.6366667+00:00

I am trying to Generate SAS token of a file inside my Container in Storage account with IP address. But while accessing the SAS token it is throwing Authorization failure. I have tried with IP from ipconfig, WhatIsMyIP from Google. None of it works. However if I generate the SAS token without IP address I am facing no problem and I am able to access the file. Could not find any answer for this but a thread from here which was not resolved https://github.com/MicrosoftDocs/azure-docs/issues/24334

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

1 answer

Sort by: Most helpful
  1. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2023-11-01T21:17:41.0166667+00:00

    @Soumyadip Dutta

    I tested and did not have issues accessing a txt file using a SAS token generated in the portal for that file restricted to my IP.

    enter image description here

    How is the SAS being generated and used?

    Please include the sas token minus any personal information or ip address. Example:

    sp=r&st=2023-11-01T21:07:11Z&se=2023-11-02T05:07:11Z&sip=x.x.x.x&spr=https&sv=2022-11-02&sr=b&sig=REMOVE
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.