在Azure的内部应用程序服务环境(ASE ILB)内部署应用程序到Azure App Service

时间:2017-12-13 05:12:54

标签: azure azure-virtual-network azure-app-service-envrmnt azure-ilb azure-ase

我在Azure内部的VNET中创建了一个ILB。

enter image description here

我创建了ASE(ILB)的应用服务计划,如下所示:

enter image description here

我在ILB内部托管了一个应用程序。如下所示

enter image description here

要访问域,我在VNET内部创建了一个虚拟机,并在该虚拟机内添加了一个主机条目。

192.168.251.11 bb-pg-backend.bb-pg-ase2-app

所以,当我点击上面的网址(http://bb-pg-backend.bb-pg-ase2-app)时,我可以看到下面的页面。

enter image description here

现在,从VM内部,我想将我的代码发布到应用服务。我可以成功创建配置文件。

enter image description here

它显示的错误是

enter image description here

它是否应该自动与Azure ASE(ILB)绑定并将代码发布到应用服务?

1 个答案:

答案 0 :(得分:1)

当我从Azure下载发布配置文件时,我找到了以下网址。

  

publishUrl = “BB-PG-backend.scm.bb-PG-ASE2应用内:443”

enter image description here

所以,我添加了一个带有scm word

的新主机条目
192.168.251.11 bb-pg-backend.scm.bb-pg-ase2-app

然后我可以从Visual Studio成功部署。带有值控制器的空Web api应用程序将返回如下所示的数据。

enter image description here

这就是全部。谢谢。