从 Azure VM 连接到 Azure Service Fabric 集群

Connecting to Azure Service Fabric cluster from Azure VM

我正在尝试从我刚刚设置的新 Azure 虚拟机连接到我的 Azure Service Fabric 集群。但是当我使用 Connect-ServiceFabricCluster cmdlet 时收到以下错误消息:

Connect-ServiceFabricCluster : An error occurred during this operation.  Please check the trace logs for more details.
At line:1 char:1
+ Connect-ServiceFabricCluster -ConnectionEndpoint ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Connect-ServiceFabricCluster], FabricException
    + FullyQualifiedErrorId : CreateClusterConnectionErrorId,Microsoft.ServiceFabric.Powershell.ConnectCluster

我在 powershell 中使用的命令是(值被混淆):

Connect-ServiceFabricCluster -ConnectionEndpoint {ENDPOINT ADDRESS} -FindType FindByThumbprint -FindValue {THUMBPRINT} -X509Credential -ServerCertThumbprint {THUMBPRINT} -StoreLocation CurrentUser -StoreName My

当我在我的开发 PC 上使用完全相同的命令时,它工作得很好。欢迎任何关于问题出在哪里以及如何调试的建议!

确保您已将客户端证书安装在 VM 上 Connect-ServiceFabricCluster cmdlet 参数中指定的位置。