Git provider (optional)
Azure Repo
System Info (optional)
Azure Devops
Issues details
Issue: The YAML pr: triggers don't work with Azure Repos Git (only GitHub/Bitbucket Cloud).
Solution for Azure Repos Git: Need to add Build Validation policy in Branch Policies:
Project Settings → Repositories → Branches → [target branch] → Branch Policies
Add Build Validation → Select PR Agent pipeline → Set as Required
The pr: section in the YAML can also be removed, as it’s not needed for Azure Repos.
Suggestion: Consider adding this distinction to the Azure DevOps docs to help teams avoid troubleshooting.

Git provider (optional)
Azure Repo
System Info (optional)
Azure Devops
Issues details
Issue: The YAML pr: triggers don't work with Azure Repos Git (only GitHub/Bitbucket Cloud).
Solution for Azure Repos Git: Need to add Build Validation policy in Branch Policies:
Project Settings → Repositories → Branches → [target branch] → Branch Policies
Add Build Validation → Select PR Agent pipeline → Set as Required
The pr: section in the YAML can also be removed, as it’s not needed for Azure Repos.
Suggestion: Consider adding this distinction to the Azure DevOps docs to help teams avoid troubleshooting.