Skip to content

Commit 9a49367

Browse files
committed
acrolinx
1 parent c0fc064 commit 9a49367

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

articles/service-fabric/service-fabric-tutorial-deploy-app-with-cicd-vsts.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.date: 04/17/2024
1111

1212
# Tutorial: Deploy an application with CI/CD to a Service Fabric cluster
1313

14-
This tutorial is part four of a series and describes how to set up continuous integration and deployment for an Azure Service Fabric application using Azure Pipelines. An existing Service Fabric application is needed, the application created in [Build a .NET application](service-fabric-tutorial-create-dotnet-app.md) is used as an example.
14+
This tutorial is part four of a series and describes how to set up continuous integration and deployment for an Azure Service Fabric application using Azure Pipelines. An existing Service Fabric application is needed, the application created in [Build a .NET application](service-fabric-tutorial-create-dotnet-app.md) is used as an example.
1515

1616
In part three of the series, you learn how to:
1717

@@ -21,7 +21,7 @@ In part three of the series, you learn how to:
2121
> * Create a release pipeline in Azure Pipelines
2222
> * Automatically deploy and upgrade an application
2323
24-
In this tutorial series you learn how to:
24+
In these tutorials you learn how to:
2525
> [!div class="checklist"]
2626
> * [Build a .NET Service Fabric application](service-fabric-tutorial-create-dotnet-app.md)
2727
> * [Deploy the application to a remote cluster](service-fabric-tutorial-deploy-app-to-party-cluster.md)
@@ -37,35 +37,35 @@ Before you begin this tutorial:
3737
* [Install Visual Studio 2019](https://www.visualstudio.com/) and install the **Azure development** and **ASP.NET and web development** workloads.
3838
* [Install the Service Fabric SDK](service-fabric-get-started.md)
3939
* Create a Windows Service Fabric cluster on Azure, for example by [following this tutorial](service-fabric-tutorial-create-vnet-and-windows-cluster.md)
40-
* Create an [Azure DevOps organization](/azure/devops/organizations/accounts/create-organization-msa-or-work-student). This allows you to create a project in Azure DevOps and use Azure Pipelines.
40+
* Create an [Azure DevOps organization](/azure/devops/organizations/accounts/create-organization-msa-or-work-student). An organization allows you to create a project in Azure DevOps and use Azure Pipelines.
4141

4242
## Download the Voting sample application
4343

44-
If you did not build the Voting sample application in [part one of this tutorial series](service-fabric-tutorial-create-dotnet-app.md), you can download it. In a command window, run the following command to clone the sample app repository to your local machine.
44+
If you didn't build the Voting sample application in [part one of this series](service-fabric-tutorial-create-dotnet-app.md), you can download it. In a command window, run the following command to clone the sample app repository to your local machine.
4545

4646
```git
4747
git clone https://github.com/Azure-Samples/service-fabric-dotnet-quickstart
4848
```
4949

5050
## Prepare a publish profile
5151

52-
Now that you've [created an application](service-fabric-tutorial-create-dotnet-app.md) and have [deployed the application to Azure](service-fabric-tutorial-deploy-app-to-party-cluster.md), you're ready to set up continuous integration. First, prepare a publish profile within your application for use by the deployment process that executes within Azure Pipelines. The publish profile should be configured to target the cluster that you've previously created. Start Visual Studio and open an existing Service Fabric application project. In **Solution Explorer**, right-click the application and select **Publish...**.
52+
Now that you [created an application](service-fabric-tutorial-create-dotnet-app.md) and [deployed the application to Azure](service-fabric-tutorial-deploy-app-to-party-cluster.md), you're ready to set up continuous integration. First, prepare a publish profile within your application for use by the deployment process that executes within Azure Pipelines. The publish profile should be configured to target the cluster you previously created. Start Visual Studio and open an existing Service Fabric application project. In **Solution Explorer**, right-click the application and select **Publish...**.
5353

54-
Choose a target profile within your application project to use for your continuous integration workflow, for example Cloud. Specify the cluster connection endpoint. Check the **Upgrade the Application** checkbox so that your application upgrades for each deployment in Azure DevOps. Click the **Save** hyperlink to save the settings to the publish profile and then click **Cancel** to close the dialog box.
54+
Choose a target profile within your application project to use for your continuous integration workflow, for example Cloud. Specify the cluster connection endpoint. Check the **Upgrade the Application** checkbox so that your application upgrades for each deployment in Azure DevOps. Select the **Save** hyperlink to save the settings to the publish profile and then choose **Cancel** to close the dialog box.
5555

5656
![Push profile][publish-app-profile]
5757

5858
## Share your Visual Studio solution to a new Azure DevOps Git repo
5959

6060
Share your application source files to a project in Azure DevOps so you can generate builds.
6161

62-
Create a [new GitHub repo and Azure DevOps repo](/visualstudio/version-control/git-create-repository#create-a-github-repo) from VS 2022 IDE by selecting Git -> Create Git Repository from Git menu
62+
Create a [new GitHub repo and Azure DevOps repo](/visualstudio/version-control/git-create-repository#create-a-github-repo) from Visual Studio 2022 IDE by selecting Git -> Create Git Repository from Git menu
6363

64-
Select your account in the drop-down and enter your repository name and click **Create and Push** button.
64+
Select your account in the drop-down and enter your repository name and select **Create and Push** button.
6565

6666
![Screenshot of creating new Git repository.][push-git-repo]
6767

68-
Publishing the repo creates a new project in Azure DevOps account with the same name as the local repo.
68+
Publishing the repo creates a new project in your Azure DevOps Services account with the same name as the local repo.
6969

7070
View the newly created repository by navigating to https://dev.azure.com/\<organizationname\>, hover mouse over the name of your project, and select the **Repos** icon.
7171

@@ -79,61 +79,61 @@ An Azure Pipelines release pipeline describes a workflow that deploys an applica
7979

8080
Open a web browser and navigate to your new project at: https://dev.azure.com/\<organizationname\>/VotingSample
8181

82-
Select the **Pipelines** tab and click **Create Pipeline**.
82+
Select the **Pipelines** tab and select **Create Pipeline**.
8383

8484
![New Pipeline][new-pipeline]
8585

8686
Select **Use the classic editor** to create a pipeline without YAML.
8787

8888
![Classic Editor][classic-editor]
8989

90-
Select **Azure Repos Git** as source, **VotingSample** Team project, **VotingApplication** Repository, and **master** Default branch for manual and scheduled builds. Then click **Continue**.
90+
Select **Azure Repos Git** as source, **VotingSample** Team project, **VotingApplication** Repository, and **master** Default branch for manual and scheduled builds. Then select **Continue**.
9191

9292
![Select Repo][select-repo]
9393

94-
In **Select a template**, select the **Azure Service Fabric application** template and click **Apply**.
94+
In **Select a template**, select the **Azure Service Fabric application** template and select **Apply**.
9595

9696
![Choose build template][select-build-template]
9797

98-
In **Tasks**, enter "Azure Pipelines" as the **Agent pool** and **windows-2022** as Agent Specification
98+
In **Tasks**, enter "Azure Pipelines" as the **Agent pool** and **windows-2022** as Agent Specification.
9999

100100
![Select tasks][save-and-queue]
101101

102102
Under **Triggers**, enable continuous integration by checking **Enable continuous integration**. Within **Branch filters**, the **Branch specification** defaults to **master**. Select **Save and queue** to manually start a build.
103103

104104
![Select triggers][save-and-queue-2]
105105

106-
Builds also trigger upon push or check-in. To check your build progress, switch to the **Builds** tab. Once you verify that the build executes successfully, define a release pipeline that deploys your application to a cluster.
106+
Builds also trigger upon push or check-in. To check your build progress, switch to the **Builds** tab. Once you verify that the build executes successfully, define a release pipeline that deploys your application to a cluster.
107107

108108
### Create a release pipeline
109109

110-
Select the **Pipelines** tab, then **Releases**, then **+ New pipeline**. In **Select a template**, select the **Azure Service Fabric Deployment** template from the list and then **Apply**.
110+
Select the **Pipelines** tab, then **Releases**, then **+ New pipeline**. In **Select a template**, select the **Azure Service Fabric Deployment** template from the list and then **Apply**.
111111

112112
![Choose release template][select-release-template]
113113

114114
Select **Tasks** and then **+New** to add a new cluster connection.
115115

116116
![Add cluster connection][add-cluster-connection]
117117

118-
In the **New Service Fabric Connection** view select **Certificate Based** or **Microsoft Entra credential** authentication. Specify cluster endpoint of tcp://mysftestcluster.southcentralus.cloudapp.azure.com:19000" (or the endpoint of the cluster you are deploying to).
118+
In the **New Service Fabric Connection** view select **Certificate Based** or **Microsoft Entra credential** authentication. Specify cluster endpoint of tcp://mysftestcluster.southcentralus.cloudapp.azure.com:19000" (or the endpoint of the cluster you're deploying to).
119119

120-
For certificate-based authentication, add the **Server certificate thumbprint** of the server certificate used to create the cluster. In **Client certificate**, add the base-64 encoding of the client certificate file. See the help pop-up on that field for info on how to get that base-64 encoded representation of the certificate. Also add the **Password** for the certificate. You can use the cluster or server certificate if you don't have a separate client certificate.
120+
For certificate-based authentication, add the **Server certificate thumbprint** of the server certificate used to create the cluster. In **Client certificate**, add the base-64 encoding of the client certificate file. See the help pop-up on that field for info on how to get that base-64 encoded representation of the certificate. Also add the **Password** for the certificate. You can use the cluster or server certificate if you don't have a separate client certificate.
121121

122122
For Microsoft Entra credentials, add the **Server certificate thumbprint** of the server certificate used to create the cluster and the credentials you want to use to connect to the cluster in the **Username** and **Password** fields.
123123

124-
Click **Save**.
124+
Select **Save**.
125125

126-
Next, add a build artifact to the pipeline so the release pipeline can find the output from the build. Select **Pipeline** and **Artifacts**->**+Add**. In **Source (Build definition)**, select the build pipeline you created previously. Click **Add** to save the build artifact.
126+
Next, add a build artifact to the pipeline so the release pipeline can find the output from the build. Select **Pipeline** and **Artifacts**->**+Add**. In **Source (Build definition)**, select the build pipeline you created previously. Select **Add** to save the build artifact.
127127

128128
![Add artifact][add-artifact]
129129

130-
Enable a continuous deployment trigger so that a release is automatically created when the build completes. Click the lightning icon in the artifact, enable the trigger, and click **Save** to save the release pipeline.
130+
Enable a continuous deployment trigger so that a release is automatically created when the build completes. Select the lightning icon in the artifact, enable the trigger, and choose **Save** to save the release pipeline.
131131

132132
![Enable trigger][enable-trigger]
133133

134134
Select **Create Release** -> **Create** to manually create a release. You can monitor the release progress in the **Releases** tab.
135135

136-
Verify that the deployment succeeded and the application is running in the cluster. Open a web browser and navigate to https://mysftestcluster.southcentralus.cloudapp.azure.com:19080/Explorer/. Note the application version, in this example it is "1.0.0.20170616.3".
136+
Verify that the deployment succeeded and that the application is running in the cluster. Open a web browser and navigate to https://mysftestcluster.southcentralus.cloudapp.azure.com:19080/Explorer/. Note the application version. In this example, it's `1.0.0.20170616.3`.
137137

138138
## Commit and push changes, trigger a release
139139

@@ -149,23 +149,23 @@ In the **Git Changes** window, select **Push** button (the up arrow) to update c
149149

150150
![Push changes][push]
151151

152-
Pushing the changes to Azure Pipelines automatically triggers a build. To check your build progress, switch to **Pipelines** tab in https://dev.azure.com/organizationname/VotingSample.
152+
Pushing the changes to Azure Pipelines automatically triggers a build. To check your build progress, switch to **Pipelines** tab in https://dev.azure.com/organizationname/VotingSample.
153153

154154
When the build completes, a release is automatically created and starts upgrading the application on the cluster.
155155

156-
Verify that the deployment succeeded and the application is running in the cluster. Open a web browser and navigate to `https://mysftestcluster.southcentralus.cloudapp.azure.com:19080/Explorer/`. Note the application version, in this example it is "1.0.0.20170815.3".
156+
Verify that the deployment succeeded and that the application is running in the cluster. Open a web browser and navigate to `https://mysftestcluster.southcentralus.cloudapp.azure.com:19080/Explorer/`. Note the application version. In this example, it's `1.0.0.20170815.3`.
157157

158158
![Screenshot of the Voting app in Service Fabric Explorer running in a browser window. The app version "1.0.0.20170815.3" is highlighted.][sfx1]
159159

160160
## Update the application
161161

162-
Make code changes in the application. Save and commit the changes, following the previous steps.
162+
Make code changes in the application. Save and commit the changes, following the previous steps.
163163

164164
Once the upgrade of the application begins, you can watch the upgrade progress in Service Fabric Explorer:
165165

166166
![Screenshot of the Voting app in Service Fabric Explorer. The Status message "Upgrading", and an "Upgrade in Progress" message are highlighted.][sfx2]
167167

168-
The application upgrade may take several minutes. When the upgrade is complete, the application will be running the next version. In this example "1.0.0.20170815.4".
168+
The application upgrade might take several minutes. When the upgrade is complete, the application will be running the next version. In this example `1.0.0.20170815.4`.
169169

170170
![Screenshot of the Voting app in Service Fabric Explorer running in a browser window. The updated app version "1.0.0.20170815.4" is highlighted.][sfx3]
171171

0 commit comments

Comments
 (0)