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
Follow the below steps
- Log in to Azure Portal.
- Navigate to the Storage account for the one you wish to enable the Public Access.
- Click on the Configuration link from the left navigation which is present 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.

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.
- 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.

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

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

4. Now, you will get a successful message on the updation like below.

Approach-2: Using PowerShell
You can also enable Azure Storage Account Public Access using PowerShell. Follow the below steps.
- Open Windows PowerShell ISE with “Run as administrator” mode.
- 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

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.

You may also like following the below articles
Wrapping Up
In this Azure article, we discussed how to enable Azure Storage Account Public Access using Azure Portal and PowerShell. Thanks for reading this article !!!

I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, 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.