All skills
github avatar

/azure-devops-cli

@4e8726d official
by githubgithub/awesome-copilot40k stars
5,040

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.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/azure-devops-cli

This session only. Nothing lands on disk.

SKILL.md

β‰ˆ69 tokens always: the name and description. β‰ˆ995 when used: this file. β‰ˆ14k more on demand in 8 files.

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
references/long-comments-on-windows.md Long --discussion, --description, or --content values failing on Windows The cmd.exe 8191 char cap on az.cmd, shell detection, and three verified workarounds (azps.ps1, native --file-path, az devops invoke --in-file)

Source: SKILL.md on GitHub

1 alert14d5 checks Β· Risk SAFE
  • Gen Agent Trust Hub14d

    The skill provides a comprehensive collection of commands and automation patterns for managing Azure DevOps resources through the Azure CLI. It includes standard installation instructions from trusted vendor sources and best practices for handling long arguments and complex queries. The analysis identified the standard attack surface for indirect prompt injection associated with processing external work items and pull requests.

  • Socket14d

    1 alert: gptAnomaly

  • Snyk14d

    Risk: MEDIUM Β· 1 issue

  • Runlayer6mo

    2/8 files flagged

  • ZeroLeaks5mo

    Score: 93/100 Β· 2 sections analyzed

Signed by skilld at 4e8726d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 3 months ago
  • azure-devops
  • azure-cli
  • devops-automation
  • ci-cd
  • pipelines
  • repos
  • work-items
  • azure-artifacts
  • bash

README badge

README badge for github/awesome-copilot/azure-devops-cli

Manages Azure DevOps resources via the Azure CLI including projects, repositories, pipelines, builds, pull requests, work items, and service endpoints. Use when automating Azure DevOps workflows, CI/CD configuration, or resource administration through the `az devops` and `az pipelines` command families.

Generated from the current SKILL.md.

Does this skill work with the legacy Azure DevOps URL format?
The skill supports both formats but recommends the modern https://dev.azure.com/{org} URL. Legacy https://{org}.visualstudio.com URLs should be replaced with the new format.
What authentication method does this skill use?
The skill uses PAT (Personal Access Token) authentication via the az devops login command. You provide your token when logging in to your organization.
Does this cover Azure Pipelines, Repos, Boards, and Artifacts?
Yes. The skill includes commands for managing pipelines, builds, releases, repositories, pull requests, work items, iterations, and universal packages across all four services.
Can I set default organization and project to avoid repeating them in commands?
Yes. Use az devops configure --defaults to set default organization and project, which will apply to subsequent commands unless explicitly overridden.
Does this skill include scripting patterns and automation examples?
Yes. The skill includes a workflows-and-patterns reference file covering automation scripts, best practices, error handling, and real-world examples for CI/CD automation.

Generated from the current SKILL.md. These answers refresh after source changes.