SlideShare a Scribd company logo
7
Most read
9
Most read
11
Most read
twitter: @MithunShanbhag
blog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Execution Hierarchy
1. Execution hierarchy in a YAML pipeline:
• YAML Pipeline
• Stages: [stage1, stage2,… stagen]
• Jobs:[job1, job2,… jobn]
• Steps: [task1, task2,… taskn]
2. Every pipeline has at least one stage & one job even if you don’t explicitly define them.
3. By default, everything executes sequentially*, in the orderdefined.
4. Conditional execution is possible.
5. Dependencies can be explicitly specified.
1. Parallelization, fan-in, fan-out scenarios possible.
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Variables
1. Predefined Variables:
• Agent variables | Build variables |System variables
2. $(var): CustomVariables, in orderof priority:
• Job-level | Stage-level |Root (pipeline) level | Queue-time
3. Using variables in scripts:
1. Batch/Cmd: %VARIABLE_NAME%
2. PowerShell: $env:VARIABLE_NAME
3. Bash: $VARIABLE_NAME
4. Secret Variables can be set at pipeline level using the web editor.
5. Variable Groups allow reuse ofvariablesacross multiple pipelines.
• Variable groupscan loadsecret variablesfrom AzureKeyVault.
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Tasks
1. Task Categories
1. Tool Tasks
2. Build Tasks
3. Test Tasks
4. Package Tasks
5. Deploy Tasks
6. Utility Tasks
2. All built-in tasks areopen-sourced on github.
3. Possible to develop a custom task.
4. Important Considerations:
1. Task versions
2. Task inputs (control options)
3. Task short forms(e.g. - script: is ashort formof –task: @CmdLine@2).
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
DEMO
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Agents & Agent Pools
1. YAML pipeline jobsrun on agents (Microsoft-hosted orself-hosted).
2. Agent pools available bydefault:
• Azure Pipelines: Pool forMicrosoft-hosted agents
• Ubuntu | MacOS | Windows Server |Windows Server Core
• Default: Pool for self-hosted agents.
• Linux | MacOS |Windows
3. You can add more pools (with self-hosted agents) if needed.
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Trigger Types
1. CITriggers
• Triggerwhenever a push is made tospecific branches or aspecific tag is pushed.
• Possible tobatch CIbuilds.
• Use [skip ci]in commit message toskip triggering.
• Specific file paths can be included orexcluded (wildcards aresupported).
2. PRTriggers
• Only supported for GitHub andBitbucket Cloud
• Use branch policies with build validation for AzureRepos (git).
3. Scheduled Triggers
• CRON Expression based triggers for periodic builds/deployments
4. Build Completion Triggers
• Not yet supported in YAML pipelines.
• Once YAMLpipeline created, use classic editor tospecify build completion trigger.
5. NOTE: Can’t use variables in triggers (variables areevaluated only after triggerfires).
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Miscellaneous
1. Environments: “dev”,“staging”,“production” etc.
1. Deployment jobs: Special jobs with lifecycle hooks androllback actions.
2. Approvals
2. Build Labels
3. Service hooks / notifications
4. Parallel Jobs
1. Microsoft-hosted pools:
1. Public projects: 10 free parallel-jobs. No monthly time limits.
2. Private projects: 1 free parallel-job. Limited to30 hrs/month.
2. Self-hosted pools:
1. Public projects: Unlimited parallel jobs.
2. Private projects: 1 free parallel job.
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Integrations With AzureCloud
1. Service Connections
• Connect to Azureusing Service Principal or ManagedIdentity.
2. Built-in Deployment Tasks
• Deploy IaaS,PaaS, serverless, containerized workloads directly toAzure.
3. Microsoft Hosted Agents
• Comes pre-installed with AzureCLI,AzurePowerShell cmdlets &Azure SDKs
4. AzureDevOps Extension for AzureCLI
• az extension add--name azure-devops
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Extensions and Marketplace
1. Extensions for AzureDevOps
1. CodeSearch
2. AWS Tools
2. Extensions for Visual Studio Code
1. AzureTools (pack ofextensions)
2. AzureRepos
3. Extensions for Visual Studio
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
FurtherReading
1. AzurePipelines Documentation:
• Expressions
• Hosted Agents
• Predefined Variables
• Service Connections
• Tasks (github)
• Tasks (reference)
• YAMLSchema
• Awesome AzureDevOps Resources

