For a variety of reasons I would like to create a custom version of the process that deploys a Service Fabric app. I have read this article (Deploying a package to an Azure Service Fabric cluster - Octopus Deploy), including the section on customizing the deployment process. However, I don’t want to do this via a customized powershell script, but rather from a c# app. How would I access the necessary SF parameters (thumbprint / endpoint) to connect to the cluster and so be able to pass them as command line arguments to my app at deploy time?
I have seen references to a ServiceFabricContext.ps1 in the Calamari project which may have been able to shed more light on this, but the links are dead.