简体   繁体   English

如何在 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?

I have a private DNS on an app-service, when I try to deploy to it, I am getting and error that it can't find the server to deploy to.我在应用程序服务上有一个私有 DNS,当我尝试部署到它时,我收到错误消息,说它找不到要部署到的服务器。 I think that is because you can access it internally.我认为这是因为您可以在内部访问它。

I wanted to see if I can create a build-agent on Azure that will be responsible for translating those Url to the specified app-service?我想看看我是否可以在 Azure 上创建一个构建代理来负责将这些 Url 转换为指定的应用程序服务? I am not sure how I can go through that.我不确定我该如何度过难关。 Can someone give me some directions on what to do?有人可以给我一些关于该怎么做的指示吗?

According to your previous question, I checked your app from our backend and found it is under ILB ASE .根据您之前的问题,我从后端检查了您的应用程序,发现它在ILB ASE 下

By default, if you'd like to deploy web app manually from local machine (eg VisualStudio), you need make sure the machine can connect to the same virtual network.默认情况下,如果您想从本地机器(例如 VisualStudio)手动部署 Web 应用程序,您需要确保机器可以连接到同一个虚拟网络。

Same as this, Azure devops is an internet-based CI systems, the CI/CD process will be successful with ILB ASE if the Build agent is internet accessible and on the same network as ILB ASE .与此相同,Azure devops 是基于 Internet 的 CI 系统,如果 Build 代理可通过Internet 访问并且与 ILB ASE 位于同一网络上,则 ILB ASE的 CI/CD 过程将成功。 We have detailed explanation on this 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.如果构建代理可通过 Internet 访问并且与 ILB ASE 位于同一网络上,则基于 Internet 的 CI 系统(例如 GitHub 和 Azure DevOps)仍可与 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.因此,对于 Azure DevOps,如果构建代理是在与 ILB ASE 相同的 VNET 上创建的(不同的子网也可以),它将能够从 Azure DevOps git 中提取代码并部署到 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.如果不想创建自己的构建代理,则需要使用使用拉模型的 CI 系统,例如 Dropbox。


How to :如何

You can follow this official blog to deploy a build agent into the vNet where the ASE is deployed.您可以按照此官方博客将构建代理部署到部署了 ASE 的 vNet 中。

Tips :小贴士

We have released the Agent v2.175.2 now, so pls replace the VSTSAgentUrl value to https://vstsagentpackage.azureedge.net/agent/2.175.2/vsts-agent-win-x64-2.175.2.zip .我们现在已经发布了 Agent v2.175.2 ,所以请将VSTSAgentUrl值替换为https://vstsagentpackage.azureedge.net/agent/2.175.2/vsts-agent-win-x64-2.175.2.zip

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure devops 跳过构建管道 - Azure devops skip build pipline 我可以在Azure虚拟机上安装Azure Devops Build Agent吗? - Can I install Azure Devops Build Agent on Azure Virtual Machine? 如何在 Azure DevOps 中定义 blob 存储触发器以创建新版本? - How to define a blob storage trigger in Azure DevOps to create a new release? 如何指定 Azure DevOps 构建代理使用的 git 可执行文件 - How can i specify which git executable an Azure DevOps build agent uses AKS Azure DevOps 构建代理 - AKS Azure DevOps Build Agent 我如何从 Azure Devops 构建/发布管道执行在我的 Azure Databricks 笔记本中编写的 ScalaTest 测试用例 - How do i execute the ScalaTest testcases written in my Azure Databricks notebook from Azure Devops build/release pipeline 如何在 Azure DevOps 发布管道中保存测试结果 - How can I save testing results in Azure DevOps release pipeline 如何仅发布 Azure DevOps 中已更改的工件? - How can i release only artifacts that have changed in Azure DevOps? 为什么我不能将我的 Azure DevOps 存储库导入到新的 Azure DevOps 存储库? - Why can't I import my Azure DevOps repo to a new Azure DevOps repo? 如何在 py 脚本的 azure devops pipline 中调用 repo 路径 - How to call repo path in azure devops pipline for py script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM