Search code examples
azuremicroservicesazure-service-fabric

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


I am currently working on cloud technology. In one of my current projects, I created the service fabric cluster in Azure. Then I tried to connect to the cluster through Windows PowerShell. I got the error

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

Error message

Please tell me how to resolve the above issue.

Regards,

Pradeep


Solution

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

    Prepare your development environment

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

    Create a Service Fabric cluster in Azure using the Azure portal

    https://learn.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