0

I know that we can connect to the service fabric cluster using Connect-ServiceFabricCluster as mentioned in Microsoft learn, which works flawlessly.

I use this in a script - it prints the following every time it tries to connect to service fabric again.

WARNING: Cluster connection with the same name already existed, the old connection will be deleted

So, is there a way to safely disconnect from sf before executing the next steps or closing, other than letting the connection time out?

  • A using block will dispose object of the block when exiting the block. See : https://stackoverflow.com/questions/42107851/how-to-implement-using-statement-in-powershell?force_isolation=true – jdweng Jan 12 '23 at 15:52

0 Answers0