FREE STUDY NOTES · AZ-401

Azure Artifacts or GitHub Packages: recommending a package platform

How the two package platforms compare on feeds, upstream sources, permissions and billing.

From Ultra Transcenders AZ-401 by Tony Rough

The right platform usually follows the code and the CI system, but ecosystem coverage, container support, quality channels and billing can override that default. Check each requirement against what the platform actually documents rather than assuming parity.

Azure Artifacts hosts feeds that hold NuGet, npm, Python, Maven (including Gradle clients), Cargo and Universal Packages side by side. Universal Packages are available only in Azure DevOps Services, not in Azure DevOps Server 2022, and a single file can be up to 4 TiB, which makes them the documented option for large binaries that have no natural package manager. Other package types are limited to 500 MiB per file, and npm adds a hard 375 KB limit on package.json. Each organisation gets 2 GiB of Artifacts storage free; once that is used, publishing stops until packages are deleted or billing is set up with a usage limit of No limit, pay for what you use.

GitHub Packages offers registries for npm, RubyGems, Apache Maven, Gradle, NuGet (through the dotnet CLI) and Docker, with the Container registry optimised for Docker and OCI images. Python and Cargo are not in its list of supported registries, and Azure Artifacts has no container image feed type, so a solution that needs both Python libraries and container images often ends up using both products.

Decision point Azure Artifacts GitHub Packages
Ecosystems documented NuGet, npm, Python, Maven/Gradle, Cargo, Universal Packages npm, RubyGems, Maven, Gradle, NuGet, Docker/OCI images
Large arbitrary binaries Universal Packages (Services only), 4 TiB per file No generic package type
Caching public registries Upstream sources, saved into the feed Not offered
Quality channels Feed views (@Local, @Prerelease, @Release) Versions only
CI identity Project and Project Collection Build Service identities GITHUB_TOKEN in GitHub Actions
Human access Feed roles; credential provider or PAT Read, Write, Admin roles; personal access token (classic)
Free allowance 2 GiB per organisation Public packages free; private quota depends on plan
Container images Not a feed type Container registry (ghcr.io), storage currently free

A common hybrid keeps code and workflows in GitHub but publishes libraries to Azure Artifacts so that teams get upstream sources and views. Learn documents two ways for a GitHub Actions workflow to push to a feed: a user-assigned managed identity with a federated credential that trusts the repository (signed in with azure/login, then a token passed to the Azure Artifacts credential provider), or an Azure DevOps PAT with Packaging read, write and manage scope stored as a GitHub secret. Learn calls the managed identity route the more secure option, because there is no long-lived secret to rotate.

AI assistance when preparing packages

Learn’s getting-started walkthrough for Azure Artifacts shows GitHub Copilot Chat in Visual Studio Code adding package metadata (PackageId, Version, Authors) to a project file and then running the build and dotnet pack after the user confirms each step. Treat this as a productivity aid for authoring, not as part of the release path: the version number Copilot writes is still subject to the versioning rules later in this chapter, and the pipeline, not the developer’s workstation, should publish to the feed.

Common trap: Assuming a public feed will stay reachable from the internet indefinitely - public feeds inherit visibility from public projects, and Learn states that existing public projects convert to private starting in 2027, at which point public feeds stop being publicly accessible.

Get the whole book

This note is one section of Ultra Transcenders AZ-401: Designing and Implementing Microsoft Agentic DevOps Solutions, an independent study guide that explains every topic the exam covers by technology, with comparison tables, diagrams and the common traps, plus a glossary linked to Microsoft Learn.

Amazon.co.ukKindlePaperback
Amazon.comKindlePaperback

Free to read with Kindle Unlimited. Opens Amazon in a new tab.

About the book · AZ-401 terms in the glossary · All AZ-401 study notes

More AZ-401 study notes