How to do it...

  1. From the Microsoft Azure site, download the Microsoft Azure Service Fabric SDK and access other resources, such as documentation via the Service Fabric learning path, from https://azure.microsoft.com/en-us/documentation/learning-paths/service-fabric/. When you click on the WPI launcher, you should see the following screen:
  1. You will need to accept the license terms before the installation begins.
  1. The web platform installer then starts downloading Microsoft Azure Service Fabric Runtime. Allow this process to complete.
  1. After the download has completed, the installation process will begin:
  1. When the installation has completed, the following products will have been installed, which is also evident in the following screenshot:
  • Microsoft Visual C++ 2012 SP1 Redistributable Package
  • Microsoft Azure Service Fabric Runtime
  • Microsoft Azure Service Fabric SDK
Your installation might differ from the screenshot, depending on your specific pre-installed components.
  1. The next task is to open PowerShell as the administrator. In the Windows 10 Start menu, type the word PowerShell, and the search will immediately return the desktop application as a result. Right-click on the desktop application and select Run as administrator from the context menu:
  1. Once Windows PowerShell has opened up, run the Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser command. The reason for this is that Service Fabric uses PowerShell scripts for the creation of the local development cluster. It is also used for the deployment of Visual Studio developed apps. Running this command prevents Windows from blocking those scripts:
  1. Next, create the local Service Fabric cluster. Enter the & "$ENV:ProgramFilesMicrosoft SDKsService FabricClusterSetupDevClusterSetup.ps1" command.

This will create the local cluster needed to host Service Fabric applications:

B06434_17_07
  1. After the cluster is created, PowerShell will start the service:
  1. The process might take several minutes. Be sure to let it complete:
  1. Once the naming service is ready, you can close PowerShell:
  1. To view the created cluster, you can navigate to http://localhost:19080/Explorer on your local machine.

This will give you a snapshot of the cluster's health and state. It will also show any applications running in the cluster:

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

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