An organisation still runs several classic editor-based build and release definitions and wants to migrate them to YAML so the pipeline lives in source control and is reviewed through pull requests. The lead wants a starting point that reproduces the existing classic build steps rather than authoring the YAML entirely from scratch. Which Azure DevOps feature gives them that starting point?
- AEnable the YAML preview toggle in the classic release pipeline, which converts each release stage into a deployment job and replaces the classic definition with YAML in place automatically.
- BRun the migrate command in the Azure CLI devops extension against the definition, which rewrites the classic build into YAML and deletes the original definition once the new file is committed.
- CUse the export to YAML action on the classic build definition, which generates an equivalent YAML pipeline file the team can commit and refine, reproducing the existing steps as a migration starting point. Correct
- DImport the classic definition into a task group, then reference that task group from a new YAML pipeline, because a task group is the supported bridge that carries classic steps into YAML unchanged.
Why A is wrong: There is no in-place toggle that rewrites a classic release pipeline into YAML automatically, and classic releases in particular have no direct export, so this describes a conversion path that does not exist.
Why B is wrong: The Azure DevOps CLI has no command that rewrites a classic definition into YAML and removes the original, so this invents tooling and a destructive behaviour that the product does not provide.
Why C is correct: Classic build definitions offer an export-to-YAML action that emits an equivalent pipeline file mirroring the configured tasks, giving the team the source-controlled starting point they want instead of writing the YAML by hand.
Why D is wrong: Task groups are a classic-only reuse mechanism and are not consumable from YAML pipelines, so this points at a feature that cannot bridge into YAML and would not reproduce the build as YAML.