---
title: Azure – You can now enable anonymous read access on Blob Storage or Container - cubesys
description: Disclaimer you need to evaluate if you need or not to enable this new feature, anonymous read access on Azure Blob Storage, as any client will be able to read the data stored on the corresponding Blob Storage.As you know, access to data stored on Azure Blob Storage is managed…
---

[Latest News & Blogs - cubesys ](https://www.cubesys.com.au/blog)

# [Azure – You can now enable anonymous read access on Blob Storage or Container - cubesys](https://www.cubesys.com.au/blog/azure-you-can-now-enable-anonymous-read-access-on-blob-storage-or-container)

 Written by [cubesys](https://www.cubesys.com.au/blog/author/cubesys) | Jul 15, 2020 2:00:00 PM

**Disclaimer** you need to evaluate if you need or not to enable this new feature, anonymous read access on Azure Blob Storage, as any client will be able to read the data stored on the corresponding Blob Storage.

As you know, access to data stored on Azure Blob Storage is managed either by implementing Azure AD or Shared Keys authorizations.

With this new capability you can enable an anonymous access if you need to share the data stored on the Blob Storage to anybody without having to share the access keys because you may not know upfront who will access it; similar to publishing on a public website.

For example, this can be useful when you use Azure Blob storage to store public documents being accessible through a link on your public website.

## Anonymous access for Blob Storage

To enable this new capability, logon to your Azure portal ([https://portal.azure.com/](https://portal.azure.com/)) and search for **Storage account** (or the name of the existing storage account you want to configure)

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb-252.png>

Then access the **Configuration** blade, available under the **Settings** section

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb1-204.png>

And turn on (or off) the **Blob public access**

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb2-164.png>

You can also use Azure Cli using the below commands

> storage_account_id=$(az resource show –name <name of the storage account> –resource-group <resource group hosting the storage account> –resource-type Microsoft.Storage/storageAccounts –query id –output tsv)
> 
> az resource update –ids $storage_account_id –set properties.allowBlobPublicAccess=<true or false depending if you want to allow/disallow the anonymous access>

## Anonymous access for Blob Container

Similar to the above anonymous access for Blob Storage, logon to your Azure portal ([https://portal.azure.com/](https://portal.azure.com/)) and search for **Storage account** (or the name of the existing storage account you want to configure)

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb3-131.png>

Then access the **Containers** configuration blade under the **Blob service** section

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb4-100.png>

Then select the container(s) you want to enable the anonymous access and open the **Change access level** to choose the corresponding access level (anonymous for blob only or anonymous access for containers and blob)

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb5-63.png>

You can also use Azure Cli using the below commands

> az storage container set-permission –name <container-name> –account-name <account-name> –public-access <container or blob> –account-key <account-key> –auth-mode key

## Check/Review if anonymous access is enabled

You can check/review if the anonymous access is enabled by using either the below Azure Cli commands or metrics from the portal

> $rgName = <resource group hosting the storage account>   
>  $accountName = <name of the storage account>
> 
> $storageAccount = Get-AzStorageAccount -ResourceGroupName $rgName -Name $accountName  
>  $ctx = $storageAccount.Context
> 
> Get-AzStorageContainer -Context $ctx | Select Name, PublicAccess

Using the metrics blade from the portal, logon to your Azure portal ([https://portal.azure.com/](https://portal.azure.com/)) and search for **Storage account** (or the name of the existing storage account you want to configure)

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb6-49.png>

Then access the **Metrics** blade under the **Monitoring** section

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb7-36.png>

Select the following filters for your metric

- Metric Namespace: **blob**
- Metric: **Transactions**
- Aggregation: **Sum**

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb8-28.png>  <https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb9-18.png>  <https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb11-15.png>

Then add a filter for **authentication** with the operator set to **=** (equal sign) and value set to **Anonymous**

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb12-8.png>  <https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb13-6.png>

[View full post](https://www.cubesys.com.au/blog/azure-you-can-now-enable-anonymous-read-access-on-blob-storage-or-container)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "cubesys"
  },
  "dateModified" : "2025-02-21T16:09:37.139Z",
  "datePublished" : "2020-07-15T14:00:00Z",
  "headline" : "Azure – You can now enable anonymous read access on Blob Storage or Container",
  "image" : {
    "@type" : "ImageObject",
    "height" : 60,
    "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
    "width" : 60
  },
  "mainEntityOfPage" : "https://www.cubesys.com.au/blog/azure-you-can-now-enable-anonymous-read-access-on-blob-storage-or-container",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Latest News"
  }
}
```