Skip to content

Instantly share code, notes, and snippets.

@pmarques
Created November 3, 2017 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmarques/8d1e5c9106fb32d5161afc117487bac9 to your computer and use it in GitHub Desktop.
Save pmarques/8d1e5c9106fb32d5161afc117487bac9 to your computer and use it in GitHub Desktop.
Useful AZ CLI snippets
R_GROUP=a
# Delete all VMs in a group
az vm list --resource-group "${R_GROUP}" | jq '.[] .id' | xargs az vm delete --yes --ids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment