AZ-204 Quiz

Containers

Question:

As a developer in a startup, you're helping your team transition to Microsoft Azure. Your task is to deploy a containerized API service, MyAPI, on Azure from an older Linux workstation. The source code for MyAPI is stored locally in the ./src directory and is also tracked on the GitHub repository myuser/myrepo.

Before deploying, you'll need to create a production environment named prod. The Azure CLI on your workstation should be up-to-date, but given its age and the type of service you're deploying, you're unsure if all necessary tools and extensions are available.

MyAPI utilizes services that allow for hosting of RESTful APIs and collection and analysis of telemetry data. So, ensure to configure your Azure account accordingly before deployment. Once your local setup is prepared, deploy MyAPI to a resource group named MyResourceGroup in the eastus region using the prod environment.

Can you draft an Azure CLI script to achieve these tasks?

# Code here


Report a problem
Exam revision: April 11, 2025