AZ-204 · Question #110
Drag and Drop Question Fourth Coffee has an ASP.NET Core web app that runs in Docker. The app is mapped to the Fourth Coffee is migrating this application to Azure. You need to provision an App…
The correct answer is # /bin/bash webapp-name="FourthCoffeePublicWebRandom". location="WestUS" dockerHubContainerPath="FourthCoffee/public-web:v1" fqdn="http://www.fourthcoffee.com"; az webapp create --name $appName --plan AppServiceLinuxDockerPlan --resource-group FourthCoffeePublicWebResourceGroup; az webapp config container set --docker-custom-image-name $dockerHubContainerPath --name $appName --resource-group FourthCoffeePublicWebResourceGroup; az webapp config hostname add --webapp-name $appName --resource-group FourthCoffeePublicWebResourceGroup --hostname $fqdn. The correct order is: (1) Set variables/initialization script, (2) Create the web app with az webapp create, (3) Configure the Docker container with az webapp config container set, (4) Map the custom domain with az webapp config hostname add. You must first initialize your…
Question
Exhibit
Answer Area
Drag items
Correct arrangement
/bin/bash webapp-name="FourthCoffeePublicWebRandom". location="WestUS" dockerHubContainerPath="FourthCoffee/public-web:v1" fqdn="http://www.fourthcoffee.com"
- az webapp create --name $appName --plan AppServiceLinuxDockerPlan --resource-group FourthCoffeePublicWebResourceGroup
- az webapp config container set --docker-custom-image-name $dockerHubContainerPath --name $appName --resource-group FourthCoffeePublicWebResourceGroup
- az webapp config hostname add --webapp-name $appName --resource-group FourthCoffeePublicWebResourceGroup --hostname $fqdn
Explanation
The correct order is: (1) Set variables/initialization script, (2) Create the web app with az webapp create, (3) Configure the Docker container with az webapp config container set, (4) Map the custom domain with az webapp config hostname add. You must first initialize your variables, then create the web app resource before you can configure it, then set the container image on the existing app, and finally map the custom domain hostname - each step depends on the successful completion of the prior step.
Topics
Community Discussion
No community discussion yet for this question.
