AZ-203 Exam QuestionsBrowse all questions from this exam

AZ-203 Exam - Question 12


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 command from the list of commands to the answer area and arrange them in the correct order.

Select and Place:

Show Answer
Correct Answer:

To migrate the ASP.NET Core web app that runs in Docker to Azure, and map the custom domain to the App Service web app, you should perform the steps in the following order using Azure CLI commands: Step 1 (Initialize the shell script): #!/bin/bash; Step 2 (Create the web app): az webapp create --resource-group FourthCoffeePublicWebResourceGroup --plan AppServiceLinuxDockerPlan --name <appName>; Step 3 (Configure the Docker container): az webapp config container set --name <appName> --resource-group FourthCoffeePublicWebResourceGroup --docker-custom-image-name <imageName>; Step 4 (Map the custom domain): az webapp config hostname add --webapp-name <appName> --resource-group FourthCoffeePublicWebResourceGroup --hostname www.fourthcoffee.com. This order ensures that the web app is created first, the Docker container is then configured, and finally, the custom domain is mapped to the created web app.

Discussion

17 comments
Sign in to comment
AK89
May 26, 2020

Step 1: #bin/bash - Step 2 -az webapp create Step 3 -az webapp config container set Step 4- az webapp config hostname The custom domain mapping is done after the app is in place running. So it will be the last step in the process. Link : https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-custom-docker-image https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain?toc=/azure/app-service/containers/toc.json

Avadhut01
Jun 14, 2020

Its correct.

azurelearner666
Jun 24, 2020

Agree, it seems the most correct response. But it seems that in all the exam pdf's it is wrongly evaluated... guess we will see..

andreiyfrag
Mar 9, 2020

Optioms: https://vceguide.com/wp-content/uploads/2019/10/Microsoft-AZ-203-date-01-06-2019-00001_Page_050_Image_0001.jpg

heero
Feb 24, 2020

Step 1: #bin/bash - Step 2 -az webapp create Step 3 -az webapp confing container set Step 4- az webapp config hostname

igorcode
Feb 26, 2020

why? az webapp config container set stands for docker container update. you would want to configure app first and update container later.

heero
Feb 27, 2020

yes indeed , the correct order is : Step 1: #bin/bash - Step 2 -az webapp create Step 3- az webapp config hostname Step 4 -az webapp confing container set

Juanlu
Nov 27, 2020

Totally agree !

Juanlu
Nov 27, 2020

Totally agree !

heero
Feb 27, 2020

yes indeed , the correct order is : Step 1: #bin/bash - Step 2 -az webapp create Step 3- az webapp config hostname Step 4 -az webapp confing container set

Juanlu
Nov 27, 2020

Totally agree !

Juanlu
Nov 27, 2020

Totally agree !

Regimiento
Dec 10, 2019

The answer has incorrect order: you first have to create web app, then you can config it. Therefore step 2 : az webapp create step 3: az webapp config hostname add

Nick_1
Jun 30, 2020

The answer is correct as listed. The question does not mention that the image resides on local container, you need to upload to the ACR, hence you have that tag :v1 In the same script the use the variable to define the webapp name, hence you can use this until the webapp is created, step 3

[Removed]
Apr 25, 2020

Shouldn't the order be: Step 1: #bin/bash - Step 2 -az webapp create Step 3 -az webapp config container set Step 4- az webapp config hostname So that there is minimal downtime for anyone accessing the app via the domain name?

Iloves73g
May 14, 2020

Step 1: #bin/bash - Step 2 -az webapp create Step 3 -az webapp config container set Step 4- az webapp config hostname if without az webapp confing container set, webapp is not created, here config hostname has not place to do...

TechieBloke
Jan 15, 2020

Regimiento is right. Even the provided link show the same. Have to create the webapp before the config.

MuhamedHaneesh
Mar 8, 2020

someone please post the options.

tiger123
Apr 6, 2020

Step 1. bin/bash Step 2. webapp create Step 3. hostname add Step 4. config container set

Cornholioz
Dec 24, 2020

Looked around quite a bit. Haven't found anything conclusive about the order of the last two steps. I'm going with config container set and then hostname add. 1. #bin/bash 2. az webapp create 3. az webapp config container set 4. az webapp config hostname Samples I'm pasting are not conclusive, but might help someone who wants to code this: https://github.com/Azure-Samples/azure-cli-samples/blob/master/app-service/deploy-linux-docker/deploy-linux-docker.sh https://azx.ms/details/webapp_container

Nitin121
Oct 25, 2020

https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-configure-custom-domain correct order for the option 1)Bash 2)Web app cretae 3)hostname4)Container

Cornholioz
Dec 27, 2020

The link is not for container. The ambiguity is on the last 2 steps. Should the Container be set before or after configuring the Host name. I haven't tested it with a PS myself but for now, I'm going with Container Set config before Host name config.

Nitin121
Oct 25, 2020

https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-linux-docker-aspnetcore?toc=/cli/azure/toc.json https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-configure-custom-domain

jhonattansolarte
Jul 12, 2021

Response (Image) https://user-images.githubusercontent.com/8276103/125330387-50d23c00-e30c-11eb-823a-9723728751ad.png

heero
Mar 10, 2020

-az webapp create az webapp confing container set #bin/bash - az webapp config hostname

sagnikmukh
Mar 11, 2020

wrong -az webapp create need $appName

tiger123
Apr 6, 2020

Step1. #bin/bash Step2. az webapp create Step 3. az webapp create Step 4. az webapp config container set

Steve_az
Aug 8, 2020

Refer this link for answer options - https://www.examtopics.com/assets/media/exam-media/02758/0036400001.jpg

NaliniTomar
Aug 23, 2020

https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-configure-custom-domain