简体   繁体   English

Azure devops 发布管道使用 BTDF 部署 BizTalk 应用程序

[英]Azure devops release pipeline to deploy BizTalk application using BTDF

We are running BizTalk 2013 (non R2) currently and perform all of our deployments using BTDF.我们目前正在运行 BizTalk 2013(非 R2),并使用 BTDF 执行所有部署。 Whilst we are looking to move to BizTalk 2016, there is a desire to move to Azure devops (and git) first and I have started looking into how we might perform these deployments using pipelines, but have found myself becoming a little lost so just looking for any advice/guidance anyone may have.虽然我们希望迁移到 BizTalk 2016,但希望首先迁移到 Azure devops(和 git),我已经开始研究如何使用管道执行这些部署,但发现自己有点迷失了,所以只是看对于任何人可能有的任何建议/指导。

Current state of play is this:目前state的玩法是这样的:

  • CI build working using the latest visual studio version (2019) in devops在 devops 中使用最新的 Visual Studio 版本(2019)进行 CI 构建
  • BTDF Deployment Framework for BizTalk installed in devops安装在 devops 中的 BizTalk BTDF 部署框架

I have begun creating a pipeline to carry out the deployment, but not exactly sure of the best way to go about it.我已经开始创建一个管道来执行部署,但不完全确定 go 的最佳方式关于它。 I have read several articles and there seems to be two distinct approaches:我已经阅读了几篇文章,似乎有两种不同的方法:

My thoughts on the two approaches are that approach 1 lacks things like msi removal and I'm unsure how you would differentiate between the 2 nodes of a cluster for deployment and as such, have been pursuing approach 2 as it seems to offer the full deployment required per environment.我对这两种方法的看法是,方法 1 缺少诸如 msi 删除之类的东西,我不确定您将如何区分集群的 2 个节点以进行部署,因此,一直在追求方法 2,因为它似乎提供了完整的部署每个环境都需要。 The issue I'm having at the moment are around getting the MSBuild to function.我目前遇到的问题是将 MSBuild 转换为 function。 I'm pointing it at the btdf project, but it fails with BizTalkDeploymentFramework.targets was not found.我将它指向 btdf 项目,但由于BizTalkDeploymentFramework.targets 未找到而失败。 . . Looking at the settings for the MSBuild step you can specify the location of msbuild, but the issue is with the btdf targets file.查看 MSBuild 步骤的设置,您可以指定 msbuild 的位置,但问题在于 btdf 目标文件。

My MSBuild config我的 MSBuild 配置

All in all I'm a bit stumped by the pipelines as there doesn't appear to be much config available to me, but maybe I'm just missing something.总而言之,我有点被管道难住了,因为我似乎没有太多可用的配置,但也许我只是错过了一些东西。 Any advice would be gratefully received.任何建议将不胜感激。

Thanks.谢谢。

This is a little tricky with Azure DevOps because it typically does agentless deployments.这对于 Azure DevOps 来说有点棘手,因为它通常进行无代理部署。 You can simplify the setup by installing Azure DevOps agents on your BizTalk servers, but sometimes that's not possible due to security or other restrictions.您可以通过在 BizTalk 服务器上安装 Azure DevOps 代理来简化设置,但有时由于安全或其他限制,这是不可能的。 (Octopus Deploy is a much more flexible and simpler product to use for BizTalk -- I'd argue most -- deployments.) (Octopus Deploy 是一种更灵活、更简单的产品,可用于 BizTalk——我认为大多数情况——部署。)

You'll need a build process that first builds the BizTalk app solution and then builds the BTDF MSI.您将需要一个构建过程,首先构建 BizTalk 应用解决方案,然后构建 BTDF MSI。 It sounds like you have that working.听起来你有这个工作。 The build artifact should contain the BTDF MSI.构建工件应包含 BTDF MSI。

If you don't have agents on the BizTalk servers, you'll need to set up and use PowerShell Remoting.如果 BizTalk 服务器上没有代理,则需要设置和使用 PowerShell 远程处理。 The script here is a great resource, but be sure to review the comments. 这里的脚本是一个很好的资源,但一定要查看评论。 If you do have agents on the BizTalk servers, you can look at using this Azure DevOps extension.如果您在 BizTalk 服务器上有代理,您可以查看使用Azure DevOps 扩展。

You do NOT need to install BTDF on the BizTalk servers unless you're using the BTDF ESB Toolkit resolver.您不需要在 BizTalk 服务器上安装 BTDF,除非您使用的是 BTDF ESB Toolkit 解析器。

Your error seems to indicate that you're missing some MSBuild parameters or perhaps attempting to run MSBuild on a server other than the actual BizTalk servers with the BTDF MSI installed.您的错误似乎表明您缺少一些 MSBuild 参数,或者可能试图在安装了 BTDF MSI 的实际 BizTalk 服务器以外的服务器上运行 MSBuild。

Be sure to review the "Deploying an Application via Script" topics in the BTDF docs.请务必查看 BTDF 文档中的“通过脚本部署应用程序”主题。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM