无法访问Azure Service Fabric群集端点

时间:2018-09-19 13:03:48

标签: azure-service-fabric

我通过遵循以下URL在Azure门户中创建了Service Fabric群集。 https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-creation-via-portal

创建Service Fabric群集后,我无法浏览“客户端连接终结点”或“ Service Fabric Explorer”。我拒绝访问-HTTP错误403。

我还在我的计算机上安装了在创建服务结构集群时创建的默认证书。

当我尝试从Visual Studio发布时,出现了以下错误消息

Connect-ServiceFabricCluster:无法绑定参数“ StoreLocation”。无法将值“”转换为类型 “ System.Security.Cryptography.X509Certificates.StoreLocation”。错误:“标识符名称无法处理 因为它与以下枚举器名称太相似或完全相同:CurrentUser,LocalMachine。使用更多 特定的标识符名称。” 在C:\ CODE \ DotNetCode \ SFSample \ SFSample \ Scripts \ Deploy-FabricApplication.ps1:185 char:45  ... [无效](Connect-ServiceFabricCluster @ClusterConnectionParameters)                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo:InvalidArgument:(:) [Connect-ServiceFabricCluster],ParameterBindingException     + FullyQualifiedErrorId:CannotConvertArgumentNoMessage,Microsoft.ServiceFabric.Powershell.ConnectCluster

警告:无法验证与Service Fabric群集的连接。 Test-ServiceFabricClusterConnection:群集连接实例为空

1 个答案:

答案 0 :(得分:1)

在您的SF项目中,您有一个名为Cloud.xml的发布配置文件

您应该在其中设置群集的配置,以告知证书的指纹以及证书的存储位置。

类似的东西:

<?xml version="1.0" encoding="utf-8"?>
<PublishProfile xmlns="http://schemas.microsoft.com/2015/05/fabrictools">
  <ClusterConnectionParameters ConnectionEndpoint="mycluster.westus.cloudapp.azure.com:19000"
                                    X509Credential="true"
                                    ServerCertThumbprint="0123456789012345678901234567890123456789"
                                    FindType="FindByThumbprint"
                                    FindValue="9876543210987654321098765432109876543210"
                                    StoreLocation="CurrentUser"
                                    StoreName="My" />

  <ApplicationParameterFile Path="..\ApplicationParameters\Cloud.xml" />
  <CopyPackageParameters CompressPackage="true" />
</PublishProfile>

您可能没有配置它,或者配置有误。

相关问题