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.
More on Azure DevOps, Bicep and Terraform
What services make up Azure DevOps?BeginnerExplain the YAML pipeline structure in Azure Pipelines.BeginnerWhat are service connections and how should they authenticate?IntermediateWhat are environments in Azure Pipelines?IntermediateWhat deployment strategies do deployment jobs support?IntermediateHow do templates work in Azure Pipelines?Intermediate