// 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
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
FIX 1Install the credential provider
- 01Windows: run the script from aka.ms/install-artifacts-credprovider.ps1
- 02Mac/Linux: run the matching install script from the microsoft/artifacts-credprovider repo
- 03Run dotnet restore --interactive and sign in once
Did this fix it?FIX 2Refresh expired credentials
- 01In Visual Studio go to Tools > Options > Azure Service Authentication or account settings and re-enter credentials
- 02Remove expired accounts
- 03Update Visual Studio to 17.4 or later
Did this fix it?FIX 3Authenticate in pipelines
- 01Add the NuGetAuthenticate@1 task before restore
- 02For npm use npmAuthenticate@0
- 03Make sure the build service has Feed Reader access under Artifacts > Feed settings > Permissions
Did this fix it?FIX 4Use a PAT in nuget.config
- 01Create a PAT with Packaging: Read
- 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 usThe same problem in other apps
Other Azure DevOps errors
- Azure DevOps No Hosted Parallelism Has Been Purchased or Granted
- Azure DevOps Pipeline Stuck in Queue (Waiting for an Available Agent)
- Azure DevOps Pipeline Not Triggering on Push
- Azure DevOps Git Authentication Failed (PAT Not Working)
- Azure DevOps TF401027: You Need the Git 'GenericContribute' Permission
- Azure Pipelines Job Canceled After 60 Minutes
- Azure DevOps Service Connection 'Failed to Obtain the JSON Web Token'
- Why Is Azure DevOps Boards So Slow?