【问题标题】:Unable to deploy to Azure Service Fabric party cluster from Visual Studio 2017无法从 Visual Studio 2017 部署到 Azure Service Fabric 方群集
【发布时间】:2018-06-23 08:36:48
【问题描述】:

我正在尝试向服务结构集群发布解决方案,但出现了问题。我可以访问派对集群,下载证书并安装。连接到 Service Fabric Explorer 可以正常工作。使用 Powershell 连接到集群似乎可行。但是 Visual Studio 2017 中的“发布 Service Fabric 应用程序”对话框不接受连接端点,并在文本框旁边显示一个红色图标。如果我尝试发布解决方案,我会在控制台中得到以下输出:

WARNING: Failed to contact Naming Service. Attempting to contact Failover Manager Service...

4>WARNING: Failed to contact Failover Manager Service, Attempting to contact FMM...

4>Connect-ServiceFabricCluster : Could not ping any of the provided Service Fabric gateway endpoints.

4>At C:\Users\jnsst\source\repos\Voting\Voting\Scripts\Deploy-FabricApplication.ps1:185 char:16

4>+ ...      [void](Connect-ServiceFabricCluster @ClusterConnectionParameters ...

4>+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

4>    + CategoryInfo          : InvalidOperation: (:) [Connect-ServiceFabricCluster], FabricTransientException

4>    + FullyQualifiedErrorId : TestClusterConnectionerror.Id,Microsoft.ServiceFabric.Powershell.ConnectCluster

4> 

4>WARNING: Unable to Verify connection to Service Fabric cluster.

4>Test-ServiceFabricClusterConnection : Cluster connection instance is null

我已按照 docs.microsoft.com 上的所有说明进行操作,但显然我做错了什么。可能是一些愚蠢的小错误。

我正在 Windows 10 上运行 Visual Studio 2017 Community。

也许我需要告诉 Visual Studio 证书的存储位置?

你有什么想法吗?

【问题讨论】:

    标签: azure azure-service-fabric


    【解决方案1】:
    • 在您的个人存储中安装证书,确保它具有私钥
    • 确保您的发布配置文件 (cloud.xml) 与此类似:

    <ClusterConnectionParameters ConnectionEndpoint="mycluster.westus.cloudapp.azure.com:19000" X509Credential="true" ServerCertThumbprint="0123456789012345678901234567890123456789" FindType="FindByThumbprint" FindValue="9876543210987654321098765432109876543210" StoreLocation="CurrentUser" StoreName="My" />

    【讨论】:

    • 嗨!我使用 powershell 从证书中获取指纹并在 cloud.xml 文件中使用它。我从 MS 教程中得到的印象是,一切都应该“开箱即用”,而不会弄乱 cloud.xml 文件,但现在它工作正常!非常感谢!
    • 安装证书时出错:Import-PfxCertificate:您尝试导入的 PFX 文件需要不同的密码或受保护的 Active Directory 主体的成员身份。
    • 找到了答案:在他们提到密码的方式页面中
    猜你喜欢
    • 2016-11-24
    • 2018-11-09
    • 2018-12-11
    • 1970-01-01
    • 2018-02-20
    • 2016-09-28
    • 2020-01-12
    • 2018-07-03
    • 2017-08-06
    相关资源
    最近更新 更多