Hackernoon logoHow to Create Release Pipelines in Azure Devops in 7 Simple Steps by@krishnagk

How to Create Release Pipelines in Azure Devops in 7 Simple Steps

image
Krishna G K Hacker Noon profile picture

@krishnagkKrishna G K

CODING

This article will explain how to create release pipelines in Azure Devops in seven simple steps.

Pre-requisites:

We need to have a service connection ready to bind the azure web app with the devops pipelines. So, we must proceed by creating a new service connection as shown below:

In the project Settings, search for Service connections.

image

Click on Service connections as shown in the figure below. Select Azure Resource Manager as connection type.

image

For the selected Azure Resource Manager, select Publish Profile as the Authentication method.

image

The final step of creating a new Azure service connection is completed by filling in the Subscription, Resource group(where the web app is deployed), the web app name, Service connection name.

image

Now, the service connection is created.

image

How to Create a New Release Pipeline

1. Create a new pipeline as shown in the figure below by clicking ‘new release pipeline’.

image

2. Create a new task by searching for ‘Azure Web App’ under the Deploy section.

image

3. Click on Azure Web App as shown in the figure below.

image

4. Fill in the Display name, Azure subscription,App type, App name

image
image

5. We also need to add an artifact produced earlier from the build pipeline as shown below.

image

6. Once, the artifact is uploaded, we need to check the continuous integration checkbox for us to run the pipeline whenever we have a new build pipeline running. It is shown below.

Click on add to specify the branch to build. Here, we have ‘Development’ as the branch.

image

7. Final step is to click on the Create Release button to trigger the continuous deployment of the release pipeline.

image
image

We can see the release pipeline running as shown below.

image

This completes our tutorial for building the release pipeline by creating a new service connection in our Azure Devops project.

I would like to mention all who helped me in the development of the project:

  1. Althaf H(CTO) in building the project flow and reviewing it
  2. Swetha SR (.Net Solution Architect) for developing the build pipelines (translating from manual build cycle to automated build pipelines)
  3. Narendra Reddy(.Net developer) in debugging the project

Also published on: https://dev.to/krishnakurtakoti/azure-devops-series-2-1c1l

Tags

Join Hacker Noon

Create your free account to unlock your custom reading experience.