skip to Main Content

I have created Azure Storage account, inside storage account created container and uploaded files to my container.

When I tried to access the Container from browser. Getting: This request is not authorized to perform this operation. ,Assigned Storage blob Contributer and also Storage Blob Owner but same issue.

2

Answers


  1. I tried to reproduce the same in my environment to access the blob Storage. As I got below

    enter image description here

    I created storage account with container, like below.

    Azure Portal > Storage accounts > Create a Storage Account

    Note: If you want to access Azure Blob from public Internet, Select Enable public access from all networks under Networking section or if you select Enable public access from selected Virtual network and IP Address, it will access only particular Virtual Network.

    enter image description here

    **Container Creation: **

    Azure Storage Account > Containers > Container >

    enter image description here

    Assigned Storage Blob Data Contributor to my storage account, Like below.

    Azure Storage Account > Select your Storage Account > Access Control (IAM)> Add > Add role Assignment > Storage Blob Data Contributor.

    enter image description here

    My blob is accessible over the Public Internet

    enter image description here

    Login or Signup to reply.
  2. Those files/container are private, this means only authorised users can access to them. To access a particular file with your browser, you need to grant permissions to that file. One of many solutions is to use SAS token (Shared Access Signature). In resume, this will generate a url with a token and this url can be pasted in a browser to access the file.

    SAS token can be configured at some levels:

    • User delegation
    • Service
    • Account

    One of the benefits (it has a lot more) of SAS token is that you can define an expiration policy for that SAS token, so it not be externally accesible for eternity.

    You should configure Share Access Policies if those files have sensible content or block some paths to protect them from external access.

    Please, refer to the official documentation for more info about SAS Token usage:

    What is SAS

    Grant limited access to Azure Storage resources using SAS

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search