While using Azure Devops for two way git sync in Harness.
Setup as per Add an Azure DevOps Repo | Harness Developer Hub
If you are seeing issue with Azure Devops —> Harness Sync and registering the webhook fails with :
Response:
Status Code: 400
Reason Phrase: Bad Request
INVALID_REQUEST
Kindly validate the Azure Devops connector you have created , the connector provider type should be Git Repo instead of Git Account.
The Https Url will also change to https://testnew@dev.azure.com/testtest/abctest/_git/reponame
from https://testnew@dev.azure.com/testtest/abctest/_git
In the Azure Devops Project Settings → Service Hooks :
The test should pass now.
You can validate the webhook staus now shows the failed and success as earlier it was not even pushing.