Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to get Service Fabric PowerShell module

I am running on Windows Server 2016 Datacenter and I am not able to get the Service Fabric commandlets like Connect-ServiceFabricCluster.

Documentation says : The Service Fabric PowerShell module is installed with the Service Fabric SDK, runtime, and tools.

  • I am using visual studio 2019
  • I followed instructions from here and I have uninstalled and reinstalled Service Fabric SDK from Web Platform Installer and rebooted my system.

What else can I try? It is working in other system where I am using Windows 10. Can I export the module from another system where it is working and import it here?

like image 275
Nagendra Ghimire Avatar asked Oct 21 '25 10:10

Nagendra Ghimire


1 Answers

In my case, I was using PowerShell 7.x as my default version of PowerShell. Apparently, the ServiceFabric PowerShell module is only partly compatible with that version, so it is not loaded automatically. Once I used PowerShell 5.x to administer ServiceFabric, the module loaded upon PowerShell start and was ready to be used.

like image 159
MonteChristo Avatar answered Oct 23 '25 01:10

MonteChristo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!