skip to content
Alvin Lucillo

Listing blob with prefix

/ 1 min read

To list the blobs given a prefix, you use the command below. In the example, all blobs under the given directory are listed in a table format. az storage blob list --account-name acct1 --container-name container1 --prefix folder1/subfolder1 -o table;

You need to know the storage account name and the container. Get the account name under the Name column: az storage account list -o table

Then get the container name by providing the storage account name. Look for the Name column az storage container list --account-name acct1 -o table

Now you have the two arguments for the az blob list command.