Azure Web 应用程序部署

Sam*_*Sam 3 azure azure-deployment

我正在准备 AZ-204 考试,并遇到了一系列问题。我正在尝试解决一个问题,它与通过 cli 部署 Web 应用程序有关。我给出的答案在一个地方有所不同,那就是通过主机名绑定az webapp config hostname

这是被问到的问题

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:
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

我输入的顺序是 id,答案是从上到下的数字 1 - 4

4, 3, 2, 1

但答案是 在此输入图像描述

我的疑问是,如何设置尚未创建的 Web 应用程序的主机名,或者这是一个未正确复制答案的狡猾网站。微软文档没有提供任何答案

Hil*_*lal 6

答案应该是 4 3 1 2 或 4 3 2 1(没关系)

4 - 设置任何所需的变量

3 - 创建网络应用程序

1 - 配置容器

2 - 设置完全限定域名

或者你可以选择 4 3 2 1

屏幕截图中提供的答案是错误的,您无法在创建 Web 应用程序之前添加主机名。

这可能是一个狡猾的网站,不知道容器和网络应用程序如何工作