More Related Content

PPTX
Azure DevOps
PPTX
Azure DevOps CI/CD For Beginners
PPTX
Intro to Azure DevOps
PPTX
Azure dev ops
PPTX
Power of Azure Devops
PDF
Azure DevOps - Azure Guatemala Meetup
PPTX
Continues Integration and Continuous Delivery with Azure DevOps - Deploy Anyt...
PDF
[JAZUG Tohoku Azure DevOps] Azure DevOps
Azure DevOps
Azure DevOps CI/CD For Beginners
Intro to Azure DevOps
Azure dev ops
Power of Azure Devops
Azure DevOps - Azure Guatemala Meetup
Continues Integration and Continuous Delivery with Azure DevOps - Deploy Anyt...
[JAZUG Tohoku Azure DevOps] Azure DevOps

What's hot (20)

PDF
Devops Devops Devops, at Froscon
PPTX
Modern CI/CD Pipeline Using Azure DevOps
PDF
DevOps Best Practices
PDF
Azure DevOps Tutorial | Developing CI/ CD Pipelines On Azure | Edureka
PPTX
Jenkins CI
PDF
Azure DevOps Presentation
PPTX
Microsoft DevOps Solution - DevOps
PPTX
Azure DevOps
PDF
Infrastructure as Code
PDF
Hands-On Introduction to Kubernetes at LISA17
PPTX
Tour of Azure DevOps
PPTX
DevOps Overview
PPTX
Using Azure DevOps to continuously build, test, and deploy containerized appl...
PPTX
The Power of Azure DevOps
PDF
Welcome to Azure Devops
PPTX
Azure DevOps Best Practices Webinar
PPTX
Azure DevOps
PPT
Jenkins Overview
PPTX
Introduction to Azure Pipelines Presentation
PDF
DevOps with GitHub Actions
Devops Devops Devops, at Froscon
Modern CI/CD Pipeline Using Azure DevOps
DevOps Best Practices
Azure DevOps Tutorial | Developing CI/ CD Pipelines On Azure | Edureka
Jenkins CI
Azure DevOps Presentation
Microsoft DevOps Solution - DevOps
Azure DevOps
Infrastructure as Code
Hands-On Introduction to Kubernetes at LISA17
Tour of Azure DevOps
DevOps Overview
Using Azure DevOps to continuously build, test, and deploy containerized appl...
The Power of Azure DevOps
Welcome to Azure Devops
Azure DevOps Best Practices Webinar
Azure DevOps
Jenkins Overview
Introduction to Azure Pipelines Presentation
DevOps with GitHub Actions
Ad

Similar to Azure Pipelines (20)

PPTX
Azure DevOps Training Online | Microsoft Azure DevOps Training
PPTX
End_to_End_DevOps.pptx
PPTX
565847651-Az-400t00a-Enu-Powerpoint-05.pptx
PPTX
Wellington MuleSoft Meetup 2021-02-18
PDF
DWX 2023 - GitHub Actions für Azure-DevOps-Pipelines-Benutzer
PPTX
Azure DevOps for QA Automation
PPTX
Washington DC MuleSoft Meetup: CI/CD Pipeline with MuleSoft and Azure DevOps
DOCX
What are the key features of Azure DevOps and how are they beneficial to the ...
PDF
JUGUtrecht2023 - GithubActions
PPTX
51723dcmulesoftmeetupcicdpipelinewithmulesoftandazure-230612153252-83a189b4.pptx
PPTX
1 - Introduction of Azure DevOps
PPTX
Everything as Code with Azure DevOps
PDF
What is GitOps? How GitOps works? we discuss Key Challanges.
PDF
What is GitOps? How GitOps works? we discuss Key Challanges.
PPTX
Using GitHub Actions to Deploy your Workloads to Azure
PDF
Webinar - Unbox GitLab CI/CD
PDF
DevOps para Open Source com Azure DevOps
PDF
BASTA! 2022 - GitHub Actions für Nutzer der Azure DevOps Pipelines
PPTX
The Brave New World of Continuous Release
PDF
Portable CI wGitLab and Github led by Gavin Pickin.pdf
Azure DevOps Training Online | Microsoft Azure DevOps Training
End_to_End_DevOps.pptx
565847651-Az-400t00a-Enu-Powerpoint-05.pptx
Wellington MuleSoft Meetup 2021-02-18
DWX 2023 - GitHub Actions für Azure-DevOps-Pipelines-Benutzer
Azure DevOps for QA Automation
Washington DC MuleSoft Meetup: CI/CD Pipeline with MuleSoft and Azure DevOps
What are the key features of Azure DevOps and how are they beneficial to the ...
JUGUtrecht2023 - GithubActions
51723dcmulesoftmeetupcicdpipelinewithmulesoftandazure-230612153252-83a189b4.pptx
1 - Introduction of Azure DevOps
Everything as Code with Azure DevOps
What is GitOps? How GitOps works? we discuss Key Challanges.
What is GitOps? How GitOps works? we discuss Key Challanges.
Using GitHub Actions to Deploy your Workloads to Azure
Webinar - Unbox GitLab CI/CD
DevOps para Open Source com Azure DevOps
BASTA! 2022 - GitHub Actions für Nutzer der Azure DevOps Pipelines
The Brave New World of Continuous Release
Portable CI wGitLab and Github led by Gavin Pickin.pdf
Ad

