Microsoft Azure Developer Associate AZ-204 Practice Question
You have an Azure Container Registry named contosoacrrg. The source code for a containerized .NET application resides in the public GitHub repository https://github.com/contoso/api. You need to build the container image in Azure and push it to the registry with tags v1 and latest, all in a single Azure CLI command from your local machine. Which command should you run?
The az acr build command builds container images in Azure Container Registry Tasks and automatically pushes the resulting image to the specified registry. The --registry parameter targets the registry, while multiple --image parameters add the desired tags. Providing the GitHub repository URL as the final argument sets the build context. Other options are incorrect because they either use invalid syntax for az acr build, rely on a local docker build that would not push both tags in one step, or use az acr import, which pulls an already-built image rather than building from source.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure Container Registry (ACR)?
Open an interactive chat with Bash
What is the purpose of the --image parameter in the az acr build command?
Open an interactive chat with Bash
Why is az acr import not suitable for this scenario?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop Azure compute solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .