Prerequisites

Service Fabric supports automation of most of its application lifecycle management tasks. These tasks include deploying, upgrading, removing, and testing Azure Service Fabric applications. Following are the steps to prepare your machine to execute Windows PowerShell cmdlets to manage a Service Fabric cluster:

  1. Install the Service Fabric SDK, runtime, and tools which include the PowerShell modules. The SDK currently supports Windows 7, Windows 8/8.1, Windows Server 2012 R2, and Windows 10 operating systems. Microsoft Web Platform Installer can be used to download and install Service Fabric SDK.
  2. After the installation is complete, modify the execution policy to enable PowerShell to deploy to a local cluster. This can be done by running the following command from PowerShell in administrator mode:
      Set-ExecutionPolicy -ExecutionPolicy Unrestricted 
-Force -Scope CurrentUser
  1. Start a new PowerShell window as an administrator. Then, execute the cluster setup script. This script can be found in the following folder inside the SDK:
      & "$ENV:ProgramFilesMicrosoft SDKsService 
FabricClusterSetupDevClusterSetup.ps1"
  1. Use the following PowerShell cmdlet to connect to the local Service Fabric cluster:
      Connect-ServiceFabricCluster localhost:19000

This completes the setup for PowerShell to manage your local Service Fabric cluster. Now we can explore deploying, upgrading, testing, and removing applications to this cluster.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.221.0