More from Mithun Shanbhag (8)

PPTX
CloudSkew Architecture
PPTX
Terraform on Azure
PPTX
Identity, authentication and authorization
PPTX
Design Patterns for Data Management and Consistency
PPTX
WSL - Windows SubSytem For Linux
PPTX
Creating user-mode debuggers for Windows
PPTX
Crash course in sql
PPTX
Crash course in git and github
CloudSkew Architecture
Terraform on Azure
Identity, authentication and authorization
Design Patterns for Data Management and Consistency
WSL - Windows SubSytem For Linux
Creating user-mode debuggers for Windows
Crash course in sql
Crash course in git and github

Recently uploaded (20)

PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Download FL Studio Crack Latest version 2025 ?
PDF
AutoCAD Professional Crack 2025 With License Key
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
Digital Systems & Binary Numbers (comprehensive )
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Design an Analysis of Algorithms I-SECS-1021-03
Download FL Studio Crack Latest version 2025 ?
AutoCAD Professional Crack 2025 With License Key
Design an Analysis of Algorithms II-SECS-1021-03
Designing Intelligence for the Shop Floor.pdf
Digital Systems & Binary Numbers (comprehensive )
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Reimagine Home Health with the Power of Agentic AI​
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Why Generative AI is the Future of Content, Code & Creativity?
Monitoring Stack: Grafana, Loki & Promtail
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Navsoft: AI-Powered Business Solutions & Custom Software Development
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus

