Azure Service Fabric-通过Azure DevOps进行多个应用程序部署 [英] Azure Service Fabric - Multiple application deployment through Azure DevOps

查看:60
本文介绍了Azure Service Fabric-通过Azure DevOps进行多个应用程序部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个在Azure Service Fabric群集中运行的微服务应用程序.从Visual Studio部署应用程序时,我没有任何问题.但是,当我尝试通过Azure DevOps CI/CD管道部署应用程序时,出现以下错误.

I have a two microservices applications running in Azure Service fabric cluster. I don't have any issue when I deploy the applications from Visual Studio. But when I try to deploy the applications through Azure DevOps CI/CD pipeline I'm getting the below error.

[错误]找到了多个搜索模式为D:\ a \ r1 \ a ** \ drop \ projectartifacts ** \ PublishProfiles \ Cloud.xml的项目.只能有一个.

从此错误消息中我可以理解,我在解决方案中应该只有一个Cloud.xml文件.

From this error message what I can understand I should have only one Cloud.xml file in the solution.

我想知道在Azure Service Fabric群集中创建多个应用程序的最佳实践以及如何解决该错误.

I would like to know the best practices to create multiple applications in Azure Service Fabric cluster and how to resolve the error.

推荐答案

解决方案中有两个SF应用程序.如果要同时构建这两个文件并将其放到同一文件夹中,则将有两个cloud.xml文件.

You have two SF applications in the solution. If you are building both and dropping then on the same folder, you will have two cloud.xml files.

由于您指定了广泛的搜索模式,因此可以同时找到两者.

Because you specified a broad search pattern, it will find both.

您没有告诉哪个任务引发此异常,我将假定它是Deploy Service Fabric应用程序.

You didn't tell which task is throwing this exception, I will assume it is the Deploy Service Fabric Application.

要部署这两个应用程序,您应该有两个步骤,一个指向每个应用程序,然后应该修复搜索模式,以更具体地确定要部署的SF App.

To deploy both applications, you should have two steps, one pointing to each application, then you should fix the search pattern to be more specific on which SF App you are deploying.

这篇关于Azure Service Fabric-通过Azure DevOps进行多个应用程序部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