🔷
CI/CD & GitOps

Azure DevOps Pipelines

Microsoft CI/CD for Azure and multi-cloud deploys

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

Azure DevOps Pipelines builds and deploys code on Microsoft-hosted or self-hosted agents.

📁

Config files for Azure DevOps Pipelines

Where to create or edit the main configuration — paths below match the setup steps.

  • azure-pipelines.yml

    Location: Repository root (or path set in Azure DevOps UI)

    Triggers, pool, and build/deploy steps

📥

Step 01

Install Azure DevOps Pipelines

(01)Install Azure DevOps Pipelines

Linux
1# Install Azure DevOps CLI extension
2az extension add --name azure-devops
3az devops configure --defaults organization=https://dev.azure.com/YOUR_ORG project=YOUR_PROJECT
⚙️

Step 02

Configure Azure DevOps Pipelines

(01)Add azure-pipelines.yml to repo root

Azure DevOps reads azure-pipelines.yml from the repository root (unless overridden in project settings).

Linux
1# From repo root — same level as README:
2cat > azure-pipelines.yml << 'EOF'
3trigger:
4 - main
5pool:
6 vmImage: ubuntu-latest
7steps:
8 - task: NodeTool@0
9 inputs:
10 versionSpec: "20.x"
11 - script: npm ci && npm test
12 displayName: npm install and test
13EOF
14git add azure-pipelines.yml && git commit -m "Add Azure Pipeline" && git push

Step 03

Verify

(01)Verify installation

Linux
1az pipelines list