Azure DevOps Git API returns Failed access to the Git repository

TomOrdonez-0470 20 Reputation points
2026-09-01T21:26:39.41+00:00

We use an external integration to Azure DevOps repositories to fetch branches so that we can deploy a project. This was working fine until last week. Today we started getting the error. Updated the credentials. Tried again same error "Failed to access the Git Repository. Operation fetch is not permitted by server for origin. https://dev.azure.com/...our_repo"

Azure DevOps

Answer accepted by question author
Tejaswini Billakurthi 250 Reputation points Microsoft External Staff Moderator
2026-09-02T12:02:04.0733333+00:00

@TomOrdonez-0470 I hope you're doing well!

Greetings from Microsoft Q&A!

The behavior you're experiencing indicates that the connection is successfully reaching the Azure DevOps Git repository endpoint; however, the Git fetch/read operation is not being permitted for the identity used by the external integration.

The error message:

"Failed to access the Git Repository. Operation fetch is not permitted by server for origin."

typically indicates that the integration is unable to perform Git fetch operations against the Azure DevOps repository. This may be caused by repository permission changes, authentication issues, repository access restrictions, or changes affecting the account or token used by the integration.

As a next step, we recommend validating the following:

  1. Verify that the account or service identity used by the integration still has the required access to the Azure DevOps repository.
  2. Review whether any repository permissions, branch permissions, project security settings, or service connection configurations have changed recently.
  3. Confirm the authentication method used by the integration and ensure the configured credentials remain valid.
  4. Validate that the configured repository URL and repository settings remain unchanged.

For reference, Microsoft documentation related to Azure DevOps repository permissions and authentication:  

Please "Accept the Answer" if this information helped you. This will help us and others in the community as well.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Newest
  1. TomOrdonez-0470 20 Reputation points
    2026-09-03T17:35:42.9433333+00:00

    If it helps others, this is what I did to solve it. I changed from PAT to OAuth and that solved issues with Azure policies blocking access from the external integration.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.