For system, network and cloud administrators

How to create an Azure storage account using Azure CLI

In order to create a storage account in Azure, type:

az storage account create --resource-group yourresourcegroup --name yourstoragename

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.


How to list all Azure storage accounts using Azure CLI

In order to view all Azure storage accounts, type:

az storage account list --output tsv


How to list all Azure managed disks using Azure CLI

In order to view all managed disks in Azure, type:

az disk list --output tsv


How to list all Azure resource groups using Azure CLI

In order to view all available resource groups in Azure, type:

az group list --output tsv


Follow BusyNetwork