Skip to content

Unable to load service index for v3 nuget feeds when passing credentials #101

@MaxFrost

Description

@MaxFrost
$Cred = Get-Credential $Username
Register-PSResourceRepository -Name $AuthenticatedFeed -URL "https://pkgs.dev.azure.com/<teamname>/_packaging/<feedname>/nuget/v3/index.json" -Trusted

Find-PSResource -Repository $AuthenticatedFeed -Credential $Cred
Find-PSResource: Unable to load the service index for source https://pkgs.dev.azure.com/<teamname>/_packaging/<feedname>/nuget/v3/index.json.

If I register the same feed with v2, https://pkgs.dev.azure.com/<teamname>/_packaging/<feedname>/nuget/v2, I can use the same Find-PSResource call passing in $cred and it functions

Using Powershell 7.0.0,
PowerShellGet 3.0.0-beta1
$Cred is using a PAT token with full access to remove any doubt if it's an issue on the authentication side as the password.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions