Skip to content

Instantly share code, notes, and snippets.

@kggayo
Last active March 16, 2021 07:24
Show Gist options
  • Save kggayo/f86174c98c493520cfd12a95c26ee1d3 to your computer and use it in GitHub Desktop.
Save kggayo/f86174c98c493520cfd12a95c26ee1d3 to your computer and use it in GitHub Desktop.
Change Service Fabric Cluster Directory Location
1. Open powershell as admin and cd to "C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup"
2. Run command: ".\DevClusterSetup.ps1 -PathToClusterDataRoot D:\SFDevCluster -PathToClusterLogRoot D:\SFDevCluster -CreateOneNodeCluster".
Change the parameter path in "-PathToClusterLogRoot" and "-PathToClusterDataRoot" to desired directory.
Remove "-CreateOneNodeCluster" argument to setup 5 nodes.
3. Open Service Fabric Local Cluster Manager in "C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager\ServiceFabricLocalClusterManager.exe"
**NOTE:**
Reset local cluster by running the command in Step 2 and not in Service Fabric Local Cluster Manager because it will create the local cluster in default drive which is C drive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment