Setting up a development machine for Azure Service Fabric applications allows developers to test and debug microservices locally. Local cluster use the same runtime that will run in Azure.
If you don’t have a license of Windows 10, you can install a free Windows 10 Insider Preview.
Download Windows 10 Insider Preview
There is a Community edition of Visual Studio which is free and ideal for starting with Windows development. You can use it alongside with Visual Studio Team Services which offers source control and work items management.
Download Visual Studio Community edition
Get started with Visual Studio Team Services
SDK & Tools
Service Fabric Local Cluster is useful for development. Service Fabric Tools are part of the Azure Development and Management workload in Visual Studio 2017. Tools for Visual Studio 2015 needs to be installed separately.
Install the SDK for Visual Studio 2017
Install the SDK and tools for Visual Studio 2015
Service Fabric uses PowerShell scripts for creating a local development cluster and for deploying applications from Visual Studio. Windows blocks these scripts from running. To enable them, open PowerShell as an administrator and enter the following command:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser
To set up a local cluster, simple execute this command in PowerShell as an administrator:
& "$ENV:ProgramFiles\Microsoft SDKs\Service Fabric\ClusterSetup\DevClusterSetup.ps1"