Azure Service Fabric - Multiple application deployment through Azure DevOps

↘锁芯ラ 提交于 2021-02-08 09:35:09

问题


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.

[error]Found more than one item with search pattern D:\a\r1\a**\drop\projectartifacts**\PublishProfiles\Cloud.xml. There can be only one.

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

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


回答1:


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.

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

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.



来源:https://stackoverflow.com/questions/52969129/azure-service-fabric-multiple-application-deployment-through-azure-devops

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!