Azure DevOps Peer Reviewer Assistant

Last updated: Oct 26, 2026


You connect Azure DevOps one time for each organization, in the SCM connections screen. Then you select the groups that get their pull requests reviewed.

1. Open the SCM connections screen

  1. In your organization, go to Integrations.
  2. Open the SCM connections tab.
  3. Click Connect SCM.

2. Select the provider

The Choose your provider window opens. Click the Azure DevOps card.

3. Examine what the connection adds

The Prepare the connection window explains what Fluid Attacks adds to your Azure DevOps organization. It is not an extension of the marketplace: you do not find it in Organization settings, Extensions.

What the connection addsWhy it needs it
A service principal with Basic accessTo read the code and to publish the result on the pull request
Read of code and contribute to pull requestsTo read the code that the assistant examines and to publish its result
Two service hook subscriptionsTo know when a pull request is created or updated

4. Sign in and select the organization

  1. Sign in with the work or school account that administers the organization. This sign-in lists the organizations that your account administers.
  2. Select the organization that you want to connect.
  3. The platform then sets the organization up: it adds the service principal, gives it the Git permissions and creates the subscriptions.

The setup asks Microsoft Entra for a second authorization with more permissions. Entra uses the session that you opened, thus you see only one sign-in. Entra shows a second sign-in when it cannot use that session. This occurs the first time that the directory approves the application.

A Connection established message confirms the setup.

5. Select the groups that get reviewed

The connection card has a Pull request review section. This section has one toggle for each group in the organization.

Turn on the toggle of each group that you want the assistant to review. The assistant does not review a group with its toggle off, and Azure DevOps shows no result.

The assistant reviews the repositories that this group registered as Git roots. The branch of each root is its registered branch, and the assistant compares every pull request against it. Refer to Add a new Git repository.

6. Verify that the connection operates

  1. Open or update a pull request in one of the repositories that you added.
  2. Make sure that the status Peer Reviewer Assistant reports on the pull request.
  3. Make sure that a summary comment appears in the conversation.

The assistant publishes three things:

What it publishesWhere you see it
A statusIn the pull request, with the result and a link to the platform
A summary commentIn the conversation of the pull request
A comment on the lineIn the diff, on each line that introduces a vulnerability

Which pull requests the assistant reviews

The assistant reviews a pull request only when all these conditions are true. If one condition is false, Azure DevOps shows no result.

ConditionWhere you set it
The repository belongs to a project that existed when you connectedIn Azure DevOps
The group has pull request review onIntegrations, SCM connections, Pull request review
The repository is a Git root of that groupScope section of the group
That root is ActiveScope section of the group
The group has an active Essential or Advanced planGroup information

Block the merges that disobey your policy

The status alone does not block a merge. To block a merge, add a branch policy on the target branch:

  1. Open a pull request. Azure DevOps lists a status only after it receives that status one time.
  2. Open the branch policies of the target branch: Repos, Branches, the More options icon of the branch, Branch policies. You reach the same screen from Project settings, Repository, Policies, Branch Policies, and the branch.
  3. Below Status checks, select +.
  4. In Status to check, select fluidattacks/peer-reviewer-assistant. If the status has not reported yet, write that value.
  5. Set Policy requirement to Required.

Microsoft explains the mechanism in its own documentation: Set and manage branch policies.

Manage the connection

The connection card has these controls:

ControlWhat it does
StatusShows Connected or Suspended
Verify againExamines the connection again
DisconnectRemoves the service principal and the subscriptions from the Azure DevOps organization

On this page