Created
September 8, 2021 09:19
-
-
Save fbjorn/fc53e4cb1178cb30918b24def21ac493 to your computer and use it in GitHub Desktop.
List all repositories for all projects in Azure DevOps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will print all repositories found in all projects that your Azure DevOps account has access to | |
# Example of output: | |
# project1 / repo1 | |
# project1 / repo2 | |
# another-project / repo | |
az devops project list | jq '.value[].name' | xargs -I{} az repos list --project {} | jq -r '.[] | .project.name + " / " + .name ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment