AZ-204 Quiz

App Service

Question:

As an Azure Cloud Engineer, your company needs you to streamline the deployment process of their web applications. To help achieve this, they've asked you to automate the process using a bash script.

Here's your mission: the script needs to set up an environment in Azure that pulls a Docker container named companywebapp:latest from your company's private registry and deploys it to an Azure App Service in the East US region.

The resources that need to be created include a resource group (tagged with deploy-linux-docker-app-only.sh), an app service plan, and a web app. Can you write a script that fulfills these requirements?

let "randomIdentifier=$RANDOM*$RANDOM"
resourceGroup="msdocs-app-service-rg-$randomIdentifier"
appServicePlan="msdocs-app-service-plan-$randomIdentifier"
webapp="msdocs-web-app-$randomIdentifier"
registryUrl="https://yourCompanyRegistry.azurecr.io"

# Code here


Report a problem
Exam revision: April 11, 2025