Azure Devops CLI
GitHubOfficialFirst committed by AungMyoKyawDistributed by GitHub
- Skill
- Tool integration
- Cloud and DevOps
- MIT
- Low risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The Azure DevOps CLI extension enables developers and DevOps engineers to interact with Azure DevOps services through the Azure CLI. It provides a comprehensive command set for managing projects, repositories, pull requests, pipelines, work items, and security configurations. By supporting various output formats and advanced JMESPath querying, it allows for efficient data extraction and integration into shell-based automation scripts.
What it does
- Manage projects, teams, and security permissions.
- Create, update, and query work items and board configurations.
- Handle Git repositories, pull requests, and branch policies.
- Control CI/CD pipelines, builds, releases, and agent pools.
- Query and filter resource data using JMESPath.
- Configure default organization and project settings for streamlined workflows.
When to use it
- Automating repetitive Azure DevOps tasks via shell scripts.
- Managing board items or pipeline configurations without a browser.
- Integrating Azure DevOps data into custom reporting or monitoring tools.
- Performing bulk updates or administrative tasks across multiple projects.
Advantages
- Enables scriptable, repeatable DevOps workflows.
- Reduces context switching by staying in the terminal.
- Supports powerful data filtering and transformation via JMESPath.
- Flexible output formats including JSON, YAML, and table views.
Usage examples
- “How do I list all active work items assigned to me?”
- The agent provides the 'az boards query' command with a WIQL string filtering by current user and active state.
- “Show me the last 5 successful pipeline runs in table format.”
- The agent demonstrates using 'az pipelines runs list' combined with a JMESPath query and '--output table'.
- “How can I create a new bug work item from the CLI?”
- The agent provides the 'az boards work-item create' command syntax with parameters for title, type, and description.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/github/azure-devops-cli/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip azure-devops-cli.zip -d .agents/skills
Documentation by AungMyoKyaw
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-devopsAuthentication
# 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 --listCLI 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 PackagesReference 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) |
Files
- ATTRIBUTION.mdAdded by AutoGineer871 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md4.2 KiB
- references/advanced-usage.md5.3 KiB
- references/boards-and-iterations.md6.0 KiB
- references/long-comments-on-windows.md3.1 KiB
- references/org-and-security.md9.0 KiB
- references/pipelines-and-builds.md4.7 KiB
- references/repos-and-prs.md6.6 KiB
- references/variables-and-agents.md3.7 KiB
- references/workflows-and-patterns.md16.0 KiB
references/org-and-security.md
Organization, Security & Administration
Table of Contents
Projects
Extension Management
Service Endpoints
Teams
Users
Security Groups
Security Permissions
Wikis
Administration
DevOps Extensions
Projects
List Projects
az devops project list --organization https://dev.azure.com/{org}
az devops project list --top 10 --output tableCreate Project
az devops project create \
--name myNewProject \
--organization https://dev.azure.com/{org} \
--description "My new DevOps project" \
--source-control git \
--visibility privateShow Project Details
az devops project show --project {project-name} --org https://dev.azure.com/{org}Delete Project
az devops project delete --id {project-id} --org https://dev.azure.com/{org} --yesExtension Management
List Extensions
# List available extensions
az extension list-available --output table
# List installed extensions
az extension list --output tableManage Azure DevOps Extension
# Install Azure DevOps extension
az extension add --name azure-devops
# Update Azure DevOps extension
az extension update --name azure-devops
# Remove extension
az extension remove --name azure-devops
# Install from local path
az extension add --source ~/extensions/azure-devops.whlService Endpoints
List Service Endpoints
az devops service-endpoint list --project {project}
az devops service-endpoint list --project {project} --output tableShow Service Endpoint
az devops service-endpoint show --id {endpoint-id} --project {project}Create Service Endpoint
# Using configuration file
az devops service-endpoint create --service-endpoint-configuration endpoint.json --project {project}Delete Service Endpoint
az devops service-endpoint delete --id {endpoint-id} --project {project} --yesTeams
List Teams
az devops team list --project {project}Show Team
az devops team show --team {team-name} --project {project}Create Team
az devops team create \
--name {team-name} \
--description "Team description" \
--project {project}Update Team
az devops team update \
--team {team-name} \
--project {project} \
--name "{new-team-name}" \
--description "Updated description"Delete Team
az devops team delete --team {team-name} --project {project} --yesShow Team Members
az devops team list-member --team {team-name} --project {project}Users
List Users
az devops user list --org https://dev.azure.com/{org}
az devops user list --top 10 --output tableShow User
az devops user show --user {user-id-or-email} --org https://dev.azure.com/{org}Add User
az devops user add \
--email [email protected] \
--license-type express \
--org https://dev.azure.com/{org}Update User
az devops user update \
--user {user-id-or-email} \
--license-type advanced \
--org https://dev.azure.com/{org}Remove User
az devops user remove --user {user-id-or-email} --org https://dev.azure.com/{org} --yesSecurity Groups
List Groups
# List all groups in project
az devops security group list --project {project}
# List all groups in organization
az devops security group list --scope organization
# List with filtering
az devops security group list --project {project} --subject-types vstsgroupShow Group Details
az devops security group show --group-id {group-id}Create Group
az devops security group create \
--name {group-name} \
--description "Group description" \
--project {project}Update Group
az devops security group update \
--group-id {group-id} \
--name "{new-group-name}" \
--description "Updated description"Delete Group
az devops security group delete --group-id {group-id} --yesGroup Memberships
# List memberships
az devops security group membership list --id {group-id}
# Add member
az devops security group membership add \
--group-id {group-id} \
--member-id {member-id}
# Remove member
az devops security group membership remove \
--group-id {group-id} \
--member-id {member-id} --yesSecurity Permissions
List Namespaces
az devops security permission namespace listShow Namespace Details
# Show permissions available in a namespace
az devops security permission namespace show --namespace "GitRepositories"List Permissions
# List permissions for user/group and namespace
az devops security permission list \
--id {user-or-group-id} \
--namespace "GitRepositories" \
--project {project}
# List for specific token (repository)
az devops security permission list \
--id {user-or-group-id} \
--namespace "GitRepositories" \
--project {project} \
--token "repoV2/{project}/{repository-id}"Show Permissions
az devops security permission show \
--id {user-or-group-id} \
--namespace "GitRepositories" \
--project {project} \
--token "repoV2/{project}/{repository-id}"Update Permissions
# Grant permission
az devops security permission update \
--id {user-or-group-id} \
--namespace "GitRepositories" \
--project {project} \
--token "repoV2/{project}/{repository-id}" \
--permission-mask "Pull,Contribute"
# Deny permission
az devops security permission update \
--id {user-or-group-id} \
--namespace "GitRepositories" \
--project {project} \
--token "repoV2/{project}/{repository-id}" \
--permission-mask 0Reset Permissions
# Reset specific permission bits
az devops security permission reset \
--id {user-or-group-id} \
--namespace "GitRepositories" \
--project {project} \
--token "repoV2/{project}/{repository-id}" \
--permission-mask "Pull,Contribute"
# Reset all permissions
az devops security permission reset-all \
--id {user-or-group-id} \
--namespace "GitRepositories" \
--project {project} \
--token "repoV2/{project}/{repository-id}" --yesWikis
List Wikis
# List all wikis in project
az devops wiki list --project {project}
# List all wikis in organization
az devops wiki listShow Wiki
az devops wiki show --wiki {wiki-name} --project {project}
az devops wiki show --wiki {wiki-name} --project {project} --openCreate Wiki
# Create project wiki
az devops wiki create \
--name {wiki-name} \
--project {project} \
--type projectWiki
# Create code wiki from repository
az devops wiki create \
--name {wiki-name} \
--project {project} \
--type codeWiki \
--repository {repo-name} \
--mapped-path /wikiDelete Wiki
az devops wiki delete --wiki {wiki-id} --project {project} --yesWiki Pages
# List pages
az devops wiki page list --wiki {wiki-name} --project {project}
# Show page
az devops wiki page show \
--wiki {wiki-name} \
--path "/page-name" \
--project {project}
# Create page
az devops wiki page create \
--wiki {wiki-name} \
--path "/new-page" \
--content "# New Page\n\nPage content here..." \
--project {project}
# Update page
az devops wiki page update \
--wiki {wiki-name} \
--path "/existing-page" \
--content "# Updated Page\n\nNew content..." \
--project {project}
# Delete page
az devops wiki page delete \
--wiki {wiki-name} \
--path "/old-page" \
--project {project} --yesAdministration
Banner Management
# List banners
az devops admin banner list
# Show banner details
az devops admin banner show --id {banner-id}
# Add new banner
az devops admin banner add \
--message "System maintenance scheduled" \
--level info # info, warning, error
# Update banner
az devops admin banner update \
--id {banner-id} \
--message "Updated message" \
--level warning \
--expiration-date "2025-12-31T23:59:59Z"
# Remove banner
az devops admin banner remove --id {banner-id}DevOps Extensions
Manage extensions installed in an Azure DevOps organization (different from CLI extensions).
# List installed extensions
az devops extension list --org https://dev.azure.com/{org}
# Search marketplace extensions
az devops extension search --search-query "docker"
# Show extension details
az devops extension show --ext-id {extension-id} --org https://dev.azure.com/{org}
# Install extension
az devops extension install \
--ext-id {extension-id} \
--org https://dev.azure.com/{org} \
--publisher {publisher-id}
# Enable extension
az devops extension enable \
--ext-id {extension-id} \
--org https://dev.azure.com/{org}
# Disable extension
az devops extension disable \
--ext-id {extension-id} \
--org https://dev.azure.com/{org}
# Uninstall extension
az devops extension uninstall \
--ext-id {extension-id} \
--org https://dev.azure.com/{org} --yesRequirements and compatibility
Written for: GitHub Copilot
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs network access, Needs a command-line tool
Security
What our scanner noticed· Low risk
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- First committed by
AungMyoKyaw
- Publisher
- GitHub (Official)
- Distributed by
- GitHub
- Source
- github/awesome-copilot · skills/azure-devops-cli · commit 797337f
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Contributors
- fondoger, AungMyoKyaw, KomalSrinivasan, alexvago
AutoGineer is not affiliated with or endorsed by AungMyoKyaw or GitHub.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download azure-devops-cli.zip