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 from here

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=<ORGANIZATION_NAME> project=<PROJECT_NAME>

Step 4:

Get list by running either of the below commands

az repos list --org "<ORGANIZATION_NAME>" -p "<PROJECT_NAME>" -o tsv --query [].name


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

Thanks for reading! 💛

Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git