Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Pradeep Pradyumna
Pradeep Pradyumna

Posted on

     

Azure CLI: Get Azure repositories list in 4 steps

If you're looking for an azure cli command to get a list of repositories, you can follow the steps:

Step 1:

Download Azure CLI fromhere

Step 2:

Add the Azure DevOps extension
az extension add --name azure-devops

Step 3:

Configure defaults. Give YOUR organization and project names
az devops configure --defaults organization=https://dev.azure.com/<ORGANIZATION_NAME> project=<PROJECT_NAME>

Step 4:

Get list by running either of the below commands

az repos list --org "https://dev.azure.com/<ORGANIZATION_NAME>" -p "<PROJECT_NAME>" -o tsv --query [].name

or

az repos list --query '[].{Name:name, Url:remoteUrl}' -o json

Cheers!
Thanks for reading! 💛

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
anspfeifer profile image
Anselmo Pfeifer
Skilled and experienced Cloud Engineer with 9 years of experience in designing, implementing, and managing complex Cloud solutions.
  • Joined

the value for query needs to be inside of simple quote '' like here: --query '[].name'

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

1st rule of programming - if it works DON'T TOUCH IT !!! ;)
  • Location
    Bengaluru, India
  • Education
    B. E. Graduate
  • Work
    I write code for a living
  • Joined

More fromPradeep Pradyumna

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp