ado-pipelines-ops
Skill0 starsChanged 8 months agoMITView on GitHub
Use when managing Azure DevOps pipeline infrastructure — self-hosted agent pools, service connections, variable groups, secure files, environments, approvals, and pipeline resource governance.
In this repository190 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-auditSkill
- accessibility-complianceSkill
- ado-api-cliSkill
- ado-artifactsSkill
- ado-container-deploymentsSkill
- ado-organizationSkill
- ado-pipeline-designSkill
- ado-pipeline-optimizationSkill
- ado-pipeline-securitySkill
- ado-release-managementSkill
- ado-security-policiesSkill
- ado-work-trackingSkill
- adr-writingSkill
- agentic-ai-patternsSkill
- agentic-evalSkill
- agentic-memorySkill
- agentic-reliabilitySkill
- agentic-securitySkill
- ai-data-moatSkill
- ai-harnessSkill
- ai-product-designSkill
- ai-product-monetizationSkill
- ai-product-positioningSkill
- ai-product-retentionSkill
- ai-product-validationSkill
- ai-safety-guardrailsSkill
- add-analytics-instrumentationSkill
- analyze-account-healthSkill
- analyze-ai-topicsSkill
- analyze-chartSkill
- analyze-dashboardSkill
- analyze-experimentSkill
- analyze-feedbackSkill
- compare-user-journeysSkill
- create-chartSkill
- create-dashboardSkill
- daily-briefSkill
- debug-replaySkill
- diagnose-errorsSkill
- diff-intakeSkill
- discover-analytics-patternsSkill
- discover-event-surfacesSkill
- discover-opportunitiesSkill
- instrument-eventsSkill
- investigate-ai-sessionSkill
- monitor-ai-qualitySkill
- monitor-reliabilitySkill
- replay-ux-auditSkill
- review-agent-insightsSkill
- taxonomySkill
- weekly-briefSkill
- what-would-lenny-doSkill
- analytics-reportingSkill
- api-contract-testingSkill
- api-designSkill
- authentication-patternsSkill
- blockchain-auditSkill
- brainstormingSkill
- brand-voiceSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 143
No approval gates on production deployments
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ADO Pipelines Operations & Infrastructure
When to Use
- Setting up self-hosted agent pools and registering agents
- Creating and managing service connections (Azure, GitHub, Docker, etc.)
- Managing variable groups and secure files (Library)
- Configuring deployment environments with approvals and checks
- Auditing and governing pipeline resource access
Core Jobs
1. Agent Pool Management
# List agent pools
az pipelines agent pool list --org https://dev.azure.com/MyOrg --output table
# List agents in pool
az pipelines agent list \
--pool-id 5 \
--org https://dev.azure.com/MyOrg \
--output tableSelf-hosted agent registration:
# Download agent, then configure
./config.sh \
--url https://dev.azure.com/MyOrg \
--auth pat \
--token $PAT \
--pool "SelfHosted-Linux" \
--agent "agent-01" \
--unattended
# Install as service
sudo ./svc.sh install
sudo ./svc.sh startAgent pool types:
- Microsoft-hosted — managed, fresh VM per job, no maintenance, costs per parallel job
- Self-hosted — your VMs, full control, pre-installed tools, behind firewall access, no per-minute cost
- Scale set agents — Azure VMSS auto-scales based on demand (best of both)
2. Service Connections
# Create Azure Resource Manager service connection
az devops service-endpoint azurerm create \
--azure-rm-service-principal-id $SP_ID \
--azure-rm-subscription-id $SUB_ID \
--azure-rm-subscription-name "Production" \
--azure-rm-tenant-id $TENANT_ID \
--name "Azure-Production" \
--project MyProject
# List service connections
az devops service-endpoint list --project MyProject --output tableService connection types and use cases:
| Type | Use case |
| Azure Resource Manager | Deploy to Azure (App Service, AKS, etc.) |
| Docker Registry | Push/pull container images |
| GitHub | Checkout private repos, trigger from GitHub |
| Kubernetes | Deploy to AKS/any cluster |
| Generic | Custom REST APIs, webhooks |
Security: Grant "Project Collection Build Service" only — not broad contributor access.
3. Library — Variable Groups & Secure Files
# Create variable group
az pipelines variable-group create \
--name "Production-Config" \
--variables ENV=prod DB_HOST=prod.db.company.com \
--project MyProject
# Add secret variable
az pipelines variable-group variable create \
--group-id 5 \
--name "DB_PASSWORD" \
--value "secret123" \
--secret true \
--project MyProjectLink to Azure Key Vault:
- Variable group → Link secrets from Azure Key Vault → select secrets
- Requires service connection with Key Vault access
- Secrets auto-refresh on pipeline run
4. Environments & Approvals
# Create environment
az pipelines environment create \
--name "production" \
--project MyProjectAdd approval check via UI: Environment → Approvals and checks → Add → Approvals
- Set approvers, timeout (default 30 days), instructions
- Allow pipeline to self-approve: disable for prod
Environment resources: VMs and Kubernetes clusters can be registered as resources for deployment target tracking.
Key Concepts
- Agent pool — collection of agents that can run pipeline jobs
- Service connection — authenticated connection to external service (Azure, Docker, GitHub)
- Variable group — shared variables across multiple pipelines (vs pipeline-specific variables)
- Secure file — binary files (certificates, provisioning profiles) stored encrypted
- Environment — logical target (dev/staging/prod) with history, approvals, and resource tracking
- Scale set agents — auto-scaling agent pool backed by Azure VMSS
Checklist
- Self-hosted agents using service account (not personal user)?
- Service connections using service principal (not personal PAT)?
- Service principal has minimum required permissions only?
- Secrets in Key Vault-linked variable group (not hardcoded in pipeline)?
- Production environment has approval gates?
- Agent capabilities documented (for pool selection in pipeline YAML)?
Key Outputs
- Agent pools registered and agents online
- Service connections created with least-privilege service principals
- Variable groups with Key Vault linking for secrets
- Environments with approvals for production
Output Format
- 🔴 Critical — service connection using personal PAT (breaks on offboarding), no approval on production environment, secrets hardcoded in pipeline YAML
- 🟡 Warning — all pipelines using single service connection (no isolation), no environment resource tracking, variable groups without Key Vault
- 🟢 Suggestion — use scale set agents for variable workloads, link variable groups to Key Vault, add Exclusive Lock check for sequential deployments
Anti-Patterns
- Service connections using personal user credentials (offboarding breaks pipelines)
- Granting service principal Owner role (least-privilege: Contributor on specific RG)
- Secrets in pipeline variables instead of Key Vault-linked variable groups
- No approval gates on production deployments
- Running pipeline agents as root/admin (security risk)
Integration
ado-security-policies— control who can create/modify service connections and pipeline resourcesado-api-cli— automate service connection creation and variable group managementazure-devops-pipelines— YAML authoring that consumes the infrastructure set up here
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

