How to fix "Failed to install repositories!" error on Azure DevOps

Last updated: June 9, 2026

Setup Azure DevOps Repository Installation

A Failed to install repositories! error may appear when adding repositories from Azure DevOps through the CodeRabbit admin interface. To resolve the issue, complete the following steps:

  1. Confirm that the Personal Access Token (PAT) has the correct permission grants. The required and optional permissions are:

    1. Read, write, and manage access to Work Items and Code (required for code reviews)

    2. Read access to Build (optional, for CodeRabbit Pro pipeline failure remediation)

For more details, refer to the Azure DevOps platform documentation.

  1. Verify that the Azure DevOps user account used to install repositories through the UI has sufficient Azure DevOps permissions, specifically the Edit Subscription permission on the relevant repository.

    When repositories are added through the CodeRabbit UI, the action uses the permissions of the logged-in user, not the permissions of the PAT provided to the system. Even when the PAT has all the correct grants, the installing user must also have adequate Azure DevOps permissions.

  2. If the organization follows a minimal-permissions policy, temporarily escalate the permissions of the user performing the repository installation in Azure DevOps, then retry adding the repositories through the CodeRabbit admin interface.

Once the correct permissions are in place for both the PAT and the installing user, repositories from Azure DevOps can be added successfully.