New Reply

Good news! We have migrated all the Q&A on this site to, and are currently monitoring questions there!

Here are some important links:

All posts here are permanently locked (and will be redirected soon), and if you have any issues with the new site, please submit a support ticket, use the contact form, or visit our Slack Workspace.

*names changed in log for security purposes.

We recently added an SSL cert to our ProGet server and set up an HTTPS redirect. When using the NuGet Push step in TFS (pushing to '' or any other feed, it fails with the below error. However, it ONLY fails using TFS Git as a source in the build. On ProGet, when putting these URIs in the proxy config test, it indicates success. All accounts are permissioned correctly in ProGet.

Is this a ProGet issue or TFS Git issue?

Pushing SmokeTest.XXXX.nupkg to ''...
CredentialProvider.TeamBuild: "E:\Agent\CorporateApplications (IL1CABUILD01-TEST)_work_tasks\NuGetCommand_333b11bd-d341-40d9-afcf-b32d5ce6f23b\2.0.24\node_modules\nuget-task-common\NuGet\CredentialProvider
CredentialProvider.TeamBuild.exe" -uri -nonInteractive -verbosity detailed
CredentialProvider.TeamBuild: URI Prefixes:
CredentialProvider.TeamBuild: https://tfstest/HoldingCompany/
CredentialProvider.TeamBuild: URI:
CredentialProvider.TeamBuild: Is retry: False
CredentialProvider.TeamBuild: Matched prefix:
CredentialProvider.TeamBuild: This provider only handles URIs from the build's Team Project Collection
Unauthorized 944ms
System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (anonymous user not authorized to add packages to this feed).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()

Product: ProGet
Version: 5.1.4

This appears to be an issue with the TFS credentials provider - the 401 status code means credentials were not supplied (and the error message confirms that as well); but typically clients should followup with a 2nd request that includes credentials when the 401 is received.

If credentials are actually sent and are invalid/forbidden, then a 403 would be returned by ProGet.