ArgoCD can not authenticate to Azure DevOps SERVER

Andres Colodrero 0 Reputation points
2026-01-16T09:15:17.6066667+00:00

HI,

I succesfully connected an ArgoCD instance to a azure devops services repo (dev.azure.com).

Now i cant not connect an ArgoCD instance to our internal Azure DevOPS server.

IM running Azure DevOps Server 2022.0.1 RC1.

Steps:

  1. Add a repo in ArgoCD, type "git", URL: https://tfs.internal.com/projectname/_git/reponame.
  2. Select username: something, password: token.
  3. i tried TLS and skip tls.

Connection seems ok on ArgoCD (i guess it is just a basic ping), but when trying to connect to a new application:

Unable to create application: application spec for s is invalid: InvalidSpecError: Unable to generate manifests in app/: rpc error: code = Unknown desc = failed to initialize repository resources: rpc error: code = Internal desc = Failed to fetch default: git fetch origin --tags --force --prune failed exit status 128: fatal: Authentication failed for 'https://tfs.internal.com/projectname/_git/reponame/

  • token is full admin for testing
  • same token works for other applications (like linux git)

is there a limitation?

Azure DevOps
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-01-16T09:15:36.2833333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It seems that you are experiencing an authentication issue when trying to connect ArgoCD to your internal Azure DevOps Server. Here are some troubleshooting steps and considerations that might help you resolve the issue:

    1. Token Permissions: Ensure that the token you are using has the necessary permissions for the repository you are trying to access. Even if the token is an admin token, double-check that it is set up correctly in Azure DevOps Server.
    2. URL Format: Verify that the URL you are using is correct and accessible from the ArgoCD instance. The format should typically be https://tfs.internal.com/projectname/_git/reponame.
    3. Authentication Method: Since you mentioned using a username and token, ensure that the username is not empty and that the token is being used correctly. You might want to try using a Personal Access Token (PAT) if you are not already doing so.
    4. TLS Settings: If you are having issues with TLS, ensure that your ArgoCD instance can properly validate the TLS certificate of your Azure DevOps Server. If you are using a self-signed certificate, you might need to configure ArgoCD to trust it.
    5. Git Configuration: Check your Git configuration on the ArgoCD instance. You can manually approve the credentials using the command git credential approve https://tfs.internal.com/projectname/_git/reponame to ensure they are stored correctly.
    6. Logs and Error Messages: Review the logs from ArgoCD for any additional error messages that might provide more context on the failure. The error message you provided indicates an authentication failure, which could be due to incorrect credentials or configuration.

    If you continue to face issues, consider checking the Azure DevOps Server documentation for any specific settings or limitations that may apply to your version.


    References:

    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.