AZ Cheat Sheet

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s