Interview Prep/Azure/Azure DevOps, Bicep and Terraform

What are branch policies in Azure Repos?

BeginnerConceptAzure DevOps, Bicep and Terraform
Answer

Rules on a protected branch (usually main) enforced at PR completion:

  • Minimum number of reviewers, reset votes on new pushes, no self-approval.
  • Linked work items, resolved comments.
  • Build validation: a pipeline must pass on the PR's merge commit.
  • Status checks from external services, required reviewers by path (/infra/* needs platform team).
  • Allowed merge types (squash only, for example).

Branch policies also block direct pushes to the branch, which is the point.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on Azure DevOps, Bicep and Terraform