c# - Azure Service Fabric 持续集成在 Visual Studio Team Services 中失败(以前是 VSO)

标签 c# azure azure-devops azure-service-fabric azure-pipelines

我尝试设置持续集成,以便在 Team Services 中的 git Push 事件上自动部署我的 Azure Service Fabric 群集。我遵循基于本指南的团队服务构建定义和团队服务发布定义的默认模板:

Set up continuous integration for a Service Fabric application by using Visual Studio Team Services

这是我的设置: Build Definition Release Definition

在大多数情况下,第一次部署时一切正常。之后它会抛出以下错误:

An application with name 'fabric:/<APP>' already exists, its type is '<APP>Type' and version is '1.0.0.20160812.7'. You must first remove the existing application before a new application can be deployed or provide a new name for the application.

由此看来,它似乎正在尝试完全重新部署服务,而不仅仅是升级服务。我已搜索了所有设置并尝试创建和重新创建任务,但未能解决。

有人遇到过这种情况吗?

最佳答案

您需要添加或更新发布配置文件以启用升级模式,并在首次部署成功后使用该配置文件部署 Service Fabric。

要快速完成此操作,您可以右键单击您的项目并从 Visual Studio 中选择“发布”,选中“升级应用程序”选项并单击“配置升级设置”(如果需要),然后单击“保存配置文件”链接并提交/推送更改。 enter image description here

关于c# - Azure Service Fabric 持续集成在 Visual Studio Team Services 中失败(以前是 VSO),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38945060/

相关文章:

c# - LINQ-to-SQL - 'Sum' 里面选择新

c# - Object.ReferenceEquals 的行为不符合预期

azure - 使用 Azure 通知中心进行徽章管理

c# - 使用 EWS 和 OAuth 读取邮箱时禁止 403

Azure 表单识别器仅在指定表所在页面时提取表

azure - 如何在azure devops中运行docker容器?

azure-devops - 如何从 Azure DevOps 管道中的另一个作业访问 InvokeRestAPI 任务的响应?

c# - 从 DataTable 中获取一个 bool 值

c# - EWS 以其他格式保存/导出 EmailMessage

azure-devops - Docker 的 Azure 管道错误 "Client version 1.18 is too old. Minimum supported API version is 1.24"