For those that are new to the Azure CLI there are often a few nuances that can take a little getting used to. I will keep this post up to date as I find things I find useful and to help me remember (I have an awful memory!).
The Azire CLI uses the argument--query
to search and query for a result which will execute a JMESPath query on the results. JMESPath is a query language for JSON.
Wildcard Search on a –list:
az group list --query “[?contains(name,’Some_Term’)]"
You can also substitute ‘contains’ for: starts_with