AZ-401: Package Feeds Views and Upstream Dependency Sources
Configure a private Azure Artifacts feed in an existing authorized project, give the selected client one deliberate feed source, and make its upstream and view choices explicit. Save an approved upstream package through an identity permitted to do so, inspect its stored origin, then promote the validated version to the release view and verify consumption through the intended view. Use separate missing-version and permission checks to establish why a restore succeeds or fails.
Choose the registry by supported package format, access model and actual authentication route. Azure Artifacts feed views communicate a selected set of versions; they do not replace package-version semantics or publish a new build. This worked procedure uses Azure DevOps Services, an existing authenticated NuGet client and a pre-existing validated package. It describes expected observations, not live feed creation, restores or promotion performed for this article.
Separate the feed, view and upstream responsibilities
A feed stores and serves packages. An upstream source supplies packages from another supported origin through that feed. A view exposes a selected set of versions for consumption. Those concepts answer different questions: where a package is available, where it came from, and which set consumers should use.
Use Release Identity with Tags SemVer CalVer and Artifacts to establish the exact package identity/version and its validation evidence before this procedure. Keep the same version throughout the exercise. A successful restore of a similarly named dependency is not evidence that the approved version was selected.
For Azure Artifacts, private feeds require authenticated access with at least Feed Reader permission. Saving a previously unsaved upstream version requires Feed and Upstream Reader (Collaborator) or higher. Treat these as different operations when designing the test: an identity able to read an already stored version may not be able to bring a new version into the feed.
Prepare one bounded private-feed exercise
Use an existing private project and an owner authorized to create and manage the exercise feed. Select NuGet as the single client format for this example. Its client and existing project must already have a supported, working authentication setup for the organization. Credential-provider installation and token creation are not supplied by an arbitrary configuration fragment.
Record these actual inputs before changing anything:
- The organization/project, new exercise-feed name and owner who can restore its configuration.
- The approved upstream source and the permitted package identity, exact version and validation record.
- An authorized saving identity with Collaborator or higher, a permitted reader, and an authorized negative-test identity lacking the required feed access.
- The existing NuGet configuration, applicable inherited settings, authentication context and an isolated working project/cache for the exercise.
- The actual source values for the base/default view and intended release-view consumer connection, supplied by the owner through the current supported client setup.
- Existing view/default/visibility settings and which changes the owner intends to retain afterward.
Use a package version already approved for the exercise and available from the selected upstream. Inspect its dependency requirements too. Choose a controlled working directory and client environment that can demonstrate a real feed request; a package already available in a shared local cache can conceal both a broken source and a denied identity.
Azure DevOps access levels control feature availability, while permissions and roles control operations. Account for effective group and inherited assignments. Do not change a shared group or grant broad administration simply to make a failing restore pass.
Create the project-scoped private feed
In the existing project, select Artifacts, then Create Feed. Enter the exercise name, choose the intended restricted Visibility and Project scope, and enable Upstream sources when approved public-source inclusion is required. Select Create. Reopen the feed and verify the actual scope, visibility and resulting upstream list against the recorded specification.
For this NuGet exercise, confirm that the approved NuGet upstream is present. Do not silently accept additional origins that the owner has not approved. If the resulting list differs, have the owner reconcile its supported configuration before consuming packages. Record the final list; a creation checkbox alone does not establish the source actually used.
Keep the exercise private. Microsoft's current documentation states that existing public projects convert to private starting in 2027, after which their public feeds are no longer publicly accessible. A public-feed example therefore cannot promise continuing anonymous access. Changing the hosting project's visibility is outside this procedure.
Configure one effective NuGet source
Preserve the existing client configuration first. In the isolated exercise configuration, use one packageSources block with a clearing element and the selected Azure Artifacts source. The following is a fragment to insert into the existing valid NuGet configuration:
<packageSources>
<clear />
<add key="ApprovedExerciseFeed" value="ACTUAL_PRIVATE_FEED_SOURCE" />
</packageSources>
Replace ACTUAL_PRIVATE_FEED_SOURCE with the actual owner-supplied NuGet source value before using it. It is an input label, not an endpoint or a client variable that expands automatically. Keep credentials in the existing supported authentication mechanism, separate from this source listing and from article examples.
The documented <clear /> pattern removes inherited package sources from that configuration context. Inspect the effective configuration used by the selected restore operation: do not leave a second direct public source that can satisfy the dependency independently. Preserve the original settings rather than editing a machine-wide configuration for an exercise.
Keep @Local as the feed's initial default view. Inspect Feed Settings, Views to confirm it; this view includes directly published packages and saved upstream packages. Changing the default view does not make a read-only view a direct publish destination. Publishing targets the base feed, not an arbitrary release-view endpoint.
Resolve and inspect the stored origin
Use the existing client's supported restore/install operation for the selected working project and exact package version. No new publish command is needed: this example consumes a permitted existing upstream version.
- Confirm that the selected version is not already stored in the new feed and that the isolated client cannot satisfy it from its local cache. Record this starting state.
- As the authorized saving identity, request that version through the single configured feed. Retain the actual client result and source evidence.
- Inspect the feed's stored version and upstream metadata. Match the package identity/version and expected origin to the original approved record.
- Repeat consumption as the permitted reader from an isolated client context. Confirm both the actual request path and the resolved version.
Azure Artifacts searches directly published packages, then saved upstream packages, then configured upstreams in order. Inspect the stored origin instead of concluding that every package found in a feed came from its public upstream. Do not disable an upstream and republish a competing version merely to force a preferred origin in this exercise.
A successful client operation alone is insufficient. Compare its result with the feed metadata and actual source configuration. If no feed request occurred, preserve that observation and correct the isolated test setup; do not report it as a permissions or upstream-saving test.
Promote the validated version and select its consumer view
Confirm that the exact stored version has passed the validation referenced by the owner. Promotion communicates that decision; it does not run validation or change the numerical version.
Use a Feed Publisher (Contributor) or Feed Owner account. In the intended Azure DevOps project, open Artifacts and choose the feed. Select the exact saved package/version already validated for this exercise, choose Promote, select @Release as the destination view, and confirm by choosing Promote again. Reopen the version and inspect its membership in that view. Record the operation's actor, package/version, destination view and observed result. Stop if the selected account or available interface cannot perform the promotion; do not replace it with publishing to a view.
Configure the isolated consumer's single source to the actual owner-supplied connection for the intended release view, keeping the earlier client configuration preserved. Do not construct a view endpoint by guessing a suffix. Request the approved version again and inspect the real resolution result. Check the required dependency graph as well; visibility of the top-level package is not proof that every dependency resolves through this consumer configuration.
Use the same procedure to check a known version not included in the intended consumer set. Record whether it resolves and inspect the actual package graph, view and saved-source conditions. Do not assume that a view name is a universal denial boundary, or that switching the default view changes the publication destination. The acceptance evidence must explain what the actual consumer can obtain.
Verify successful, missing and unauthorized requests
The following matrix is a proposed acceptance record. Populate it with real observations from the bounded environment; it is not fabricated command output.
| Test | Evidence needed |
|---|---|
| Approved upstream version requested by the saving identity | Real request through the sole source, successful save and matching stored origin/version |
| Already saved approved version requested by the permitted reader | Successful authenticated consumption with the same identity/version and source evidence |
| Previously unsaved approved upstream version requested by a reader without saving authority | The saving restriction is observed under controlled cache/feed conditions; any unexpected success is traced to actual roles or an already saved copy |
| Owner-confirmed nonexistent version | A real unsuccessful resolution, with the correct feed, identity and exact requested version retained |
| Private-feed request by the authorized negative-test identity without feed access | Access rejection attributable to the actual identity and feed, without widening access to obtain a different result |
| Promoted version through the intended consumer view | Actual view membership and successful package/dependency resolution consistent with the approved consumer configuration |
For the unsaved-version test, use a second permitted version or perform the test before the saving identity caches the selected version in the feed. Do not delete stored packages to recreate an initial condition. For the missing-version test, obtain the owner's confirmed nonexistent version rather than guessing an identifier that could later become valid.
An unexpected allowance matters as much as a rejection. Check the authenticated identity, its effective role, alternate sources, local caches and existing feed copies. Do not mistake network failure for a permission denial or a denied first-time save for evidence that every read is forbidden.
Compare the registry and authentication choice
Azure Artifacts supports multiple package types in one feed and can serve approved upstream origins through that feed. This exercise selects its NuGet path; it does not imply that the same configuration syntax applies to npm, Maven, Python or another format.
GitHub Packages has format-specific registries and native package clients. Its current introduction lists package formats including npm, RubyGems, Maven/Gradle, NuGet and containers, with registry-dependent permission inheritance or granular access. Choose a documented format and authorization path for the actual repository and consumer.
For GitHub Packages registry authentication, the introduction describes personal access tokens (classic). Within GitHub Actions, GITHUB_TOKEN can publish packages associated with the workflow repository; access to other private packages has additional scope/access conditions. Do not generalize that exception to every registry client or treat an Azure DevOps identity as interchangeable. Billing and account limits are separate conditions to inspect, not evidence that a version is approved.
Restore temporary settings and retain honest end-state evidence
Restore the isolated client's prior source configuration and authentication context, preserving unrelated settings. Have the owner restore any temporary view/default/visibility changes that were actually introduced. Recheck the intended post-exercise consumer behavior using the recorded baseline.
Do not assume promotion can be undone or invent a demotion procedure. Record the promoted version's retained state and ask its owner to choose the supported lifecycle action if it must change. A client configuration rollback does not remove saved upstream packages or reverse a release-view decision.
If the exercise feed is no longer needed, first identify its consumers and preserve required recovery evidence. Only a Feed Owner can delete it. Deletion makes packages unavailable; a documented recovery window is not a guarantee of harmless cleanup. Let the owner decide whether to retain the test feed or use its documented deletion controls. Never delete a shared feed or production package as an automatic final step.
A complete distribution handoff identifies the source configuration, saved package origin, approved view, permitted identities and actual failure behavior. Version meaning belongs to the release-identity lesson; evidence lifetime and retention configuration belong to Retention for Pipeline Outputs and Release Dependencies.
Authoritative Sources
- What are Azure Artifacts feeds? — Private feed scope, creation, visibility, public-project transition and owner-controlled deletion.
- What are feed views? — Default view, read-only consumption and release-quality selection.
- Promote packages and manage feed views — Promotion roles, portal steps and irreversible promotion.
- What are upstream sources? — Single-source configuration, saving roles, origin/search order and release-view use.
- Introduction to GitHub Packages — Formats, native clients, authentication and permission conditions.
- About permissions and security groups — Access levels, effective permissions and assignment scope.

