Quick Notes255 words

YAML pipelines — quick notes

YAML pipelines — quick notes

FactDetail
Hierarchypipeline → stages → jobs → steps
Job default orderparallel; dependsOn creates the graph/order
Stage default ordersequential
Agent-pool jobSteps run sequentially on one assigned agent; server jobs are agentless
Classic release pipelinesJob dependencies not supported; jobs run in sequence
Custom conditionreplaces implicit succeeded()
always()True after cancellation, but cannot run inside a skipped parent
Deployment strategiesrunOnce, rolling, canary
rollingVM-only; phases iterate per maxParallel batch, steps execute per VM target
Hook orderpreDeploydeployrouteTrafficpostRouteTrafficon:
template:Composes by inserting content
extends:Constrains consumer structure
EnforcementRequired template check on a protected resource enforces extends: adoption
Template parameter typesstring, number, boolean, object, step/stepList, job/jobList, deployment/deploymentList, stage/stageList; no stringList in templates

Traps

  1. “Jobs run top to bottom” is false in YAML but true in classic release.
  2. always() survives cancellation only within a parent that is scheduled.
  3. Rolling has three batches for six VMs at two per batch, but a per-VM step runs six times.
  4. Bare extends: constrains a consumer that uses it; the protected-resource check enforces use.

Primary sources

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free