Last active
May 28, 2021 06:46
-
-
Save pradeepradyumna/e03296b333fe818b907c88db93201cdf to your computer and use it in GitHub Desktop.
Azure DevOps : Get list of repositories using Azure CLI
This file contains 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
Step 1: Download Azure CLI here - https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest | |
Step 2: Add the Azure DevOps extension | |
az extension add --name azure-devops | |
Step 3: Login to DevOps. | |
az login | |
Step 4: Configure defaults | |
az devops configure --defaults organization=https://dev.azure.com/<ORGANIZATION_NAME> project=<PROJECT_NAME> | |
Step 2: Get list | |
az repos list --org "https://dev.azure.com/<ORGANIZATION_NAME>" -p "<PROJECT_NAME>" -o tsv --query [].name | |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment