Skip to content
Azure Lessons
Azure Lessons
  • Home
  • AWS
  • Azure
    • Azure Virtual Machine
    • Azure Active Directory
    • Azure CLI
    • Azure CLI Commands List
    • Azure Cognitive Services
    • Azure Cosmos DB
    • Azure DevOps
    • Azure Functions
    • Azure PowerShell Commands
    • Azure Sentinel
    • Azure SQL
    • Azure Storage
    • Azure Synapse
  • Blogs
  • FREE EBOOK

How to enable Azure Storage Account Public Access

February 18, 2025September 20, 2023 by Rajkishore

Do you think, Azure storage account public access should be disallowed, well, it is recommended as per security concerns but what if you really want to In this Azure article, we will discuss multiple approaches to enable Azure Storage Account Public Access.

Table of Contents

  • How to enable Azure Storage Account Public Access
    • Approach-1: Using Azure Portal
    • Approach-2: Using PowerShell
  • Wrapping Up

How to enable Azure Storage Account Public Access

Let us discuss all the approaches individually

Approach-1: Using Azure Portal

To enable Azure Storage Account Public Access, follow the below steps

  1. Log in to Azure Portal.
  2. Navigate to the Storage account for the one you wish to enable the Public Access.
  3. Click on the Configuration link from the left navigation under Settings.

Then, for the “Allow Blob anonymous access” option, select “Enabled.” –> Then make sure to click on the Save button to save the changes.

How to enable Azure Storage Account Public Access

Now, as a next step, you need to set the public access level of the container.

Set the public access level of the container

Follow the below steps.

  1. On the Storage account page, click on the Containers link from the left navigation that is present under the Data storage node. Then click on the specific container where you wish to provide public access. For me, here it is a “test” container.
azure storage account public access

2. Click on the “Change access level” button and select the required public access option based on your requirements.

Azure Storage Account Public Access

3. Then click on the OK button on the next pop-up.

azure blob container access level

4. Like the one below, You will get a successful message on the updation.

azure blob container access policy

Approach-2: Using PowerShell

You can also enable Azure Storage Account Public Access using PowerShell. Follow the below steps.

  1. Open Windows PowerShell ISE with “Run as administrator” mode.
  2. Execute the below Azure PowerShell command to enable Azure Storage Account Public Access.
$myrsgName = "DEMORG2"
$mysactName = "demoggh"
$region = "East US"

Set-AzStorageAccount  `
    -AccountName $mysactName `
    -ResourceGroupName $myrsgName `
    -AllowBlobPublicAccess $true

    (Get-AzStorageAccount -ResourceGroupName $myrsgName -Name $mysactName).AllowBlobPublicAccess

Note: Make sure to change the Resource Group name, Storage account name, and the location as per yours.

After executing the above Azure PowerShell command, I got the below expected output.


StorageAccountName ResourceGroupName PrimaryLocation SkuName        Kind      AccessTier CreationTime        ProvisioningState EnableHttpsTrafficOnly L
                                                                                                                                                      a
                                                                                                                                                      r
                                                                                                                                                      g
                                                                                                                                                      e
                                                                                                                                                      F
                                                                                                                                                      i
                                                                                                                                                      l
                                                                                                                                                      e
                                                                                                                                                      S
                                                                                                                                                      h
                                                                                                                                                      a
                                                                                                                                                      r
                                                                                                                                                      e
                                                                                                                                                      s
------------------ ----------------- --------------- -------        ----      ---------- ------------        ----------------- ---------------------- -
demoggh            DEMORG2           eastus          Standard_RAGRS StorageV2 Hot        17-09-2022 07:12:23 Succeeded         False                   
True

You can see the same output below

How to enable Azure Storage Account Public Access using PowerShell

To cross-check, You can navigate to your storage account in Azure Portal –> click on the configuration link from the left navigation, and you will find the “Allow Blob anonymous access” option is enabled.

azure storage account anonymous access

You may also like following the articles below

  • How to change Azure Storage Account location

Wrapping Up

In this Azure article, we discussed how to enable Azure Storage Account Public Access using Azure Portal and PowerShell and noted that Azure storage account public access should be disallowed as per security concerns. Thanks for reading this article !!!

Microsoft Azure
Rajkishore

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.

Get-AzApplicationInsights
No match was found for the specified search criteria and module name ‘AzureRM’
Subscribe To Our YouTube Channel Subscribe to AzureLessons YouTube Channel

Recent Posts

  • Azure VM Backup Pricing
  • Azure VM
  • What Is Edge Location In AWS
  • DP-300 Certification
  • What Is Cloud Shell In Azure
  • About Us
  • Contact Us
  • Privacy Policy
  • Sitemap
© 2026 Azure Lessons
Azure
Virtual
Machine
By: Rajkishore
Azure Consultant
PDF

Free 25+ page PDF

Download free Azure Virtual Machine PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!

No spam, ever. You will also get new Azure tutorials by email. Unsubscribe any time. Privacy policy

Check your inbox

Your Azure Virtual Machine PDF is on its way to . Can't find it in a few minutes? Look in your Promotions or Spam folder.