Once we have a successful build, we can move ahead to create a release definition to automate Continuous Delivery. A VSTS release definition can be used to define the tasks which should be executed sequentially to deploy a packages Service Fabric application to a cluster. Following are the steps to be followed to create a release definition:
- Browse to the VSTS portal and navigate to the Releases tab.
- Select the Create release definition menu item:
![](https://static.packt-cdn.com/products/9781787121140/graphics/assets/49c25c12-f380-4ab3-a722-177efe02fc3d.png)
Create release definition
- Select Azure Service Fabric Deployment within the Deployment template category and click Next:
![](https://static.packt-cdn.com/products/9781787121140/graphics/assets/0a1e0301-486f-4e3b-932d-2fff2431b08f.png)
Select Azure Service Fabric template
- Select the already created build definition from the drop-down list, click on the check box to enable Continuous Deployment and click on Create:
![](https://static.packt-cdn.com/products/9781787121140/graphics/assets/3dc26fa5-91e3-40bb-ac90-0447036943ba.png)
Select project and build definition
- Add the Cluster Connection configuration:
![](https://static.packt-cdn.com/products/9781787121140/graphics/assets/c54fd8c4-5c7f-4a68-821c-0e1d501ce962.png)
Setting application package...