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:
- 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.
- 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. - 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.
- 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.
- 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/reponameto ensure they are stored correctly. - 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: