Bitzu

AZ-400 ยท Maintaining pipelines

Migrating classic pipelines to YAML

Classic build and release pipelines vs YAML, export to YAML, task group to template mapping, stages for release environments, migration path and pitfalls.

Key points

  • Classic build pipelines (designer): Export to YAML in the definition view, not a run.
  • Classic release pipelines: no full export; rebuild as stages, export tasks one by one.
  • Mapping: release stage to YAML stage, task group to template, environment approvals to checks.
  • Pitfalls: redefine classic UI variables; YAML cron uses UTC, classic the organization time zone.
  • Benefits: source control, PR review, caching support.

Source: https://learn.microsoft.com/en-us/azure/devops/pipelines/release/from-classic-pipelines?view=azure-devops

Practice questions

Single choice

Which kind of classic pipeline supports the Export to YAML option?

  1. Classic build pipelines made in the designer
  2. Classic release pipelines with several stages
  3. Task groups on their own
  4. Individual pipeline runs
Show answer

Answer: A. Classic build pipelines made in the designer

Only classic build pipelines created with the designer can be exported to YAML. Classic release pipelines do not support YAML export.

Select all that apply

Which tasks belong on your checklist when moving a classic pipeline to YAML?

  1. Redefine variables that were set in the classic UI
  2. Review cron schedules because YAML uses UTC
  3. Export release tasks individually and rebuild stages in YAML
  4. Expect all classic variables to appear in YAML automatically
  5. Expect a classic release to export as one multi-stage file
Show answer

Answer: A. Redefine variables that were set in the classic UI, B. Review cron schedules because YAML uses UTC, C. Export release tasks individually and rebuild stages in YAML

Variables defined in the classic UI must be redefined, cron schedules must be reviewed because of UTC, and classic releases have to be rebuilt by exporting tasks individually. Nothing is migrated silently, and secrets are not carried over for you.

True or false

A classic release pipeline can be exported to a complete multi-stage YAML pipeline with the Export to YAML command.

Show answer

Answer: False

False. Classic release pipelines do not support YAML export; you export each task individually and build the stages yourself.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More AZ-400 topics in this module