Bitzu

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

Single choice

Where are approvals and checks for an Azure Pipelines environment defined?

  1. In the pipeline YAML under the stage
  2. On the environment itself, in the Approvals and checks tab
  3. In a variable group linked to the pipeline
  4. 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.

Select all that apply

Which of these are static checks, evaluated before approvals and dynamic checks?

  1. Branch control
  2. Required template
  3. Business hours
  4. Evaluate artifact
  5. 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

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.

Download on the App StoreGet it on Google Play

More AZ-400 topics in this module