Skip to content

Instantly share code, notes, and snippets.

@hermannolafs
Last active February 20, 2024 08:38
Show Gist options
  • Save hermannolafs/afd4c3d9a3e0327c495d1c55b22a7cb1 to your computer and use it in GitHub Desktop.
Save hermannolafs/afd4c3d9a3e0327c495d1c55b22a7cb1 to your computer and use it in GitHub Desktop.
Random JMEs path bullshit
owner="meow"
# Search for VMs by tag and output ID in a list
az vm list --query "[?tags.owner=='${owner}'].id" --output tsv
# Get children of mgmt group
az account management-group show --name "internal" --expand --query "children[].name"
az aks list --subscription opaopaopa --query "[].{Cluster:name, Power:powerState.code, Status:provisioningState}" --output table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment