0

We're having a few issues when trying to debug a local Service Fabric cluster using https. We are able to do it with a lot of faff but surely there must be an easy way.

Also most of our endpoints are HTTP.Sys

TIA

Matt Taylor
  • 189
  • 1
  • 2
  • 10
  • What kind of issues? Your question is a bit broad. Yes, I have debugged apps deployed to local clusters so it is definitely possible. It is not much different from debugging other apps. – Peter Bons Feb 24 '20 at 10:41
  • Are you using Visual Studio and want to debug your application? – Deepak Tatyaji Ahire Feb 25 '20 at 14:44
  • Some asked me the following question "Can I add having the ability to run our service fabric apps locally under https as a potential improvement? Having to set the protocol to http in the service manifest and then comment out the endpoint binding policy for each service in the app manifest (and remembering not to check them in), while not a huge deal, is something that feels like could be improved by some Engineery-Type?" – Matt Taylor Feb 26 '20 at 15:19

1 Answers1

1

Based on your last comment: Did you know you can override endpoint behavior using parameters and use different parameters per environment?

<ServiceManifestImport>
    <ServiceManifestRef ServiceManifestName="Stateless1Pkg" ServiceManifestVersion="1.0.0" />
    <ConfigOverrides />
    <ResourceOverrides>
      <Endpoints>
        <Endpoint Name="ServiceEndpoint" Port="[Port]" Protocol="[Protocol]" Type="[Type]" />
        <Endpoint Name="ServiceEndpoint1" Port="[Port1]" Protocol="[Protocol1] "/>
      </Endpoints>
    </ResourceOverrides>
    <Policies>
       <EndpointBindingPolicy CertificateRef="TestCert1" EndpointRef="ServiceEndpoint"/>
    </Policies>
</ServiceManifestImport>

and

<Parameters>
    <Parameter Name="Port" DefaultValue="" />
    <Parameter Name="Protocol" DefaultValue="" />
    <Parameter Name="Type" DefaultValue="" />
    <Parameter Name="Port1" DefaultValue="" />
    <Parameter Name="Protocol1" DefaultValue="" />
</Parameters>

More info here.

LoekD
  • 11,402
  • 17
  • 27