PluginBench
Skill
Official
Fail
Audit score 45

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
Prerequisites
  • 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
Claude Code
Cursor
Windsurf
Cline

How to use azure-devops-cli

  1. 1.Install Azure CLI and the Azure DevOps extension using the provided commands
  2. 2.Authenticate with your organization using `az devops login` and a PAT token
  3. 3.Configure default organization and project with `az devops configure --defaults`
  4. 4.Read the relevant reference file based on your task (repos, pipelines, boards, etc.)
  5. 5.Execute the appropriate `az` command for your resource (e.g., `az repos pr create`, `az pipelines run`)
  6. 6.Use output formatting and JMESPath queries for advanced filtering and scripting

Use cases

Good for
  • 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
Who it's for
  • 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

What authentication method does Azure DevOps CLI use?

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.

How do I avoid repeating --org and --project flags in every command?

Use `az devops configure --defaults organization=<url> project=<name>` to set defaults, then omit these flags from subsequent commands.

What reference files are available for different tasks?

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.

Can I automate complex DevOps workflows with this skill?

Yes. The skill includes scripting patterns, error handling, and JMESPath query support for filtering and transforming output in automation scripts.

Does this skill support both legacy and modern Azure DevOps URLs?

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.

FileWhen to readCovers
references/repos-and-prs.mdRepos, branches, pull requests, branch policiesRepositories, Import, PRs (create/list/vote/reviewers/policies), Git refs, Branch policies
references/pipelines-and-builds.mdPipelines, builds, releases, artifactsPipelines CRUD, runs, builds, releases, artifacts download/upload
references/boards-and-iterations.mdWork items, sprints, area pathsWork items (WIQL/create/update/relations), Area paths, Iterations, Team iterations
references/variables-and-agents.mdPipeline variables, agent poolsPipeline variables, Variable groups, Pipeline folders, Agent pools/queues
references/org-and-security.mdProjects, teams, users, permissions, wikisProjects, Extensions, Teams, Users, Security groups/permissions, Service endpoints, Wikis, Admin
references/advanced-usage.mdOutput formatting, JMESPath queriesOutput formats, JMESPath queries (basic + advanced), Global args, Common params, Git aliases
references/workflows-and-patterns.mdAutomation scripts, best practices, error handlingCommon workflows, Best practices, Error handling, Scripting patterns, Real-world examples