No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue

After did a lot of research, I find out the solution for my above problem using these below links.

Prepare your development environment

https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started

Create a Service Fabric cluster in Azure using the Azure portal

https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-creation-via-portal

What I did mistake for connecting secure cluster using PowerShell is before I write the above command I forget to enable the PowerShell script execution.

So, first I was enabled the power shell script execution using this below command.

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser

After that I used the below command for connecting to my secure cluster, Now it's working fine.

Connect-serviceFabricCluster

-Pradeep


I got this error earlier this week, and after spending a couple hours and working with Microsoft we found that I was using $connections istead of @connections.

$connections = @{ ConnectionEndpoint='something.eastus.cloudapp.azure.com:19000'; X509Credential=$true; ServerCertThumbprint='4DC09A1212617326E2080EFE7E1022C6554AAEB9'; FindType='FindByThumbprint'; FindValue='71e5d31e7cbb0d10edb9c62e4d1be6e19de22eae'; StoreLocation='CurrentUser'; StoreName='My' }
# Incorrect:
Connect-ServiceFabricCluster $connections
# Correct:
Connect-ServiceFabricCluster @connections

Notice that the variable that you pass to Connect-ServiceFabricCluster cmdlet is supposed to be @connections.