从 Azure DevOps 部署到应用服务环境

Deploying to App Service Environment from Azure DevOps

我们在一个子网中有 1 个 internal ASE。在同一网络的不同子网中,我们部署了一个充当 Azure DevOps Agent Windows v2

的虚拟机

我们能够从访问此虚拟网络的计算机手动部署 Web 应用程序(使用 Visual Studio),但无法从 Azure DevOps 进行部署。

这是我们所做的

我们在部署过程中得到的错误是:

More Information: Could not connect to the remote computer ("{myapp}.scm.{customdomain}.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 xx.xx.xx.xx:443
Error count: 1.

我们是否遗漏了 NSG 规则中的任何内容?

基于 Internet 的 CI 系统,例如 GitHub 和 Azure DevOps,如果构建代理可通过 Internet 访问并且与 ILB ASE 在同一网络上,则仍将使用 ILB ASE。因此,对于 Azure DevOps,如果构建代理是在与 ILB ASE 相同的 VNET 上创建的(不同的子网也可以),它将能够从 Azure DevOps git 中提取代码并部署到 ILB ASE。

https://docs.microsoft.com/en-us/azure/app-service/environment/create-ilb-ase

您也可以按照this文章中的详细步骤进行操作

希望对您有所帮助!