BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Quality and release gates
Lesson323 words

Quality and release gates

Design and implement quality and release gates

Gates live at two different boundaries, and confusing them is the usual mistake.

BoundaryMechanismOwner
Pull-request completion into a branchBranch policiesProject Administrators or users with repository-level Edit policies permission
Use of a protected resourceApprovals and checksResource owner

Branch policies — the merge gate

Applied to a protected branch, these can require: a minimum number of reviewers, linked work items, resolved comments, successful build validation, and successful status checks from external services. They enforce those requirements before a pull request completes.

What they cannot do is govern deployment. A branch policy has no opinion about whether a release may reach production.

Checks — the protected-resource gate

Configured by the owner of an environment, service connection, repository, agent pool, variable group, or secure file. Because the resource owner sets them outside pipeline YAML, a central team can impose a control on any stage that consumes the protected resource.

The security-and-governance examples worth naming:

  • Required template — requires pipelines that use the protected resource or environment to extend the specified template.
  • Branch control — checks the branches of all linked resources against the allowed list and can require branch protection.
  • Query Azure Monitor alerts — succeeds when no queried alert rules are active at evaluation time.
  • Evaluate artifact — applies custom policy to artifact metadata; it currently supports container image artifacts only.

Shift left, but keep the gate

Fast feedback in the PR is cheaper than a failed release, so run unit tests, linting and dependency scanning at the merge boundary. Keep protected-resource checks as well. A configured branch policy enforces its PR requirements; configured checks enforce whether a stage may consume a protected resource. Neither mechanism proves general code quality by itself.

Primary sources

  • https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/az-400
  • https://learn.microsoft.com/en-us/azure/devops/repos/git/branch-policies
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/process/resources
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure533 words
  • Agent and runner infrastructure — quick notes222 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 levels294 words
  • Appropriate access levels — quick notes180 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.