AZ-204 Quiz

← Back to Topics

Containers (1 / 61):

Given a Dockerfile in your current directory with the following content:

FROM mcr.microsoft.com/hello-world


You are asked to run an image in Azure from a Container Registry named myContainerRegistry008. The image should be tagged as sample/hello-world:v1.

Assume that the Azure subscription and Azure CLI have already been configured on your local system. However, the necessary resources for running the image, such as the resource group and container registry, have not yet been created.

Considering all these requirements, write down the sequence of Azure CLI commands necessary to successfully run the image from the specified container registry.

Exam revision: April 11, 2025