To publish an application from Visual Studio, you only need to have the cluster security certificate added to Cert:\Current User\My store or Cert:\Local Machine\My store. Visual Studio automatically adds the following configuration to the published profile of your application:
<?xml version="1.0" encoding="utf-8"?>
<PublishProfile xmlns =" http:// schemas.microsoft.com/ 2015/ 05/ fabrictools" >
<ClusterConnectionParameters
ConnectionEndpoint ="[your cluster dns name]:19000"
X509Credential =" true"
ServerCertThumbprint =" [cluster certificate thumbprint]"
FindType =" FindByThumbprint"
FindValue =" [cluster certificate thumbprint]"
StoreLocation =" CurrentUser"
StoreName =" My" />
<...