azure-devops-cli
github/awesome-copilot
Manage Azure DevOps projects, repos, pipelines, builds, and work items via CLI.
What is azure-devops-cli?
Azure DevOps CLI skill enables command-line management of Azure DevOps resources including repositories, pull requests, pipelines, builds, work items, and service endpoints. Use this when automating DevOps tasks, managing CI/CD pipelines, or working with Azure DevOps from the terminal.
- Manage projects, repositories, and branches in Azure Repos
- Create and manage pull requests with reviewers and policies
- Configure and run Azure Pipelines and builds
- Manage releases and artifacts
- Create, query, and update work items in Azure Boards
- Configure pipeline variables, agent pools, and service endpoints
How to install azure-devops-cli
npx skills add https://github.com/github/awesome-copilot --skill azure-devops-cli- Azure CLI installed (version 2.81.0 or later)
- Azure DevOps extension installed via `az extension add --name azure-devops`
- Personal Access Token (PAT) for authentication
- Access to an Azure DevOps organization
How to use azure-devops-cli
- 1.Install Azure CLI and the Azure DevOps extension using the provided commands
- 2.Authenticate with your organization using `az devops login` and a PAT token
- 3.Configure default organization and project with `az devops configure --defaults`
- 4.Read the relevant reference file based on your task (repos, pipelines, boards, etc.)
- 5.Execute the appropriate `az` command for your resource (e.g., `az repos pr create`, `az pipelines run`)
- 6.Use output formatting and JMESPath queries for advanced filtering and scripting
Use cases
- Automate CI/CD pipeline creation and execution from scripts
- Bulk manage pull requests and branch policies across repositories
- Query and update work items programmatically in sprints
- Configure agent pools and pipeline variables for multiple projects
- Set up service endpoints and security permissions via command line
- DevOps engineers automating Azure DevOps workflows
- CI/CD pipeline administrators
- Development teams managing repositories and pull requests
- Project managers tracking work items and iterations
- Infrastructure engineers configuring agents and service endpoints
azure-devops-cli FAQ
The CLI uses Personal Access Tokens (PAT) for authentication. Log in with `az devops login --organization <url> --token <PAT>` and optionally set defaults to avoid repeating organization and project parameters.
Use `az devops configure --defaults organization=<url> project=<name>` to set defaults, then omit these flags from subsequent commands.
Six reference files cover: repos/PRs, pipelines/builds, boards/work items, variables/agents, org/security, and advanced usage patterns. Choose based on your task domain.
Yes. The skill includes scripting patterns, error handling, and JMESPath query support for filtering and transforming output in automation scripts.
Yes, but legacy URLs (https://{org}.visualstudio.com) should be replaced with modern URLs (https://dev.azure.com/{org}) for consistency.
Full instructions (SKILL.md)
Source of truth, from github/awesome-copilot.
name: azure-devops-cli description: Manage Azure DevOps resources via CLI including projects, repos, pipelines, builds, pull requests, work items, artifacts, and service endpoints. Use when working with Azure DevOps, az commands, devops automation, CI/CD, or when user mentions Azure DevOps CLI.
Azure DevOps CLI
Manage Azure DevOps resources using the Azure CLI with the Azure DevOps extension.
CLI Version: 2.81.0 (current as of 2025)
Prerequisites
# Install Azure CLI
brew install azure-cli # macOS
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash # Linux
# Install Azure DevOps extension
az extension add --name azure-devops
Authentication
# Login with PAT token
az devops login --organization https://dev.azure.com/{org} --token YOUR_PAT_TOKEN
# Set default organization and project (avoids repeating --org/--project)
# Note: Legacy URL https://{org}.visualstudio.com should be replaced with https://dev.azure.com/{org}
az devops configure --defaults organization=https://dev.azure.com/{org} project={project}
# List current configuration
az devops configure --list
CLI Structure
az devops # Main DevOps commands
├── admin # Administration (banner)
├── extension # Extension management
├── project # Team projects
├── security # Security operations
│ ├── group # Security groups
│ └── permission # Security permissions
├── service-endpoint # Service connections
├── team # Teams
├── user # Users
├── wiki # Wikis
├── configure # Set defaults
├── invoke # Invoke REST API
├── login # Authenticate
└── logout # Clear credentials
az pipelines # Azure Pipelines
├── agent # Agents
├── build # Builds
├── folder # Pipeline folders
├── pool # Agent pools
├── queue # Agent queues
├── release # Releases
├── runs # Pipeline runs
├── variable # Pipeline variables
└── variable-group # Variable groups
az boards # Azure Boards
├── area # Area paths
├── iteration # Iterations
└── work-item # Work items
az repos # Azure Repos
├── import # Git imports
├── policy # Branch policies
├── pr # Pull requests
└── ref # Git references
az artifacts # Azure Artifacts
└── universal # Universal Packages
Reference Files
Read the relevant reference file based on the user's task. Each file contains complete command syntax and examples for its domain.
| File | When to read | Covers |
|---|---|---|
references/repos-and-prs.md | Repos, branches, pull requests, branch policies | Repositories, Import, PRs (create/list/vote/reviewers/policies), Git refs, Branch policies |
references/pipelines-and-builds.md | Pipelines, builds, releases, artifacts | Pipelines CRUD, runs, builds, releases, artifacts download/upload |
references/boards-and-iterations.md | Work items, sprints, area paths | Work items (WIQL/create/update/relations), Area paths, Iterations, Team iterations |
references/variables-and-agents.md | Pipeline variables, agent pools | Pipeline variables, Variable groups, Pipeline folders, Agent pools/queues |
references/org-and-security.md | Projects, teams, users, permissions, wikis | Projects, Extensions, Teams, Users, Security groups/permissions, Service endpoints, Wikis, Admin |
references/advanced-usage.md | Output formatting, JMESPath queries | Output formats, JMESPath queries (basic + advanced), Global args, Common params, Git aliases |
references/workflows-and-patterns.md | Automation scripts, best practices, error handling | Common workflows, Best practices, Error handling, Scripting patterns, Real-world examples |
Related skills
More from github/awesome-copilot and the wider catalog.
git-commit
Execute semantic git commits with conventional message analysis and intelligent staging.
excalidraw-diagram-generator
Generate Excalidraw diagrams from natural language descriptions.
documentation-writer
Create structured technical documentation using the Diátaxis framework for tutorials, how-to guides, references, and explanations.
gh-cli
GitHub CLI comprehensive reference for repositories, issues, PRs, Actions, projects, releases, and all GitHub operations from the command line.
prd
Generate comprehensive Product Requirements Documents with executive summaries, user stories, technical specs, and risk analysis.
refactor
Surgical code refactoring to improve maintainability without changing behavior.