0
0
Azurecloud~10 mins

Azure Artifacts for packages - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new Azure Artifacts feed using Azure CLI.

Azure
az artifacts feed create --name [1] --project MyProject
Drag options to blanks, or click blank then click option'
AMyPackage
BMyProject
CMyRepo
DMyFeed
Attempts:
3 left
💡 Hint
Common Mistakes
Using the project name instead of the feed name.
Confusing feed name with package or repository names.
2fill in blank
medium

Complete the command to list all packages in an Azure Artifacts feed.

Azure
az artifacts package list --feed [1] --project MyProject
Drag options to blanks, or click blank then click option'
AMyFeed
BMyRepo
CMyPackage
DMyProject
Attempts:
3 left
💡 Hint
Common Mistakes
Using project name instead of feed name.
Using package name instead of feed name.
3fill in blank
hard

Fix the error in the command to publish a package to Azure Artifacts.

Azure
az artifacts universal publish --feed [1] --name MyPackage --version 1.0.0 --path ./package
Drag options to blanks, or click blank then click option'
AMyFeed
BMyPackage
CMyProject
DMyRepo
Attempts:
3 left
💡 Hint
Common Mistakes
Using package name instead of feed name.
Using project name instead of feed name.
4fill in blank
hard

Fill both blanks to configure npm to use an Azure Artifacts feed.

Azure
npm set registry https://pkgs.dev.azure.com/[1]/_packaging/[2]/npm/registry/
Drag options to blanks, or click blank then click option'
AMyOrganization
BMyProject
CMyFeed
DMyPackage
Attempts:
3 left
💡 Hint
Common Mistakes
Using project name instead of organization.
Using package name instead of feed.
5fill in blank
hard

Fill all three blanks to authenticate npm with Azure Artifacts using a personal access token.

Azure
echo //pkgs.dev.azure.com/[1]/_packaging/[2]/npm/registry/:_authToken=[3] >> ~/.npmrc
Drag options to blanks, or click blank then click option'
AMyOrganization
BMyFeed
CPERSONAL_ACCESS_TOKEN
DMyProject
Attempts:
3 left
💡 Hint
Common Mistakes
Using project name instead of organization.
Using package name instead of feed.
Not using the actual token placeholder.