Azure DevOps Integration¶
Complete Azure DevOps automation tools for boards, repositories, pipelines, and artifacts.
What It Does¶
Provides CLI tools and AI guidance for:
- Work Items (Boards) - Create, update, query, and manage work items
- Repositories - List repos and create pull requests
- Pipelines - Trigger builds and monitor execution (via az CLI)
- Artifacts - Manage package feeds and versions (via az CLI)
For AI Agents¶
See ~/.amplihack/.claude/skills/azure-devops/SKILL.md for complete skill definition with progressive loading references.
For Humans¶
Quick Setup¶
- Install Azure CLI
# macOS
brew install azure-cli
# Windows
winget install Microsoft.AzureCLI
# Linux
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
- Install DevOps Extension
- Login and Configure
az login
az devops configure --defaults \
organization=https://dev.azure.com/YOUR_ORG \
project=YOUR_PROJECT
- Verify Setup
Available Tools¶
All tools are in ~/.amplihack/.claude/scenarios/az-devops-tools/. Run any tool with --help for usage.
Work Item Tools¶
list_work_items.py- Query and filter work itemsget_work_item.py- Get single work item detailscreate_work_item.py- Create new work itemsupdate_work_item.py- Update work item fields/statedelete_work_item.py- Delete work items (with confirmation)link_parent.py- Link parent-child relationshipsquery_wiql.py- Execute custom WIQL querieslist_types.py- Discover work item types and fields
Utility Tools¶
auth_check.py- Verify authentication and configurationformat_html.py- Convert markdown to HTML
Repository Tools¶
list_repos.py- List repositories in projectcreate_pr.py- Create pull requests
Quick Examples¶
Create Work Item¶
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "User Story" \
--title "Implement login" \
--description "Add user authentication"
List My Work Items¶
Create Pull Request¶
python .claude/scenarios/az-devops-tools/create_pr.py \
--source feature/auth \
--target main \
--title "Add authentication"
Philosophy¶
These tools follow clean architecture principles:
- Standard library + Azure CLI - Minimal dependencies
- Self-contained - Each tool is independent and regeneratable
- Clear error messages - Actionable guidance when things fail
- Fail-fast validation - Check prerequisites before operations
Common Workflows¶
0. Run default-workflow with Azure Boards tracking¶
default-workflow detects Azure DevOps remotes and routes Step 03 tracking to
Azure Boards instead of GitHub Issues. Existing work items can be reused with
either issue_number=N or AB#N.
amplihack recipe run default-workflow \
-c remote_host_type=azure-devops \
-c issue_number=12345 \
-c task_description="Address review feedback for the Azure DevOps PR" \
-c repo_path=.
See How to Use the Default Workflow with Azure DevOps for the task-oriented guide and Step 03 Host-Aware Tracking Idempotency for the issue/work-item reuse contract.
1. Create Epic → Feature → Story Hierarchy¶
# Create Epic
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type Epic \
--title "Authentication System"
# Output shows: Created work item #100
# Create Feature under Epic
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type Feature \
--title "OAuth Integration" \
--parent-id 100
# Output shows: Created work item #101
2. Query and Update Workflow¶
# Find my active work items
python .claude/scenarios/az-devops-tools/list_work_items.py \
--state Active \
--assigned-to @me
# Update work item
python .claude/scenarios/az-devops-tools/update_work_item.py \
--id 101 \
--state "In Progress" \
--comment "Starting work"
3. Feature Branch to Pull Request¶
# Create feature branch
git checkout -b feature/oauth main
# ... make changes, commit ...
# Push branch
git push -u origin feature/oauth
# Create PR
python .claude/scenarios/az-devops-tools/create_pr.py \
--source feature/oauth \
--target main \
--title "Add OAuth integration" \
--work-items "101"
Troubleshooting¶
"az: command not found"¶
Install Azure CLI. See Quick Setup above.
"DevOps extension not installed"¶
"Authentication failed"¶
"Invalid work item type"¶
Documentation¶
For detailed AI-facing documentation, see:
~/.amplihack/.claude/skills/azure-devops/authentication.md- Auth setup~/.amplihack/.claude/skills/azure-devops/work-items.md- Work item operations~/.amplihack/.claude/skills/azure-devops/queries.md- WIQL query patterns~/.amplihack/.claude/skills/azure-devops/html-formatting.md- HTML formatting~/.amplihack/.claude/skills/azure-devops/repos.md- Repository operations~/.amplihack/.claude/skills/azure-devops/pipelines.md- Pipeline operations~/.amplihack/.claude/skills/azure-devops/artifacts.md- Artifact management