BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Checks and approvals with YAML environments
Lesson368 words

Checks and approvals with YAML environments

Design and implement checks and approvals by using YAML-based environments

Conditions let the pipeline author decide whether a stage runs. Checks let the resource owner decide whether a stage may consume their resource. That ownership split is the concept the exam tests.

Where checks attach

Checks are configured on resources, not on pipelines:

  • Environments
  • Service connections
  • Agent pools
  • Variable groups
  • Secure files

A manual approval on the production environment therefore governs every pipeline that deploys to it, including one written by a team that has never seen your approval policy.

The five categories, in order

Loading Diagram...
Figure 1 — Mermaid diagram

Within a category, checks run in the order they were created. Checks are re-evaluated on each check's retry interval, and if they have not all succeeded before the timeout, the stage does not execute. A terminal failure — someone rejecting an approval — stops the stage immediately.

Checks worth knowing by name

CheckWhat it enforces
Branch controlThe deployment may only come from permitted branches
Required templateThe pipeline must extend a specified template — the technical enforcement behind "every pipeline must use our secure template"
Business hoursDeployment only within a stated window
Exclusive lockOnly one run at a time may proceed to the resource
Invoke Azure Function / REST APIGate on an external system's answer
Query Azure Monitor alertsBlock the deployment if the target is currently alerting

Exclusive lock runs last and is what prevents two concurrent releases from colliding on the same environment.

Environments give you more than a gate

An environment also provides deployment history per target and the resource records (VMs, Kubernetes namespaces) that strategies like rolling operate on. That is why deployment jobs target environments while ordinary jobs do not.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/process/environments
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.

Loading Diagram...
Flowchart, top to bottom. 1. Static checks<br/>Branch control · Required template · Evaluate artifact connects to 2. Pre-check approvals. B connects to 3. Dynamic checks<br/>Approval · Azure Function · REST API<br/>Business Hours · Query Azure Monitor alerts. C connects to 4. Post-check approvals. D connects to 5. Exclusive lock.