This article requires to setup below environment at first. Please refer to them before following this article.
- How to build ASP.NET Framework Docker images on VSTS build tasks - normalian blog
- Create Service Fabric Deployment Package with Docker images on VSTS Build Task - normalian blog
You have to complete all setups of CI/CD cycle using Windows Docker images, Service Fabric cluster and VSTS except for VSTS Release Definitions before following this article. I believe you have already created artifacts using by your VSTS Build definition to deploy into your Service Fabric cluster. Now, you can deploy the artifact by following this article.
Create a Release Definition to use artifacts created by your Build Definition
Choose "Releases" item from the top of VSTS menus, click "+" icon from left side and choose create "Create release definition", so you can find below diagrams.
Next, click "Add artifact", choose "Build" as "Source type" and setup your "Project" and "Source(Build definition)" which you have already created before following this article. Refer to below image if you need.
Next, choose "Add environment" box and choose "Azure Service Fabric Deployment". Note that you need to complete
How to setup Service Fabric connections on VSTS - normalian blog to setup this. Refer to below image and table as you need.
Parameter Name | Value | note |
Application Package | $(system.defaultworkingdirectory)/**/drop/applicationpackage | - |
Cluster Connection | sf-sample01-1709cluster | You must finish How to setup Service Fabric connections on VSTS - normalian blog to setup this |
Publish Profile | $(system.defaultworkingdirectory)/**/drop/projectartifacts/**/PublishProfiles/Cloud.xml | - |
Execute Release definition
After completion to create the Release Definition, click "+Rlease" link on VSTS portal.
Next, you can execute your deployment process by clicking "Deploy" on VSTS portal like below. After execution of the process, you also be able to watch process progress by choosing "Logs" tab on VSTS portal.
This is "Logs" tab on VSTS.
Reference
- Deploy an Azure Service Fabric application with continuous integration (Team Services) | Microsoft Docs
- How to build ASP.NET Framework Docker images on VSTS build tasks - normalian blog
- Create Service Fabric Deployment Package with Docker images on VSTS Build Task - normalian blog
- How to setup Service Fabric connections on VSTS - normalian blog