// troubleshooting guide · azure devops

Azure Artifacts Feed 401 Unauthorized (Unable to Load the Service Index)

Status
Ongoing
platforms:
Windows, Mac, Linux, Azure Pipelines
updated:
November 16, 2026
reports:
4
Method
how we research
Share

RUNBOOK · azure-devops/artifacts-feed-4014 FIXES

// quick answer

NuGet can't authenticate to your Azure Artifacts feed. Install the Azure Artifacts Credential Provider and run restore with --interactive once, or use the NuGetAuthenticate task in pipelines.

Most likely fix: Install the credential provider

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Install the credential provider

    1. 01Windows: run the script from aka.ms/install-artifacts-credprovider.ps1
    2. 02Mac/Linux: run the matching install script from the microsoft/artifacts-credprovider repo
    3. 03Run dotnet restore --interactive and sign in once
    Did this fix it?
  2. FIX 2Refresh expired credentials

    1. 01In Visual Studio go to Tools > Options > Azure Service Authentication or account settings and re-enter credentials
    2. 02Remove expired accounts
    3. 03Update Visual Studio to 17.4 or later
    Did this fix it?
  3. FIX 3Authenticate in pipelines

    1. 01Add the NuGetAuthenticate@1 task before restore
    2. 02For npm use npmAuthenticate@0
    3. 03Make sure the build service has Feed Reader access under Artifacts > Feed settings > Permissions
    Did this fix it?
  4. FIX 4Use a PAT in nuget.config

    1. 01Create a PAT with Packaging: Read
    2. 02Add it under packageSourceCredentials in nuget.config (keep it out of source control)
    Did this fix it?

Symptoms

dotnet restore or nuget restore fails with 'Unable to load the service index for source https://pkgs.dev.azure.com/...' and 'Response status code does not indicate success: 401 (Unauthorized)'.

Why it happens

  • C-01The Azure Artifacts Credential Provider is not installed
  • C-02A cached sign-in session expired
  • C-03Older Visual Studio (below 17.4) failing when any signed-in account expired
  • C-04The pipeline didn't run an authenticate task
  • C-05The PAT in nuget.config expired or lacks Packaging scope

// this guide also covers

  • azure artifacts 401 unauthorized
  • unable to load the service index for source azure devops
  • azure devops nuget feed authentication

Still not working?

If Azure DevOps keeps failing, you're not alone. See every Azure DevOps problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us

Watch Azure DevOps Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other Azure DevOps errors

All 12 Azure DevOps errors and fixes →