locked
Authorization error when accessing SAS URL RRS feed

  • Question

  • I have created SAS URL in azure portal with ipaddress to access like below

    https://xx/xx/xx.json?sp=r&st=2020-05-22T10:01:42Z&se=2020-05-22T18:01:42Z&sip=192.168.1.101&spr=https&sv=2019-10-10&sr=b&sig=NE1ls1mz5F68FF0sxZMBzijVEkujQXwU65QgLHITHoo%3D

    When i try to access this URL i am getting "This request is not authorized to perform this operation" error.

    If i dont use ipaddress in URL it is working fine.

    Can anybody help me where i am doing a mistake

    Friday, May 22, 2020 10:04 AM

All replies

  • @Gowtham Agraharam Just for testing purpose can you create a SAS URL in Storage Explorer and try to access and let me know the status.

    Based on the error message you can refer to this SAS error codes. I could be permission(Read, List, write) issue or expiry time. 

     Hope this helps! 

    Kindly let us know if the above helps or you need further assistance on this issue.  
    ------------------------------------------------------------------------------------------

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    Friday, May 22, 2020 10:45 AM
  • @SumanthMarigowda-MSFT Using storage explorer i am getting a new URL which is different from portal.

    https://micasdevstorageaccount.blob.core.windows.net/iottest/message.json?sv=2019-02-02&st=2020-05-24T18%3A30%3A00Z&se=2020-05-25T18%3A30%3A00Z&si=ipaddress&sr=b&sig=XXXXXXXX

    In this URL ipaddress is not shown. Please refer me any documentation to do this using "azure-storage" module.

    Thank you.

     
    Monday, May 25, 2020 9:10 AM
  • @Gowtham Agraharam Apologies for the delay in responding here!

    Can you provide contribute roles access to the Storage Account and try to access the URL and let me know the status.

    Kindly let us know if the above helps or you need further assistance on this issue.  
    ------------------------------------------------------------------------------------------

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    Thursday, June 4, 2020 3:40 PM