我在与 ASE 相同的 vNet 的不同子网上创建了一个虚拟机构建代理,并添加了一个主机文件(如下)。其中“bar”是自定义域名,“foo”是应用服务的名称。
X.X.X.X ase.bar.com
X.X.X.X foo.scm.ase.bar.com
我指的是 ASE (XXXX) 的管理 IP,而不是 ILB IP 地址(我也尝试过)。
在 ASE 的网络安全组中有一个 vNet 到 vNet 允许所有、http 端口 80 和一个 http 端口 443 允许规则。我可以通过应用程序网关从公共 Internet 访问该站点。
这是来自构建代理的日志文件,我相信它表明 msdeploy.exe 可用(这是我得到的唯一真正的错误)。
2018-01-16T07:11:00.2540236Z ==============================================================================
2018-01-16T07:11:00.2540236Z Task : Azure App Service Deploy
2018-01-16T07:11:00.2540236Z Description : Update Azure WebApp Services On Windows, Web App On Linux with built-in images or docker containers, ASP.NET, .NET Core, PHP, Python or Node based Web applications, Function Apps, Mobile Apps, Api applications, Web Jobs using Web Deploy / Kudu REST APIs
2018-01-16T07:11:00.2540236Z Version : 3.3.32
2018-01-16T07:11:00.2540236Z Author : Microsoft Corporation
2018-01-16T07:11:00.2540236Z Help : [More Information](https://aka.ms/azurermwebdeployreadme)
2018-01-16T07:11:00.2540236Z ==============================================================================
2018-01-16T07:11:02.8799772Z Got connection details for Azure App Service:'webapp-foo'
2018-01-16T07:11:03.0925290Z [command]"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='C:\AGENT-DEPLOY\_work\r1\a\Drop\drop\fooWebApp.zip' -dest:auto,ComputerName='https://foo.scm.ase.bar.com:443/msdeploy.axd?site=foo',UserName='********',Password='********',AuthType='Basic' -setParam:name='IIS Web Application Name',value='foo' -allowUntrusted -enableRule:DoNotDeleteRule -userAgent:VSTS_f9d82ee3-5a3a-4ad7-a346-2f007ffd3714_release_1_4_4_12
2018-01-16T07:11:03.3894107Z Info: Using ID 'a2a46e66-4bbf-40e5-954c-95f4bff4d7a8' for connections to the remote server.
2018-01-16T07:11:24.4945264Z ##[error]Failed to deploy web package to App Service.
2018-01-16T07:11:24.4945264Z ##[error]Error Code: ERROR_DESTINATION_NOT_REACHABLE
More Information: Could not connect to the remote computer ("foo.scm.ase.bar.com"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.
Error: Unable to connect to the remote server
Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond X.X.X.X:443
Error count: 1.
2018-01-16T07:11:24.4945264Z ##[error]Error: C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe failed with return code: 4294967295
2018-01-16T07:11:45.5308399Z ##[warning]Error: connect ETIMEDOUT X.X.X.X:443
2018-01-16T07:11:45.5308399Z ##[section]Finishing: Deploy Azure App Service
2018-01-16T07:11:45.5464533Z ##[section]Finishing: Release