Skip to content

Commit 86073e4

Browse files
authored
Create troubleshooting guide for PublicAccessNotPermitted error (#11777)
* Create troubleshooting guide for PublicAccessNotPermitted error Added troubleshooting guide for PublicAccessNotPermitted error in Azure Blob storage, including symptoms, causes, and resolutions. * Add troubleshooting section for PublicAccessNotPermitted error * Modify section headers for access options Updated section headers for clarity regarding access options.
1 parent 5c1dc84 commit 86073e4

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: Troubleshoot PublicAccessNotPermitted error
3+
description: How to troubleshoot PublicAccessNotPermitted error.
4+
ms.date: 06/23/2026
5+
ms.service: azure-blob-storage
6+
author: jeffpatt24
7+
ms.author: jeffpatt
8+
ms.custom: sap:Authentication and Authorization
9+
---
10+
11+
# Troubleshoot PublicAccessNotPermitted error
12+
13+
When accessing Azure Blob storage, you may encounter a `PublicAccessNotPermitted` error. This article describes how to resolve this error.
14+
15+
## Symptom
16+
17+
When attempting to access an Azure Blob container or blob, you may receive the following error:
18+
19+
```text
20+
Public access is not permitted on this storage account.
21+
ErrorCode: PublicAccessNotPermitted
22+
```
23+
24+
## Cause
25+
26+
This error occurs when an unauthenticated (anonymous) request is made to a blob or container that does not allow public access.
27+
28+
## Resolution
29+
30+
#### Option 1: Use authenticated access (recommended)
31+
32+
Instead of enabling anonymous access, use a supported authentication method to securely access Azure Blob storage:
33+
34+
- **Microsoft Entra ID (recommended)**
35+
[Authorize Blob Access with Microsoft Entra ID](/azure/storage/blobs/authorize-access-azure-active-directory)
36+
37+
- **Shared access signature (SAS)**
38+
[Grant limited access to data with shared access signatures (SAS)](/azure/storage/common/storage-sas-overview)
39+
40+
- **Storage account key**
41+
[Authorize with Shared Key](/rest/api/storageservices/authorize-with-shared-key)
42+
43+
For more information: [Authorize access to data in Azure Storage](/azure/storage/common/authorize-data-access)
44+
45+
#### Option 2: Enable anonymous access (only if required)
46+
47+
> [!WARNING]
48+
> When a container is configured for anonymous access, any client can read data in that container. This can introduce significant security risks. Only enable anonymous access when explicitly required.
49+
50+
If your scenario requires anonymous access, see: [Configure anonymous read access for containers and blobs](/azure/storage/blobs/anonymous-read-access-configure)

support/azure/azure-storage/blobs/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
items:
2121
- name: Troubleshoot portal access issues
2222
href: authentication/storage-troubleshoot-portal-access-issues.md
23+
- name: Troubleshoot PublicAccessNotPermitted error
24+
href: authentication/storage-troubleshoot-publicaccessnotpermitted-error.md
2325
- name: Troubleshoot 403 errors
2426
href: authentication/storage-troubleshoot-403-errors.md
2527
- name: Sticky bit causes 403 authorization error

0 commit comments

Comments
 (0)