BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Reusable pipeline elements
Lesson261 words

Reusable pipeline elements

Create reusable pipeline elements

The objective lists templates, task groups, variables and variable groups. One of those four is a trap.

Task groups are classic-only

Task groups are not supported in YAML pipelines. Use templates instead.

If a scenario says "YAML" and an option says "task group", that option is wrong. Task groups remain valid in classic build and release pipelines, which is why they still appear in the objective at all.

Templates: compose or constrain

yaml
# Compose — insert content into my pipeline steps: - template: templates/build-steps.yml parameters: { vmImage: ubuntu-latest } # Constrain — the template governs what I may do extends: template: templates/secure.yml parameters: buildSteps: [ { script: npm ci } ]

Typed parameters (string, object, stepList, jobList, stageList) are what make extends an enforceable control rather than a convention.

Variables and variable groups

ScopeWhere
Pipeline / stage / job variablevariables: in the YAML
Shared across pipelinesVariable group in the Library
Backed by a vaultVariable group linked to Azure Key Vault

The security detail worth knowing:

Secret variables in a variable group are protected resources — you can attach approvals, checks and pipeline permissions to them. Access to non-secret variables is not limited by approvals, checks or pipeline permissions.

So "we put the connection string in a variable group and added an approval" only constrains anything if that variable is marked secret.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/pipelines/process/templates
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/library/variable-groups
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/release/task-groups
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure421 words
  • Agent and runner infrastructure — quick notes150 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels217 words
  • Appropriate access levels — quick notes85 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words

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

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

Start Studying

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
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.