Azure DevOps Cheat Sheet
Key concepts and YAML pipeline syntax for Azure DevOps Boards, Repos, and Pipelines used in CI/CD workflows.
2 PagesIntermediateFeb 15, 2026
Basic YAML Pipeline
Minimal build pipeline definition.
yaml
trigger: - mainpool: vmImage: 'ubuntu-latest'steps: - task: UseNode@2 inputs: version: '18.x' - script: npm ci displayName: 'Install dependencies' - script: npm test displayName: 'Run tests'
Multi-Stage Pipeline
Build and deploy stages with dependencies.
yaml
stages: - stage: Build jobs: - job: BuildJob steps: - script: npm run build - stage: Deploy dependsOn: Build condition: succeeded() jobs: - deployment: DeployWeb environment: 'production' strategy: runOnce: deploy: steps: - script: echo Deploying...
Variables & Templates
Reusable pipeline variables and templates.
yaml
variables: buildConfiguration: 'Release'extends: template: templates/build-template.yml parameters: configuration: $(buildConfiguration)
Azure DevOps CLI (az boards/repos/pipelines)
Common az devops extension commands.
- az extension add --name azure-devops- Install the CLI extension
- az devops configure --defaults organization=<url> project=<name>- Set default org/project
- az boards work-item create --title "Bug" --type Bug- Create a work item
- az repos pr create --source-branch feature --target-branch main- Open a pull request
- az pipelines run --name MyPipeline- Trigger a pipeline run
Core Concepts
Key core concepts to know.
- Boards- Work item tracking (Epics, Features, User Stories, Bugs, Tasks)
- Repos- Git repositories hosted natively with PR and branch policies
- Pipelines- YAML or classic CI/CD build and release automation
- Artifacts- Package feeds for npm, NuGet, Maven, and Python packages
- Environment- Deployment target (e.g. production) with approvals and checks
Pro Tip
Use 'templates:' to extract shared pipeline steps into a separate YAML file so multiple pipelines stay consistent and DRY instead of copy-pasting stages.
Was this cheat sheet helpful?
Explore Topics
#AzureDevOps#AzureDevOpsCheatSheet#CloudComputing#Intermediate#BasicYAMLPipeline#MultiStagePipeline#VariablesTemplates#Azure#DevOps#CheatSheet#SkillVeris
Advertisement
Sri Hayavadhana Info-Tech
Professional Web Designing Services
- Responsive Websites
- E-commerce Solutions
- SEO Friendly Design
- Fast & Secure
- Support & Maintenance