如何在 Azure 上创建新的构建代理以与我的私有 DNS 和 Azure DevOps 上的发布管道通信?
How can I create a new build agent on Azure to communicate with my private DNS and the release pipline on Azure DevOps?
我在应用程序服务上有一个私有 DNS,当我尝试部署到它时,出现错误,提示找不到要部署到的服务器。我认为那是因为您可以在内部访问它。
我想看看是否可以在 Azure 上创建一个构建代理来负责将那些 Url 转换为指定的应用程序服务?我不确定我该如何度过。有人可以告诉我该怎么做吗?
根据您之前的问题,我从后台检查了您的应用,发现它位于 ILB ASE.
下
默认情况下,如果您想从本地计算机(例如 VisualStudio)手动部署 Web 应用程序,您需要确保该计算机可以连接到同一虚拟网络。
与此相同,Azure devops 是一个 internet-based CI 系统,如果构建代理是 internet 可访问的,CI/CD 过程将通过 ILB ASE 成功 和 与 ILB ASE 在同一网络上。我们对此有详细的解释doc。
Internet-based CI systems, such as GitHub and Azure DevOps, will still
work with an ILB ASE if the build agent is internet accessible and on
the same network as ILB ASE. So in case of Azure DevOps, if the build
agent is created on the same VNET as ILB ASE (different subnet is
fine), it will be able to pull code from Azure DevOps git and deploy
to ILB ASE. If you don't want to create your own build agent, you need
to use a CI system that uses a pull model, such as Dropbox.
如何:
您可以按照此 official blog 将构建代理部署到部署 ASE 的 vNet 中。
提示:
我们现在已经发布了代理 v2.175.2
,所以请将 VSTSAgentUrl 值替换为 https://vstsagentpackage.azureedge.net/agent/2.175.2/vsts-agent-win-x64-2.175.2.zip
。
我在应用程序服务上有一个私有 DNS,当我尝试部署到它时,出现错误,提示找不到要部署到的服务器。我认为那是因为您可以在内部访问它。
我想看看是否可以在 Azure 上创建一个构建代理来负责将那些 Url 转换为指定的应用程序服务?我不确定我该如何度过。有人可以告诉我该怎么做吗?
根据您之前的问题,我从后台检查了您的应用,发现它位于 ILB ASE.
下默认情况下,如果您想从本地计算机(例如 VisualStudio)手动部署 Web 应用程序,您需要确保该计算机可以连接到同一虚拟网络。
与此相同,Azure devops 是一个 internet-based CI 系统,如果构建代理是 internet 可访问的,CI/CD 过程将通过 ILB ASE 成功 和 与 ILB ASE 在同一网络上。我们对此有详细的解释doc。
Internet-based CI systems, such as GitHub and Azure DevOps, will still work with an ILB ASE if the build agent is internet accessible and on the same network as ILB ASE. So in case of Azure DevOps, if the build agent is created on the same VNET as ILB ASE (different subnet is fine), it will be able to pull code from Azure DevOps git and deploy to ILB ASE. If you don't want to create your own build agent, you need to use a CI system that uses a pull model, such as Dropbox.
如何:
您可以按照此 official blog 将构建代理部署到部署 ASE 的 vNet 中。
提示:
我们现在已经发布了代理 v2.175.2
,所以请将 VSTSAgentUrl 值替换为 https://vstsagentpackage.azureedge.net/agent/2.175.2/vsts-agent-win-x64-2.175.2.zip
。