Microsoft recommends the use of Visual Studio Team Services (VSTS) to continuously integrate your code into a source depot. The first step for setting up Continuous Integration is to set up a build definition. Following are the steps to be followed for creating a build definition from existing build templates:
- Browse to the VSTS portal and navigate to the Builds tab.
- Click on the New button to create a new build definition:

Create new build definition
- Select Azure Service Fabric Application within the Build template category and click Next:

Select Service Fabric build definition template
- Select the source control repository for the Service Fabric application and click Create:

Create new build definition
- Save the build definition with a name.
The following build steps are added to the build template as a part of this template:
- ...