-
Notifications
You must be signed in to change notification settings - Fork 100
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
I'm trying to Install-PSResource a module provided by a private nuget repository hosted on a Azure Devops Server 2020.
I installed the Microsoft.CredentialProvider. I checked if it works with nuget.exe and a network monitoring tool (fiddler).
With nuget exe i can access the repo without issues. And i see in the HTTP calls nuget.exe correctly added an authentication header "Authentication BASIC -TOKEN-".
But from powershell i keep getting "Error retrieving resource from repository: Unable to load the service index for source https://-private-server-url-/-collectionname-/-project id-/_packaging/PowerShellGallery/nuget/v3/index.json
The steps i'm trying are pretty basic.
First did register the repo without issues with Register-PSResourceRepository.
Then i try to install the module with Install-PSResource and i receive the error.
In the network monitoring tool i only see calls without authentication headers or calls with NTLMSSP authentication. Never a call with the BASIC authentication. The client used for the NuGet calls is: NuGet Client V3/6.2.2
Can someone tell my why it looks like the Microsoft.CredentialProvider seems to be ignored?
Or how i can enable verbose logging for the NuGet calls?
Expected behavior
Install-PSResource can install modules from a private Azure Devops Artifact Repository
Actual behavior
Install-PSResource fails with error "Error retrieving resource from repository: Unable to load the service index for source https://<private-server-url>/<collectionname>/<project id>/_packaging/PowerShellGallery/nuget/v3/index.json"
Error details
Error retrieving resource from repository: Unable to load the service index for source https://<private-server-url>/<collectionname>/<project id>/_packaging/PowerShellGallery/nuget/v3/index.json
Environment data
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Binary 3.0.19 beta19 PowerShellGet {Find-PSResource, Get-PSResource, Get-PSResourceR…
Visuals
No response