1
votes

We have deployed two APIs on Service Fabric cluster

  • API 1 (Port 8485)
  • API 2(Port 8630)

We are able to access the apis locally using following URL:

Service fabric cluster explorer is accessible using following URL

https://{MyLoadBalancerName}.northeurope.cloudapp.azure.com:19080/Explorer

But, I am not able to access the API 1 by using following URL

https://{MyLoadBalancerName}.northeurope.cloudapp.azure.com:8485/api/controller

I tried adding following Load balancing Rule

  • Protocol: TCP
  • Port: 80
  • Backend Port: 8485

But no luck! Can somebody please explain how to call api controller?

2
did you declare service endpoints of type 'http' in your service manifests?LoekD
@LoekD yes I have added the endpointsMangesh Kulkarni
you route 80 to 8485, so the first api should be accessible at "https://{MyLoadBalancerName}.northeurope.cloudapp.azure.com/api/controller" can you try that?LoekD
Are you able to open the service fabric explorer and see what endpoints your service in using.Satya Tanwar

2 Answers

1
votes

you need to add those ports in list of opened port when you creating cluster on azure. you can also add them after you created that cluster. check the link from documentation. https://docs.microsoft.com/en-us/azure/service-fabric/create-load-balancer-rule

1
votes

Ensure that the above ports have access in NSG

enter image description here