Forrest logo
back to the az tool

az-storage-container:tldr:851cc

az-storage-container: List containers in a storage account.
$ az storage container list --account-name ${storage_account_name} --prefix ${filter_prefix}
try on your machine

The command you provided is an Azure CLI command used to list storage containers within an Azure Storage account.

Here's a breakdown of the command and its parameters:

  • az storage container list: This is the main command to list storage containers.
  • --account-name ${storage_account_name}: Specifies the name of the Azure Storage account from which the containers will be listed. You need to replace ${storage_account_name} with the actual name of your storage account.
  • --prefix ${filter_prefix}: Optional parameter used to filter the containers based on their names. It specifies a prefix value to match the beginning of the container names. You need to replace ${filter_prefix} with the desired prefix.

By running this command, it will retrieve a list of storage containers that match the specified account name and filter prefix (if provided).

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool