Skip to content

Instantly share code, notes, and snippets.

@thiagorider
Last active January 26, 2023 19:03
Show Gist options
  • Select an option

  • Save thiagorider/3cc429106de117c3fc8a2cf8d2e17a5a to your computer and use it in GitHub Desktop.

Select an option

Save thiagorider/3cc429106de117c3fc8a2cf8d2e17a5a to your computer and use it in GitHub Desktop.
az pipelines CLI (az CLI Extension) cheatsheet

az pipelines CLI (az CLI Extension) cheatsheet

Extension Installation

$ az extension add --name azure-devops

Setting a default organization

$ az devops configure --defaults organization=https://dev.azure.com/<org_name>/

Useful commands

Get projects list

$ az devops project list

Get projects names list

$ az devops project list --query "*[].name"

Get projects names and ids list

$ az devops project list --query "*[].[name,id]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment