How to list all storage containers which are public in Azure in the form of Export

Neena Sharma 25 Reputation points
2023-09-28T13:43:30.1066667+00:00

Hello,

I am trying to find a way to export all storage containers which are public in Azure. Any leads will be highly appreciated.

Regards,

Neena Sharma

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.
3,147 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ramya Harinarthini_MSFT 5,351 Reputation points Microsoft Employee
    2023-09-29T06:51:55.5633333+00:00

    @Neena Sharma Welcome to Microsoft Q&A, thank you for posting your here!!

    Azure Storage blob inventory provides a list of the containers in your storage account, along with their associated properties. It generates an output report in either comma-separated values (CSV) or Apache Parquet format on a daily or weekly basis. You can use the report to check the list of containers along with their properties such as Public, immutability policy status, legal hold status your storage account.

    Enable blob inventory report from Azure Portal: https://learn.microsoft.com/en-us/azure/storage/blobs/blob-inventory-how-to?tabs=azure-portal

    Provide the Rule name and In the Container, field select the container name where the inventory report can be saved.

    User's image

    User's image

    Source Link: https://learn.microsoft.com/en-us/azure/storage/blobs/blob-inventory

    The output will be saved in the container that you have selected in the container field in the year/month/data format.

    If you enable firewall rules for your storage account, inventory requests might be blocked. You can unblock these requests by providing exceptions for trusted Microsoft services. For more information, see the Exceptions section in Configure firewalls and virtual networks.

    Most inventory runs complete within 24 hours. For hierarchical namespace enabled accounts, a run can take as long as two days, and depending on the number of files being processed, the run might not complete by end of that two days. The maximum amount of time that a run can complete before it fails is six days.

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.