Use packages from

Azure DevOps Services | TFS 2018


NuGet upstream sources are only available for Azure DevOps Services and TFS 2018 Update 2 and newer.

The NuGet client natively supports multiple package sources, so you can use packages from both and private feeds (like your Azure Artifacts feed). However, there are some limitations (outlined on the upstream sources concepts page) with that configuration, and we recommend instead managing package sources server-side using a single feed and upstream sources.

The upstream source allows you to merge the contents of into your feed such that the NuGet client can install packages from both locations without making multiple search queries. Enabling upstream sources also automatically enables saving of packages you use from the upstream source.

To learn more about the concept of upstream sources, please see the concepts page.

Enable the upstream on a new feed

  1. Create a new feed. Ensure you leave the "Use packages from public sources through this feed" radio button selected.
  2. Update your NuGet configuration.

Enable the upstream on an existing feed


Enabling the upstream source on a widely-used feed can result in unexpected packages being saved into that feed. Learn more

  1. Edit your feed. Select the gear icon in the top right of the page to open feed settings.
  2. Select the Upstream sources pivot.
  3. Select Add upstream source in the CommandBar.
  4. Select Select a feed URL and select ( If you like, customize the upstream name.
  5. Select Add.
  6. Update your NuGet configuration.

Once you enable the upstream source, any Owner or Contributor that runs a package request against your feed can save packages from into your feed. If you've distributed your feed URL to a large set of consumers, this means that users outside your team could save packages you weren't expecting into your feed.

If you're concerned about this, consider creating a new feed then adding and your current feed as upstream sources to that feed.

Update your NuGet configuration

To use your feed and upstream source, follow the instructions to consume NuGet packages. If you've previously set up this feed, still take a quick pass through those instructions and ensure you've disabled as a source. This ensures that all package requests are sent to your Azure DevOps Services feed, which is required to take advantage of the guaranteed save functionality of the upstream source.

Filter to saved packages

You can see the packages you have saved in your feed by selecting the appropriate Source filter.

Source is set to filter on

Viewing your cached packages

Filtering is on the source