【问题标题】:Unable to publish app to azure service fabric无法将应用发布到 Azure 服务结构
【发布时间】:2020-06-24 11:18:43
【问题描述】:

运行应用程序后,我在 Visual Studio 中遇到错误。 我什至已经卸载/安装了 azure service fabric cluster SDK,但它没有用。 我什至重置了服务结构集群

    New-ServiceFabricApplication : One or more placement constraints on the service are undefined on all nodes that are 
    currently up.
    At C:\Program Files\Microsoft SDKs\Service 
    Fabric\Tools\PSModule\ServiceFabricSDK\Publish-NewServiceFabricApplication.ps1:358 char:9
    +         New-ServiceFabricApplication -ApplicationName $ApplicationNam ...
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (Microsoft.Servi...usterConnection:ClusterConnection) [New-ServiceFabr 
       icApplication], FabricTransientException
        + FullyQualifiedErrorId : CreateApplicationInstanceErrorId,Microsoft.ServiceFabric.Powershell.NewApplication

【问题讨论】:

  • 嗨沙拉特。如果解决了您的问题,您能否接受答案?

标签: asp.net-core azure-service-fabric


【解决方案1】:

首先您需要了解本地/测试环境和生产环境之间存在差异。

本地/测试环境 => 表示您机器上安装的本地集群。

生产环境 => 表示部署在云服务器上的集群。

在云环境中有两种类型的节点(前端和后端节点)可用,但在本地环境中并非如此。

因此,在本地运行应用程序或在云上部署时,请检查放置约束。

请参阅此blog,它将帮助您更好地理解这个概念。

【讨论】:

  • 谢谢 Deepak Tatyaji Ahire
  • 如果我的回答解决了您的问题@sharathjoshi,请点赞并接受我的回答(点击支持/反对票按钮下方的正确答案勾号)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-11-21
  • 2022-12-10
  • 2017-11-07
  • 2019-03-22
  • 2018-09-20
  • 1970-01-01
  • 2021-06-06
相关资源
最近更新 更多