我已经设置了一个新的Service Fabric实例,我可以成功连接到Service Fabric Explorer以查看服务的当前状态。我现在想使用powershell连接到Service Fabric实例:
Connect-ServiceFabricCluster -ConnectionEndpoint <path>:19000 -KeepAliveIntervalInSec 10 -X509Credential -ServerCertThumbprint <PrimaryCertificateThumbprint> -FindType FindByThumbprint -FindValue <Admin Client certificate thumbprint installed locally> -StoreLocation CurrentUser -StoreName My
每当我运行此命令时,我都会收到错误:
Connect-ServiceFabricCluster : FABRIC_E_SERVER_AUTHENTICATION_FAILED: 0x800b0109
有谁能告诉我导致此错误的原因以及我如何修复它?
答案 0 :(得分:0)
文档与您的命令略有不同:
PS C:\> $ConnectArgs = @{ ConnectionEndpoint = 'mycluster.cloudapp.net:19000'; X509Credential = $True; StoreLocation = 'CurrentUser'; StoreName = "MY"; ServerCommonName = "mycluster.cloudapp.net"; FindType = 'FindByThumbprint'; FindValue = "AA11BB22CC33DD44EE55FF66AA77BB88CC99DD00" }
PS C:\> Connect-ServiceFabricCluster $ConnectArgs