Quick Notes206 words

Checks and approvals with YAML environments — quick notes

Checks and approvals — quick notes

FactDetail
Who defines checksThe resource owner, not the pipeline author
Where they attachEnvironments · service connections · agent pools · variable groups · secure files · repositories
Category order1 Static → 2 Pre-check approvals → 3 Dynamic → 4 Post-check approvals → 5 Exclusive lock
Static checksBranch control · Required template · Evaluate artifact
Dynamic checksApproval · Azure Function · REST API · Business Hours · Query Azure Monitor alerts
Within a categoryRun in creation order
Timeout reachedStage does not execute
Rejected approvalTerminal — stage does not execute
Enforce a mandatory templateRequired template check
Prevent concurrent releasesExclusive lock
Lock behavior omittedrunLatest — only the latest waiting run acquires the lock
lockBehavior: sequentialEvery waiting run acquires the lock in turn

Traps

  1. Conditions are author-side; checks are resource-owner-side.
  2. Exclusive lock is last, not first.
  3. "Required template" is a check — the enforcement partner of extends:.

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