title: Response status code does not indicate success: 401 in the task "restore" on the azure-pipeline
body: <p>I have the following error:</p>
  
  <pre><code>error : Unable to load the service index for source https://privateLibrary.com/private/_packaging/privateOrganitation/nuget/v3/index.json. [/home/vsts/work/1/s/Local.Proyect.Core/Local.Proyect.Core.csproj]
         /usr/share/dotnet/sdk/3.0.101/NuGet.targets(123,5): 
  error :   Response status code does not indicate success: 401 (Unauthorized). [/home/vsts/work/1/s/Local.Proyect.Core/Local.Proyect.Core.csproj]
  </code></pre>
  
  <p>My azure-pipeline.yml:</p>
  
  <pre><code>variables:
    buildConfiguration: 'Release'
    localProyectName: 'Local.Proyect.Core'
    localProyectCoreDirectory: './Local.Proyect.Core'
  
  
  trigger:
   branches:
     include:
       - master
  
  steps:
  - task: UseDotNet@2
    inputs:
      packageType: 'sdk'
  - task: DotNetCoreCLI@2
    displayName: 'dotnet restore'
    inputs:
      command: restore
      projects: '**/$(localProyectName).csproj'
      feedsToUse: config
      nugetConfigPath: $(localProyectCoreDirectory)/NuGet.Config
      arguments: --force
  
  - task: DotNetCoreCLI@2
    displayName: 'Build All'
    inputs:
      projects: '**/$(localProyectName).csproj'
      arguments: '--no-restore --configuration $(buildConfiguration)'
  
  - script: dotnet publish --configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)/$(localProyectName) ./$(localProyectName)/$(localProyectName).csproj
    displayName: 'dotnet publish of project $(localProyectName)'
  
  - task: PublishBuildArtifacts@1
    displayName: 'Publish Artifact: $(localProyectName)'
    inputs:
      PathtoPublish: '$(Build.ArtifactStagingDirectory)/$(localProyectName)'
      ArtifactName: '$(localProyectName)'
  </code></pre>
  
  <p>The error start in command restore. As you can see in azure devops machine can´t restore mi private packets. I am using the NuGet.Config <strong>inside my app</strong> "Local.Proyect.Core" with the URL of the organitation:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;packageRestore&gt;
      &lt;add key="enabled" value="True" /&gt;
      &lt;add key="automatic" value="True" /&gt;
    &lt;/packageRestore&gt;
    &lt;packageSources&gt;
      &lt;add key="privateOrgnitation" value="https://privateLibrary.com/private/_packaging/privateOrganitation/nuget/v3/index.json." /&gt;
      &lt;add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /&gt;
    &lt;/packageSources&gt;
    &lt;bindingRedirects&gt;
      &lt;add key="skip" value="False" /&gt;
    &lt;/bindingRedirects&gt;
    &lt;packageManagement&gt;
      &lt;add key="format" value="0" /&gt;
      &lt;add key="disabled" value="False" /&gt;
    &lt;/packageManagement&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Why the machine can´t find my Azure Artifacts in OTHER organitation?? And why I haven't got any error in visual studio and here yes...</p>