Error accessing blob storage with SAS token

barani daran 1 Reputation point
2021-09-20T06:42:51.25+00:00

Hi Team,

need your assistance for the following scenario

Usage:
I have a webapp which has a functionality that allows user to upload files to the Azure blob storage and access the same file using the blob url.
I have opted for "Selected networks only" to access the storage account. Im using SAS token to upload the file. Upload operation is handled through APIM its IP is configured in VNET
with the same blob url returned after uploading the file the user needs to access the file.

Expected:
After uploading the file blob url will be returned with SAS as suffix, by clicking the url user should be able to download the file.

Error:
By clicking on the URL user not able to access the file instead getting an error "This request is not authorized for this operation"

Parameters used in SAS:
Services
ResourceTypes
Permissions
Protocols
Expiry
IPrangeorAddress

Note:
User is able to access the file using the url once user public ip is added to the selected network tab. This is not possible in our case as the users will be accessing the file dynamically and cannot be preconfiguring their IPs in storage account always

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
1,549 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,403 questions
{count} votes