question

ParthTyagi-9346 avatar image
0 Votes"
ParthTyagi-9346 asked vipullag-MSFT answered

Connect to service fabric cluster

Hi Team,

I've created a single node service fabric cluster in the portal. It is secured with a certificate which is placed in keyvault. I've installed my certificate on the my machine for the current user but I still can't connect to the cluster.

I'm trying to connect to the cluster using powershell command:

Connect-ServiceFabricCluster -ConnectionEndpoint '<endpoint>' -KeepAliveIntervalInSec 10 `
       -X509Credential `
       -ServerCertThumbprint '<certificatethumbprint>'  `
       -FindType FindByThumbprint `
       -FindValue '<certificatethumbprint>' `
       -StoreLocation CurrentUser `
       -StoreName My `
       -Verbose


The error I get:
126244-image.png


Is there anything I'm missing. I'm downloading the certificate from the keyvault and installing it as part of the personal folder for current user.


azure-service-fabric
image.png (189.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ParthTyagi-9346

Can you share few more details on this issue to assist you better.

Is this a new cluster that is created? If No, have you been able to connect to it before?
How was the cert created? I assume the cert is still valid and hasn't expired.

Here is a similar issue , where the issue was with creation of the certificate.
Requesting to check your certificate once.

Your command is correct.

 Connect-ServiceFabricCluster -ConnectionEndpoint '<Cluster>.<Dployed Region>.cloudapp.azure.com:19000' -KeepAliveIntervalInSec 10 -X509Credential -ServerCertThumbprint '<OUR CLUSTER CERT THUMBPRINT>' -FindType FindByThumbprint -FindValue '<OUR CLUSTER CERT THUMBPRINT>' -StoreLocation CurrentUser -StoreName My


0 Votes 0 ·

1 Answer

vipullag-MSFT avatar image
0 Votes"
vipullag-MSFT answered

@ParthTyagi-9346

Did you download and install the certificate as a .pfx, or .cer?

In certmgr.msc, navigate to CurrentUser\My, and ensure you have the private key corresponding to your certificate.

Also, try following this guide if you haven’t already Create a Service Fabric cluster running Windows in Azure.

Hope these suggestion help resolve your issue.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.