title: Azure DevOps publish Nuget to hosted feed
body: <p>I have a question using the hosted (free) AzureDevops pipelines. I have a small .NET Core project which I want to create an Azure Devops pipeline where the following is done</p>
  
  <ul>
  <li>restore</li>
  <li>build</li>
  <li>pack</li>
  <li>push (to AzureDevOps hosted artifact feed)</li>
  </ul>
  
  <p>I have the following feed setup on my project in Azure Devops</p>
  
  <p><a href="https://i.stack.imgur.com/5aUOy.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5aUOy.png" alt="enter image description here"></a></p>
  
  <p>Which has this connection information for the feed</p>
  
  <p><code>..../NugetProjects/_packaging/nugetprojectstestfeed/nuget/v3/index.json</code></p>
  
  <p>It also has the following security applied to it (note the Project Collection Build Service is set as "Contributor")</p>
  
  <p><a href="https://i.stack.imgur.com/UbqXV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UbqXV.png" alt="enter image description here"></a></p>
  
  <p>Which is as stated from this paragraph from Microsoft official docs</p>
  
  <blockquote>
    <p>To publish to an Azure Artifacts feed, set the Project Collection Build Service identity to be a Contributor on the feed. </p>
  </blockquote>
  
  <p>I then have this build pipeline setup (Yaml)</p>
  
  <pre><code># ASP.NET Core
  # Build and test ASP.NET Core projects targeting .NET Core.
  # Add steps that run tests, create a NuGet package, deploy, and more:
  # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
  
  trigger:
  - master
  
  pool:
    vmImage: 'ubuntu-latest'
  
  variables:
    buildConfiguration: 'Release'
    Major: '1'
    Minor: '0'
    Patch: '0'
  
  steps:
  
  - task: DotNetCoreCLI@2
    displayName: 'Restore'
    inputs:
      command: restore
      projects: '**/MathsLib.csproj'
  
  
  - task: DotNetCoreCLI@2
    displayName: Build
    inputs:
      command: build
      projects: '**/MathsLib.csproj'
      arguments: '--configuration Release' # Update this to match your need
  
  
  - task: DotNetCoreCLI@2
    inputs: 
      command: 'pack'
      projects: '**/MathsLib.csproj'
      outputDir: '$(Build.ArtifactStagingDirectory)'
      versioningScheme: 'byPrereleaseNumber'
      majorVersion: '1'
      minorVersion: '0'
      patchVersion: '0'
  
  
  - task: NuGetAuthenticate@0
    displayName: 'NuGet Authenticate'
  - task: NuGetCommand@2
    displayName: 'NuGet push'
    inputs:
      command: push
      publishVstsFeed: 'nugetprojectstestfeed'
      allowPackageConflicts: true
  </code></pre>
  
  <p>The entire pipeline works fine up until the Nuget push. As shown here</p>
  
  <p><a href="https://i.stack.imgur.com/GRPp7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GRPp7.png" alt="enter image description here"></a></p>
  
  <p>But if I look into the exception I see this sort of thing</p>
  
  <pre><code>##[warning]Could not create provenance session: {"statusCode":500,"result":{"$id":"1","innerException":null,"message":"The feed with ID 'nugetprojectstestfeed' doesn't exist.","typeName":"Microsoft.VisualStudio.Services.Feed.WebApi.FeedIdNotFoundException, Microsoft.VisualStudio.Services.Feed.WebApi","typeKey":"FeedIdNotFoundException","errorCode":0,"eventId":3000}}
  [command]/usr/bin/mono /opt/hostedtoolcache/NuGet/4.1.0/x64/nuget.exe push /home/vsts/work/1/a/MathsLib.1.0.0-CI-20191114-115941.nupkg -NonInteractive -Source https://pkgs.dev.azure.com/XXXXX/_packaging/nugetprojectstestfeed/nuget/v3/index.json -ApiKey VSTS -Verbosity Detailed
  System.AggregateException: One or more errors occurred. (Unable to load the service index for source https://pkgs.dev.azure.com/XXXXX/_packaging/nugetprojectstestfeed/nuget/v3/index.json.) ---&gt; NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://pkgs.dev.azure.com/XXXXX/_packaging/nugetprojectstestfeed/nuget/v3/index.json. ---&gt; System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found - The feed with ID 'nugetprojectstestfeed' doesn't exist. (DevOps Activity ID: F123AC3A-8E75-4D3A-B3B6-60EC4510FF54)).
  </code></pre>
  
  <p>This was my original feed connection</p>
  
  <p><code>https://pkgs.dev.azure.com/XXXX/NugetProjects/_packaging/nugetprojectstestfeed/nuget/v3/index.json</code></p>
  
  <p>But this is what is shown in the error message</p>
  
  <p><code>https://pkgs.dev.azure.com/XXXXX/_packaging/nugetprojectstestfeed/nuget/v3/index.json</code></p>
  
  <p>So it looks like its trying to access a feed in some root project, not the "NuGetProjects" project that I have setup in Azure DevOps. Is there some setting/config that I am missing to tell it to target the feed inside the "NuGetProjects" project</p>
  
  <p>As I say it looks like its looking for some top level feed not inside the specific project for which the build pipeline is setup for</p>
  
  <p><strong>Full step by step of using a new feed</strong></p>
  
  <p>So for completeness here is a full run down of how I created the project the feed and where it sits in the organisation of things (I have created a new feed as suggested as something to try)</p>
  
  <p>I have this organisation "sachabarber2019", which has these projects in it</p>
  
  <p><a href="https://i.stack.imgur.com/VQIYB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VQIYB.png" alt="enter image description here"></a></p>
  
  <p>I have then created this feed in one of the projects of the organisation</p>
  
  <p><a href="https://i.stack.imgur.com/4uxxS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4uxxS.png" alt="enter image description here"></a></p>
  
  <p>With these settings
  <a href="https://i.stack.imgur.com/D0ojj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/D0ojj.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Ca53O.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ca53O.png" alt="enter image description here"></a></p>
  
  <p>And this is current build pipeline</p>
  
  <pre><code># ASP.NET Core
  # Build and test ASP.NET Core projects targeting .NET Core.
  # Add steps that run tests, create a NuGet package, deploy, and more:
  # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
  
  trigger:
  - master
  
  pool:
    vmImage: 'ubuntu-latest'
  
  variables:
    buildConfiguration: 'Release'
    Major: '1'
    Minor: '0'
    Patch: '0'
  
  steps:
  
  - task: DotNetCoreCLI@2
    displayName: 'Restore'
    inputs:
      command: restore
      projects: '**/MathsLib.csproj'
  
  
  - task: DotNetCoreCLI@2
    displayName: Build
    inputs:
      command: build
      projects: '**/MathsLib.csproj'
      arguments: '--configuration Release' # Update this to match your need
  
  
  - task: DotNetCoreCLI@2
    inputs: 
      command: 'pack'
      projects: '**/MathsLib.csproj'
      outputDir: '$(Build.ArtifactStagingDirectory)'
      versioningScheme: 'byPrereleaseNumber'
      majorVersion: '1'
      minorVersion: '0'
      patchVersion: '0'
  
  
  - task: NuGetCommand@2
    displayName: 'NuGet push'
    inputs:
      command: push
      feedsToUse: select
      packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
      vstsFeed: anotherfeed
      nuGetFeedType: internal
      publishVstsFeed: anotherfeed
      allowPackageConflicts: true
  
  
  </code></pre>
  
  <p>And as before I get the same error</p>
  
  <pre><code>##[section]Starting: NuGet push
  ==============================================================================
  Task         : NuGet
  Description  : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Azure Artifacts and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task.
  Version      : 2.161.0
  Author       : Microsoft Corporation
  Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget
  ==============================================================================
  Caching tool: NuGet 4.1.0 x64
  Found tool in cache: NuGet 4.1.0 x64
  Resolved from tool cache: 4.1.0
  Using version: 4.1.0
  Found tool in cache: NuGet 4.1.0 x64
  SYSTEMVSSCONNECTION exists true
  SYSTEMVSSCONNECTION exists true
  SYSTEMVSSCONNECTION exists true
  Detected NuGet version 4.1.0.2450 / 4.1.0
  ##[warning]Could not create provenance session: {"statusCode":500,"result":{"$id":"1","innerException":null,"message":"The feed with ID 'anotherfeed' doesn't exist.","typeName":"Microsoft.VisualStudio.Services.Feed.WebApi.FeedIdNotFoundException, Microsoft.VisualStudio.Services.Feed.WebApi","typeKey":"FeedIdNotFoundException","errorCode":0,"eventId":3000}}
  [command]/usr/bin/mono /opt/hostedtoolcache/NuGet/4.1.0/x64/nuget.exe push /home/vsts/work/1/a/MathsLib.1.0.0-CI-20191120-121118.nupkg -NonInteractive -Source https://pkgs.dev.azure.com/sachabarber2019/_packaging/anotherfeed/nuget/v3/index.json -ApiKey VSTS -Verbosity Detailed
  NuGet Version: 4.1.0.2450
  mono-sgen: /home/vsts/work/_tasks/NuGetCommand_333b11bd-d341-40d9-afcf-b32d5ce6f23b/2.161.0/CredentialProvider/CredentialProvider.TeamBuild.exe -uri https://pkgs.dev.azure.com/sachabarber2019/_packaging/anotherfeed/nuget/v3/index.json -nonInteractive -verbosity detailed
  mono-sgen: URI Prefixes:
  mono-sgen:     https://dev.azure.com/sachabarber2019/
  mono-sgen:     https://pkgs.dev.azure.com/sachabarber2019/
  mono-sgen:     https://pkgsproduks1.pkgs.visualstudio.com/
  mono-sgen:     https://pkgs.dev.azure.com/sachabarber2019/
  mono-sgen:     https://sachabarber2019.pkgs.visualstudio.com/
  mono-sgen:     https://pkgs.dev.azure.com/sachabarber2019/
  mono-sgen: URI: https://pkgs.dev.azure.com/sachabarber2019/_packaging/anotherfeed/nuget/v3/index.json
  mono-sgen: Is retry: False
  mono-sgen: Matched prefix: https://pkgs.dev.azure.com/sachabarber2019/
  System.AggregateException: One or more errors occurred. (Unable to load the service index for source https://pkgs.dev.azure.com/sachabarber2019/_packaging/anotherfeed/nuget/v3/index.json.) ---&gt; NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://pkgs.dev.azure.com/sachabarber2019/_packaging/anotherfeed/nuget/v3/index.json. ---&gt; System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found - The feed with ID 'anotherfeed' doesn't exist. (DevOps Activity ID: 9E8C7E28-9D51-44A1-9286-8F6F839BCBD6)).
    at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () [0x00040] in &lt;7ecf813f2d314058b05c6c092c47b77a&gt;:0 
    at NuGet.Protocol.HttpSource+&lt;&gt;c__DisplayClass12_0`1[T].&lt;GetAsync&gt;b__0 (System.Threading.CancellationToken lockedToken) [0x004a8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLockedAsync[T] (System.String filePath, System.Func`2[T,TResult] action, System.Threading.CancellationToken token) [0x0024a] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.HttpSource.GetAsync[T] (NuGet.Protocol.HttpSourceCachedRequest request, System.Func`2[T,TResult] processAsync, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x000ed] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3 (NuGet.Protocol.Core.Types.SourceRepository source, System.DateTime utcNow, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x00207] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
     --- End of inner exception stack trace ---
    at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3 (NuGet.Protocol.Core.Types.SourceRepository source, System.DateTime utcNow, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x002d5] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.ServiceIndexResourceV3Provider.TryCreate (NuGet.Protocol.Core.Types.SourceRepository source, System.Threading.CancellationToken token) [0x00233] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] (System.Threading.CancellationToken token) [0x000b8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.PackageUpdateResourceV3Provider.TryCreate (NuGet.Protocol.Core.Types.SourceRepository source, System.Threading.CancellationToken token) [0x0007d] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] (System.Threading.CancellationToken token) [0x000b8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] () [0x0006e] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Commands.CommandRunnerUtility.GetPackageUpdateResource (NuGet.Configuration.IPackageSourceProvider sourceProvider, System.String source) [0x000f1] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Commands.PushRunner.Run (NuGet.Configuration.ISettings settings, NuGet.Configuration.IPackageSourceProvider sourceProvider, System.String packagePath, System.String source, System.String apiKey, System.String symbolSource, System.String symbolApiKey, System.Int32 timeoutSeconds, System.Boolean disableBuffering, System.Boolean noSymbols, NuGet.Common.ILogger logger) [0x00133] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.CommandLine.PushCommand.ExecuteCommandAsync () [0x001b0] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
     --- End of inner exception stack trace ---
    at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in &lt;285579f54af44a2ca048dad6be20e190&gt;:0 
    at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in &lt;285579f54af44a2ca048dad6be20e190&gt;:0 
    at System.Threading.Tasks.Task.Wait () [0x00000] in &lt;285579f54af44a2ca048dad6be20e190&gt;:0 
    at NuGet.CommandLine.Command.Execute () [0x000bd] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) [0x001f3] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
  ---&gt; (Inner Exception #0) NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://pkgs.dev.azure.com/sachabarber2019/_packaging/anotherfeed/nuget/v3/index.json. ---&gt; System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found - The feed with ID 'anotherfeed' doesn't exist. (DevOps Activity ID: 9E8C7E28-9D51-44A1-9286-8F6F839BCBD6)).
    at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () [0x00040] in &lt;7ecf813f2d314058b05c6c092c47b77a&gt;:0 
    at NuGet.Protocol.HttpSource+&lt;&gt;c__DisplayClass12_0`1[T].&lt;GetAsync&gt;b__0 (System.Threading.CancellationToken lockedToken) [0x004a8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLockedAsync[T] (System.String filePath, System.Func`2[T,TResult] action, System.Threading.CancellationToken token) [0x0024a] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.HttpSource.GetAsync[T] (NuGet.Protocol.HttpSourceCachedRequest request, System.Func`2[T,TResult] processAsync, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x000ed] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3 (NuGet.Protocol.Core.Types.SourceRepository source, System.DateTime utcNow, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x00207] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
     --- End of inner exception stack trace ---
    at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3 (NuGet.Protocol.Core.Types.SourceRepository source, System.DateTime utcNow, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x002d5] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.ServiceIndexResourceV3Provider.TryCreate (NuGet.Protocol.Core.Types.SourceRepository source, System.Threading.CancellationToken token) [0x00233] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] (System.Threading.CancellationToken token) [0x000b8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.PackageUpdateResourceV3Provider.TryCreate (NuGet.Protocol.Core.Types.SourceRepository source, System.Threading.CancellationToken token) [0x0007d] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] (System.Threading.CancellationToken token) [0x000b8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] () [0x0006e] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Commands.CommandRunnerUtility.GetPackageUpdateResource (NuGet.Configuration.IPackageSourceProvider sourceProvider, System.String source) [0x000f1] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Commands.PushRunner.Run (NuGet.Configuration.ISettings settings, NuGet.Configuration.IPackageSourceProvider sourceProvider, System.String packagePath, System.String source, System.String apiKey, System.String symbolSource, System.String symbolApiKey, System.Int32 timeoutSeconds, System.Boolean disableBuffering, System.Boolean noSymbols, NuGet.Common.ILogger logger) [0x00133] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.CommandLine.PushCommand.ExecuteCommandAsync () [0x001b0] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 &lt;---
  
  ##[error]The nuget command failed with exit code(1) and error(System.AggregateException: One or more errors occurred. (Unable to load the service index for source https://pkgs.dev.azure.com/sachabarber2019/_packaging/anotherfeed/nuget/v3/index.json.) ---&gt; NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://pkgs.dev.azure.com/sachabarber2019/_packaging/anotherfeed/nuget/v3/index.json. ---&gt; System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found - The feed with ID 'anotherfeed' doesn't exist. (DevOps Activity ID: 9E8C7E28-9D51-44A1-9286-8F6F839BCBD6)).
    at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () [0x00040] in &lt;7ecf813f2d314058b05c6c092c47b77a&gt;:0 
    at NuGet.Protocol.HttpSource+&lt;&gt;c__DisplayClass12_0`1[T].&lt;GetAsync&gt;b__0 (System.Threading.CancellationToken lockedToken) [0x004a8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLockedAsync[T] (System.String filePath, System.Func`2[T,TResult] action, System.Threading.CancellationToken token) [0x0024a] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.HttpSource.GetAsync[T] (NuGet.Protocol.HttpSourceCachedRequest request, System.Func`2[T,TResult] processAsync, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x000ed] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3 (NuGet.Protocol.Core.Types.SourceRepository source, System.DateTime utcNow, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x00207] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
     --- End of inner exception stack trace ---
    at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3 (NuGet.Protocol.Core.Types.SourceRepository source, System.DateTime utcNow, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x002d5] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.ServiceIndexResourceV3Provider.TryCreate (NuGet.Protocol.Core.Types.SourceRepository source, System.Threading.CancellationToken token) [0x00233] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] (System.Threading.CancellationToken token) [0x000b8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.PackageUpdateResourceV3Provider.TryCreate (NuGet.Protocol.Core.Types.SourceRepository source, System.Threading.CancellationToken token) [0x0007d] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] (System.Threading.CancellationToken token) [0x000b8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] () [0x0006e] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Commands.CommandRunnerUtility.GetPackageUpdateResource (NuGet.Configuration.IPackageSourceProvider sourceProvider, System.String source) [0x000f1] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Commands.PushRunner.Run (NuGet.Configuration.ISettings settings, NuGet.Configuration.IPackageSourceProvider sourceProvider, System.String packagePath, System.String source, System.String apiKey, System.String symbolSource, System.String symbolApiKey, System.Int32 timeoutSeconds, System.Boolean disableBuffering, System.Boolean noSymbols, NuGet.Common.ILogger logger) [0x00133] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.CommandLine.PushCommand.ExecuteCommandAsync () [0x001b0] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
     --- End of inner exception stack trace ---
    at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in &lt;285579f54af44a2ca048dad6be20e190&gt;:0 
    at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in &lt;285579f54af44a2ca048dad6be20e190&gt;:0 
    at System.Threading.Tasks.Task.Wait () [0x00000] in &lt;285579f54af44a2ca048dad6be20e190&gt;:0 
    at NuGet.CommandLine.Command.Execute () [0x000bd] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) [0x001f3] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
  ---&gt; (Inner Exception #0) NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://pkgs.dev.azure.com/sachabarber2019/_packaging/anotherfeed/nuget/v3/index.json. ---&gt; System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found - The feed with ID 'anotherfeed' doesn't exist. (DevOps Activity ID: 9E8C7E28-9D51-44A1-9286-8F6F839BCBD6)).
    at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () [0x00040] in &lt;7ecf813f2d314058b05c6c092c47b77a&gt;:0 
    at NuGet.Protocol.HttpSource+&lt;&gt;c__DisplayClass12_0`1[T].&lt;GetAsync&gt;b__0 (System.Threading.CancellationToken lockedToken) [0x004a8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLockedAsync[T] (System.String filePath, System.Func`2[T,TResult] action, System.Threading.CancellationToken token) [0x0024a] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.HttpSource.GetAsync[T] (NuGet.Protocol.HttpSourceCachedRequest request, System.Func`2[T,TResult] processAsync, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x000ed] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3 (NuGet.Protocol.Core.Types.SourceRepository source, System.DateTime utcNow, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x00207] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
     --- End of inner exception stack trace ---
    at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3 (NuGet.Protocol.Core.Types.SourceRepository source, System.DateTime utcNow, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x002d5] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.ServiceIndexResourceV3Provider.TryCreate (NuGet.Protocol.Core.Types.SourceRepository source, System.Threading.CancellationToken token) [0x00233] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] (System.Threading.CancellationToken token) [0x000b8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.PackageUpdateResourceV3Provider.TryCreate (NuGet.Protocol.Core.Types.SourceRepository source, System.Threading.CancellationToken token) [0x0007d] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] (System.Threading.CancellationToken token) [0x000b8] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T] () [0x0006e] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Commands.CommandRunnerUtility.GetPackageUpdateResource (NuGet.Configuration.IPackageSourceProvider sourceProvider, System.String source) [0x000f1] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.Commands.PushRunner.Run (NuGet.Configuration.ISettings settings, NuGet.Configuration.IPackageSourceProvider sourceProvider, System.String packagePath, System.String source, System.String apiKey, System.String symbolSource, System.String symbolApiKey, System.Int32 timeoutSeconds, System.Boolean disableBuffering, System.Boolean noSymbols, NuGet.Common.ILogger logger) [0x00133] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 
    at NuGet.CommandLine.PushCommand.ExecuteCommandAsync () [0x001b0] in &lt;d0f788a4af354971807e5d8ca6fc682e&gt;:0 &lt;---)
  ##[error]Packages failed to publish
  ##[section]Finishing: NuGet push
  </code></pre>