Access Denied to Azure Public Storage Container

Bathini Harshitha 0 Reputation points
2024-10-03T08:49:39.8333333+00:00

Why do I receive an authorization error when trying to access my publicly set Azure Storage container?

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,834 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bathini Harshitha 0 Reputation points
    2024-10-03T08:50:35.88+00:00

    Receiving an authorization error when accessing a publicly set Azure Storage container can be attributed to certain configurations that need to be in place. Here’s how you can resolve this issue:

    Enable Blob Anonymous Access: Ensure that the "Allow Blob anonymous access" setting is enabled on your storage account. This setting is necessary for allowing anonymous read access to blobs.Navigate to your storage account in the Azure portal, select 'Configuration', and enable the 'Allow Blob public access' setting.

    Configure Container-Level Access: Ensure that the container is configured to allow anonymous access at the container level. This setting allows anyone to read the blobs within the container without authentication.

    Enable Storage Account Key Access: Make sure that the "Allow storage account key access" setting is enabled. This is required if you want to authenticate while accessing the blobs.

    Assign RBAC Role: Use Microsoft Entra authorization and assign a suitable RBAC role, such as Storage Blob Data Contributor, to your service principal name to ensure proper permissions are granted.In the Azure portal, go to 'Access Control (IAM)' on your storage account, add a role assignment, and select the appropriate role.

    For detailed steps on configuring these settings, please refer to the following documentation:

    Resources:

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    **Please do not forget to "Accept the answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.**Receiving an authorization error when accessing a publicly set Azure Storage container can be attributed to certain configurations that need to be in place. Here’s how you can resolve this issue:

    Enable Blob Anonymous Access: Ensure that the "Allow Blob anonymous access" setting is enabled on your storage account. This setting is necessary for allowing anonymous read access to blobs.Navigate to your storage account in the Azure portal, select 'Configuration', and enable the 'Allow Blob public access' setting.

    Configure Container-Level Access: Ensure that the container is configured to allow anonymous access at the container level. This setting allows anyone to read the blobs within the container without authentication.

    Enable Storage Account Key Access: Make sure that the "Allow storage account key access" setting is enabled. This is required if you want to authenticate while accessing the blobs.

    Assign RBAC Role: Use Microsoft Entra authorization and assign a suitable RBAC role, such as Storage Blob Data Contributor, to your service principal name to ensure proper permissions are granted.In the Azure portal, go to 'Access Control (IAM)' on your storage account, add a role assignment, and select the appropriate role.

    For detailed steps on configuring these settings, please refer to the following documentation:

    Resources:

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    Please do not forget to "Accept the answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

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.