To publish an application from Visual Studio, you only need to have the cluster security certificate added to Cert:Current UserMy store or Cert:Local MachineMy 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" />
<ApplicationParameterFile Path =".. ApplicationParameters Cloud.xml" />
</PublishProfile >