Bitzu

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.

Source: https://learn.microsoft.com/en-us/azure/devops/artifacts/start-using-azure-artifacts?view=azure-devops

Practice questions

Single choice

Which ecosystem is hosted by GitHub Packages but is not among the package types of Azure Artifacts feeds?

  1. RubyGems
  2. NuGet
  3. Maven
  4. 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.

Select all that apply

Which statements about authenticating to GitHub Packages are true?

  1. Installing a private package from another repository can use a classic personal access token with read:packages
  2. In GitHub Actions, GITHUB_TOKEN can publish a package for the workflow's own repository
  3. Feed roles such as Collaborator and Contributor control access
  4. Publishing needs no token if the repository is public
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More AZ-400 topics in this module