Search code examples
.netpowershellvisual-studio-2017azure-service-fabric

which configuration file is in use?


Is it possible to determine the current cluster's ClusterConfigFilePath?

With the service fabric cluster manager, I've created a 1 node cluster:

enter image description here

I would like to remove the cluster using powershell:

.\RemoveServiceFabricCluster.ps1 -ClusterConfigFilePath .\ClusterConfig.json -Force
# Removes Service Fabric from the current machine
.\CleanFabric.ps1 

How do I find out the path for ClusterConfigFilePath?


Solution

  • When you download the standalone Service Fabric package, a few samples of the ClusterConfig.JSON file are downloaded to your work machine.

    enter image description here

    You can read more about config files here.