Azure Pipelines Nuget package restore error.

Richard D 30 Reputation points
2023-03-28T16:04:31.83+00:00

I'm using the Azure DevOps Pipelines to build my VS 2022 solution.

I have created an project scoped Artifact feed with two nuget packages.

The nuget restore tasks keeps failing with the following error: ##[error]The nuget command failed with exit code(1) and error(NU1301: Unable to load the service index for source...

This the Nuget pipline task that fails to restore the feed packages. I doubled checked all feed permissions and are out of ideas as what the issue could be.

task: NuGetCommand@2
  inputs:
    command: 'restore'
    restoreSolution: '**/*.sln'
    feedsToUse: 'select'
    vstsFeed: '76ef5cbd-6ef6-49d2-ad40-6ef7529c91b8/aa62c805-6da8-42fd-8efd-6025c1c542b3'
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,759 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.