Forrest logo
back to the az tool

az-storage:tldr:383e3

az-storage: List all storage accounts in a resource group.
$ az storage account list -g ${group_name}
try on your machine

The command "az storage account list -g ${group_name}" is an Azure CLI command used to retrieve a list of storage accounts within a specified resource group.

Here is the breakdown of the command:

  • "az storage account list" is the main part indicating that the command is for listing storage accounts.
  • "-g" is the shorthand flag for specifying the resource group. It is followed by "${group_name}", which is a placeholder representing the actual name of the resource group you want to retrieve storage accounts from.
    • For example, if you have a resource group named "mygroup", you would replace "${group_name}" with "mygroup" in the command.
  • When you run this command, Azure CLI will fetch the list of storage accounts from the specified resource group and display the account details, such as name, resource group, location, and account type.
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