Need to change Azure Storage account containers and blob access levels to private

Praveen Mittapalli 36 Reputation points
2021-05-20T14:28:02.137+00:00

I need to change storage account container and blob access level to private. I have more than 200 storage accounts and more than 1000 containers in my subscription.

Please suggest quick solution to do the same.

Thanks in advance

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
644 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,718 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,441 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,383 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 43,806 Reputation points Microsoft Employee
    2021-05-20T16:06:44.663+00:00

    @Praveen Mittapalli Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    You can use Azure PowerShell or CLI

    $ctx = New-AzureStorageContext -StorageAccountName <name> -StorageAccountKey <key>      
    Get-AzureStorageContainer -Context $ctx | Set-AzureStorageContainerAcl -Permission Off -PassThru  
    

    You can also use Azure Storage Explorer tool to perform this task.

    98352-image.png

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.

    -----------------------------------------------------------------------------------------------------------------------------------------------------------

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

    0 comments No comments