AZ-400 ยท Package management
GitHub Packages vs Azure Artifacts
Supported package types, registries, permissions and authentication, billing and storage, picking a tool for a given ecosystem and platform.
Key points
- Both host private npm, NuGet and Maven packages.
- Azure Artifacts adds Python, Cargo, Universal Packages, plus feeds, views and upstream sources caching public registries.
- Azure Artifacts access: feed roles; 2 GiB free per organization.
- GitHub Packages adds RubyGems, Gradle, container images; permissions from repositories.
- GitHub tokens: classic PAT, or GITHUB_TOKEN in Actions.
- Pick by ecosystem and where code and pipelines live.
Practice questions
Which ecosystem is hosted by GitHub Packages but is not among the package types of Azure Artifacts feeds?
- RubyGems
- NuGet
- Maven
- npm
Show answer
Answer: A. RubyGems
GitHub Packages offers a RubyGems registry; Azure Artifacts feeds cover NuGet, npm, Python, Maven, Cargo and Universal Packages. NuGet, Maven and npm exist in both.
Which statements about authenticating to GitHub Packages are true?
- Installing a private package from another repository can use a classic personal access token with read:packages
- In GitHub Actions, GITHUB_TOKEN can publish a package for the workflow's own repository
- Feed roles such as Collaborator and Contributor control access
- Publishing needs no token if the repository is public
- Microsoft Entra ID service connections are the only supported credential
Show answer
Answer: A. Installing a private package from another repository can use a classic personal access token with read:packages, B. In GitHub Actions, GITHUB_TOKEN can publish a package for the workflow's own repository
Classic PATs and GITHUB_TOKEN are the documented credentials. Feed roles belong to Azure Artifacts, and tokens are needed to publish even public packages.
Azure Artifacts gives each organization unlimited free storage for packages.
Show answer
Answer: False
Each organization gets 2 GiB free. Beyond that, publishing stops until billing is set up and the storage limit is raised.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
