exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 2 question 1 discussion

Actual exam question from Microsoft's AZ-203
Question #: 1
Topic #: 2
[All AZ-203 Questions]

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 Suggested Answer Hide Answer
Suggested Answer: Explanation
Step 1: #bin/bash -
The appName is used when the webapp-name is created in step 2.
Step 2: az webapp config hostname add
The webapp-name is used when the webapp is created in step 3.

Step 3: 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 : az webapp confing 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.
In the Cloud Shell, follow the az webapp create command with az webapp config container set.
References:
https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-custom-docker-image

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
AK89
Highly Voted 4 years, 11 months ago
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
upvoted 27 times
Avadhut01
4 years, 10 months ago
Its correct.
upvoted 1 times
...
azurelearner666
4 years, 10 months ago
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..
upvoted 1 times
...
...
andreiyfrag
Highly Voted 5 years, 1 month ago
Optioms: https://vceguide.com/wp-content/uploads/2019/10/Microsoft-AZ-203-date-01-06-2019-00001_Page_050_Image_0001.jpg
upvoted 24 times
...
jhonattansolarte
Most Recent 3 years, 9 months ago
Response (Image) https://user-images.githubusercontent.com/8276103/125330387-50d23c00-e30c-11eb-823a-9723728751ad.png
upvoted 2 times
...
Cornholioz
4 years, 4 months ago
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
upvoted 3 times
...
Nitin121
4 years, 6 months ago
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
upvoted 2 times
...
Nitin121
4 years, 6 months ago
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
upvoted 2 times
Cornholioz
4 years, 4 months ago
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.
upvoted 2 times
...
...
NaliniTomar
4 years, 8 months ago
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-configure-custom-domain
upvoted 1 times
...
Steve_az
4 years, 8 months ago
Refer this link for answer options - https://www.examtopics.com/assets/media/exam-media/02758/0036400001.jpg
upvoted 1 times
...
Iloves73g
4 years, 11 months ago
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...
upvoted 7 times
...
[Removed]
5 years ago
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?
upvoted 10 times
...
tiger123
5 years ago
Step 1. bin/bash Step 2. webapp create Step 3. hostname add Step 4. config container set
upvoted 3 times
...
tiger123
5 years ago
Step1. #bin/bash Step2. az webapp create Step 3. az webapp create Step 4. az webapp config container set
upvoted 1 times
...
heero
5 years, 1 month ago
-az webapp create az webapp confing container set #bin/bash - az webapp config hostname
upvoted 1 times
sagnikmukh
5 years, 1 month ago
wrong -az webapp create need $appName
upvoted 1 times
...
...
MuhamedHaneesh
5 years, 1 month ago
someone please post the options.
upvoted 3 times
...
heero
5 years, 2 months ago
Step 1: #bin/bash - Step 2 -az webapp create Step 3 -az webapp confing container set Step 4- az webapp config hostname
upvoted 19 times
igorcode
5 years, 2 months ago
why? az webapp config container set stands for docker container update. you would want to configure app first and update container later.
upvoted 2 times
heero
5 years, 2 months ago
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
upvoted 57 times
Juanlu
4 years, 5 months ago
Totally agree !
upvoted 1 times
...
...
...
...
TechieBloke
5 years, 3 months ago
Regimiento is right. Even the provided link show the same. Have to create the webapp before the config.
upvoted 3 times
...
Regimiento
5 years, 4 months ago
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
upvoted 14 times
Nick_1
4 years, 10 months ago
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
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago