question

PraveenMittapalli-6705 avatar image
0 Votes"
PraveenMittapalli-6705 asked SumanthMarigowda-MSFT commented

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

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

windows-server-powershellazure-storage-accountsazure-blob-storageazure-container-instances
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered SumanthMarigowda-MSFT commented

@PraveenMittapalli-6705 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.



image.png (27.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.