0
0
Azurecloud~10 mins

Azure Container Registry (ACR) - 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 an Azure Container Registry with the Azure CLI.

Azure
az acr create --resource-group myResourceGroup --name myRegistry [1] --sku Basic
Drag options to blanks, or click blank then click option'
A--location westus
B--location centralus
C--location eastus
D--location northcentralus
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the --location parameter causes the command to fail.
Using an invalid or misspelled region name.
2fill in blank
medium

Complete the code to log in to your Azure Container Registry using the Azure CLI.

Azure
az acr [1] --name myRegistry
Drag options to blanks, or click blank then click option'
Alogin
Bdelete
Ccreate
Dpush
Attempts:
3 left
💡 Hint
Common Mistakes
Using push instead of login.
Trying to create the registry again instead of logging in.
3fill in blank
hard

Fix the error in the command to push a Docker image to your Azure Container Registry.

Azure
docker [1] myRegistry.azurecr.io/myapp:v1
Drag options to blanks, or click blank then click option'
Abuild
Bpull
Crun
Dpush
Attempts:
3 left
💡 Hint
Common Mistakes
Using pull instead of push.
Using run which executes containers, not uploads images.
4fill in blank
hard

Fill both blanks to create a repository in Azure Container Registry and tag a local image correctly.

Azure
docker [1] myapp:latest myRegistry.azurecr.io/myapp:[2]
Drag options to blanks, or click blank then click option'
Atag
Bpush
Cv1
Dbuild
Attempts:
3 left
💡 Hint
Common Mistakes
Using push instead of tag for labeling images.
Forgetting to specify a tag version.
5fill in blank
hard

Fill all three blanks to write a command that lists repositories in your Azure Container Registry.

Azure
az acr repository [1] --name myRegistry --output [2] --query [3]
Drag options to blanks, or click blank then click option'
Alist
Btable
C[].name
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using delete instead of list.
Not specifying output format or query correctly.