Question 11 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question 11 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question

DRAG DROP - Fourth Coffee has an ASP.NET Core web app that runs in Docker.

The app is mapped to the www.fourthcoffee.com domain.

Fourth Coffee is migrating this application to Azure.

You need to provision an App Service Web App to host this docker image and map the custom domain to the App Service web app.

A resource group named FourthCoffeePublicWebResourceGroup has been created in the WestUS region that contains an App Service Plan named AppServiceLinuxDockerPlan.

Which order should the CLI commands be used to develop the solution? To answer, move all of the Azure CLI commands from the list of commands to the answer area and arrange them in the correct order.

Select and Place:

Azure CLI Commands

Answer Area

22 webapp config container set
~-docker-c

SdockerHiubContainerPath
name SappName

e-group
fourthCoffeePublicWebResourceGroup

az webapp config hostname add
--webapp-name SappName

ce-group
fourthCoffeePublicWebResourceGroup \
--hostname Sfqdn

fourthCoffeePublic WebResourceGroup

location="WestUS”

kerHubContainerPath="FourthCoffee/publicweb:v1"
="nttp:/Awww_fourthcoffee .com">www fourthcoffee. com

@
©

©O)

Explanations

Azure CLI Commands

Answer Area

‘az webapp config container set
~-docker-custom-image-name
‘$SdockerHubContainerPath
~-name SappName

~-resource-group
fourthCoffeePublicWebResourceGroup

appName="FourthCoffeePublic WebSrandom”
location="WestUS”

ath="FourthCoffee/publicweb:v'

‘kerHubContainerPé
poorer ‘Ineww fourthcotfee. com">www.fourthcottee.c

az webapp config hostname add
--webapp-name SappName

~fesource-group
fourthCoffeePublicWebResourceGroup \
--hostname Sfqdn

@
©

az webapp create
~name

SappName
~-plan AppServiceLinuxDockerPlan
~fesource-group
fourthCoffeePublicWebResourceGroup

fourthCoffeePublic WebResourceGroup

location="WestUS”

-ath="FourthCoffee/publicweb:v1"
="nttp:/Awww_fourthcoffee .com">www fourthcoffee. com

az webapp config container set

~fesource-group
fourthCoffeePublicWebResourceGroup

~resourc
fourthCoffeePublic WebResourceGroup \
~-hostname $fqdn

-
©
|

Step 1: #bin/bash - The appName is used when the webapp-name is created in step 2

Step 2: az webapp create - Create a web app.

In the Cloud Shell, create a web app in the myAppServicePlan App Service plan with the az webapp create command.

Step 3: az webapp config container set In Create a web app, you specified an image on Docker Hub in the az webapp create command.

This is good enough for a public image.

To use a private image, you need to configure your Docker account ID and password in your Azure web app.

Step 4: az webapp config hostname add The webapp-name is used when the webapp is created in step 2

In the Cloud Shell, follow the az webapp create command with az webapp config container set.

https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-custom-docker-image https://docs.microsoft.com/en-us/azure/app-service/tutorial-custom-container?pivots=container-linux https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-configure-custom-domain