'Failure to Authenticate to GIT hosted on TFS as an External Git Service Connection in Azure Devops

As my work is making the transition between TFS and Azure Devops, we are in a position where we would like to start mananging all our dev's User Stories/Tasks/Bugs up in Azure Devops - along with the builds from our check-ins.

To get this setup we would like to first setup all our pipelines with the existing git repo's we have up on our TFS server. But none of the service connection setup's I have tried are correctly authenticating. The setup that appears to be working in other systems (tested with an import into github) is to use username/PAT. Basic setup for GIT connection

There is nothing unique to how this is setup on TFS. There is also no Verify button that sure would be a nice addition (Microsoft).

Running this on a pipeline creates this log. enter image description here

The authentication portion of the url is also translating the @ in my email address to %AZP2540 so instead of having [email protected]:PAT it passes me%AZP2540here.com:PAT

Any help on how to get past this, would be a big help.

UPDATE: Switching over to HTTPS allowed me to import the repository with a username and PAT. The same setup has not worked for an External GIT Service Connection.



Solution 1:[1]

you'll need to configure a service connection of type Azure Repos/Team Foundation Server with access to the project and include that in YAML , not in the type of git

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Heshan