AZ-400 ยท Reusable pipelines and approvals
Approvals and checks on resources
Azure Pipelines environments and resources, approvals and checks (branch control, business hours, exclusive lock, required template), deployment jobs; GitHub environments with required reviewers and wait timers.
Key points
- Approvals and checks: set by resource owners in the web UI, not YAML (environments, service connections, repos, variable groups, secure files, agent pools).
- All checks on a stage's resources must pass first.
- Order: static (branch control, required template, evaluate artifact), pre-check approvals, dynamic (e.g. business hours), post-check approvals, exclusive lock.
- GitHub: environments with required reviewers, wait timers, branch rules.
Source: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops
Practice questions
Where are approvals and checks for an Azure Pipelines environment defined?
- In the pipeline YAML under the stage
- On the environment itself, in the Approvals and checks tab
- In a variable group linked to the pipeline
- In the agent pool capabilities list
Show answer
Answer: B. On the environment itself, in the Approvals and checks tab
They are owned by the resource administrator in the web UI under Approvals and checks, so people editing the YAML cannot weaken them. They are not YAML keys or variable group entries.
Which of these are static checks, evaluated before approvals and dynamic checks?
- Branch control
- Required template
- Business hours
- Evaluate artifact
- Exclusive lock
Show answer
Answer: A. Branch control, B. Required template, D. Evaluate artifact
Branch control, required template and evaluate artifact are the static category and run first. Business hours is a dynamic check and exclusive lock runs last.
True or false: in a GitHub environment with several required reviewers, every listed reviewer must approve before the job proceeds.
Show answer
Answer: False
False. Only one of the listed reviewers (up to 6 people or teams) needs to approve. You can also enable prevent self-review.
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.
