For system, network and cloud administrators

How to list all Azure storage accounts that start with a pattern using Azure CLI

In order to view a particular list of storage accounts that start with mystorage, for example, type:

az storage account list --query "[?starts_with(name,'mystorage')]".name --output tsv

The tsv output parameter can easily be replaced with table.

Leave a Reply

Your email address will not be published. Required fields are marked *