For system, network and cloud administrators
In order to list all resource groups that start with rg, for example, type:
az group list --query "[?starts_with(name,'rg')].name" --output tsv
It’s really practical to know how to create resources using multiple methods. In order to create a new resource group type:
az group create --name yourresourcegroup --location yourdesiredlocation