Azure Pipelines

  • 2. twitter: @MithunShanbhagblog: mithunshanbhag.github.io Execution Hierarchy 1. Execution hierarchy in a YAML pipeline: • YAML Pipeline • Stages: [stage1, stage2,… stagen] • Jobs:[job1, job2,… jobn] • Steps: [task1, task2,… taskn] 2. Every pipeline has at least one stage & one job even if you don’t explicitly define them. 3. By default, everything executes sequentially*, in the orderdefined. 4. Conditional execution is possible. 5. Dependencies can be explicitly specified. 1. Parallelization, fan-in, fan-out scenarios possible.
  • 3. twitter: @MithunShanbhagblog: mithunshanbhag.github.io Variables 1. Predefined Variables: • Agent variables | Build variables |System variables 2. $(var): CustomVariables, in orderof priority: • Job-level | Stage-level |Root (pipeline) level | Queue-time 3. Using variables in scripts: 1. Batch/Cmd: %VARIABLE_NAME% 2. PowerShell: $env:VARIABLE_NAME 3. Bash: $VARIABLE_NAME 4. Secret Variables can be set at pipeline level using the web editor. 5. Variable Groups allow reuse ofvariablesacross multiple pipelines. • Variable groupscan loadsecret variablesfrom AzureKeyVault.
  • 4. twitter: @MithunShanbhagblog: mithunshanbhag.github.io Tasks 1. Task Categories 1. Tool Tasks 2. Build Tasks 3. Test Tasks 4. Package Tasks 5. Deploy Tasks 6. Utility Tasks 2. All built-in tasks areopen-sourced on github. 3. Possible to develop a custom task. 4. Important Considerations: 1. Task versions 2. Task inputs (control options) 3. Task short forms(e.g. - script: is ashort formof –task: @CmdLine@2).
  • 6. twitter: @MithunShanbhagblog: mithunshanbhag.github.io Agents & Agent Pools 1. YAML pipeline jobsrun on agents (Microsoft-hosted orself-hosted). 2. Agent pools available bydefault: • Azure Pipelines: Pool forMicrosoft-hosted agents • Ubuntu | MacOS | Windows Server |Windows Server Core • Default: Pool for self-hosted agents. • Linux | MacOS |Windows 3. You can add more pools (with self-hosted agents) if needed.
  • 7. twitter: @MithunShanbhagblog: mithunshanbhag.github.io Trigger Types 1. CITriggers • Triggerwhenever a push is made tospecific branches or aspecific tag is pushed. • Possible tobatch CIbuilds. • Use [skip ci]in commit message toskip triggering. • Specific file paths can be included orexcluded (wildcards aresupported). 2. PRTriggers • Only supported for GitHub andBitbucket Cloud • Use branch policies with build validation for AzureRepos (git). 3. Scheduled Triggers • CRON Expression based triggers for periodic builds/deployments 4. Build Completion Triggers • Not yet supported in YAML pipelines. • Once YAMLpipeline created, use classic editor tospecify build completion trigger. 5. NOTE: Can’t use variables in triggers (variables areevaluated only after triggerfires).
  • 8. twitter: @MithunShanbhagblog: mithunshanbhag.github.io Miscellaneous 1. Environments: “dev”,“staging”,“production” etc. 1. Deployment jobs: Special jobs with lifecycle hooks androllback actions. 2. Approvals 2. Build Labels 3. Service hooks / notifications 4. Parallel Jobs 1. Microsoft-hosted pools: 1. Public projects: 10 free parallel-jobs. No monthly time limits. 2. Private projects: 1 free parallel-job. Limited to30 hrs/month. 2. Self-hosted pools: 1. Public projects: Unlimited parallel jobs. 2. Private projects: 1 free parallel job.
  • 9. twitter: @MithunShanbhagblog: mithunshanbhag.github.io Integrations With AzureCloud 1. Service Connections • Connect to Azureusing Service Principal or ManagedIdentity. 2. Built-in Deployment Tasks • Deploy IaaS,PaaS, serverless, containerized workloads directly toAzure. 3. Microsoft Hosted Agents • Comes pre-installed with AzureCLI,AzurePowerShell cmdlets &Azure SDKs 4. AzureDevOps Extension for AzureCLI • az extension add--name azure-devops
  • 10. twitter: @MithunShanbhagblog: mithunshanbhag.github.io Extensions and Marketplace 1. Extensions for AzureDevOps 1. CodeSearch 2. AWS Tools 2. Extensions for Visual Studio Code 1. AzureTools (pack ofextensions) 2. AzureRepos 3. Extensions for Visual Studio
  • 11. twitter: @MithunShanbhagblog: mithunshanbhag.github.io FurtherReading 1. AzurePipelines Documentation: • Expressions • Hosted Agents • Predefined Variables • Service Connections • Tasks (github) • Tasks (reference) • YAMLSchema • Awesome AzureDevOps Resources

Editor's Notes

  • #3: 3. Jobs in a stage can execute in parallel (as long as you buy extra parallel-jobs/lanes) 4. Out of scope for today’s workshop 5. Out of scope for today’s workshop
  • #5: 1.1. Install platform prerequisites like NodeJS, GoLang, Python, .Net Core etc. Often not needed if using Microsoft-hosted agent. 1.3. For running Selenium. Appium, Chutzpah, xUnit, nUnit etc tests. 1.4. Publish to package registries like NPM, Nuget etc. 1.6. Misc tasks to execute commands & scripts (bash, powershell etc).
  • #9: 4.1.2. Additional parallel-jobs can be purchased.