在App Service Environment(ASEv2)中部署到Azure App Service

时间:2018-01-16 07:44:41

标签: deployment azure-devops azure-web-app-service azure-app-service-envrmnt app-service-environment

我在与ASE相同的vNet的不同子网上创建了一个虚拟机构建代理,并添加了一个主机文件(如下所示)。在哪里' bar'是一个自定义域名和' foo'是App Service的名称。

X.X.X.X ase.bar.com  
X.X.X.X foo.scm.ase.bar.com

我指向ASE的管理IP(X.X.X.X),而不是ILB IP地址(我也尝试过)。

有一个vNet到vNet允许所有,http端口80和一个http端口443允许ASE的网络安全组中的规则。我可以通过应用程序网关从公共互联网访问该站点。

以下是构建代理的日志文件,我相信这表明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

0 个答案:

没有答案
相关问题