Azure Devops Series - 2
Tags: azure, devops, appdeployment, ci
Published: 2021-02-13 06:13:24

**Creating Release Pipelines**
Pre-requisites:
    
1. We need to have a service connection ready to bind the azure web app with the devops     pipelienes. So, we proceed by creating a new service connection as shown below:

In the project Settings, search for Service connections.
![az106a](https://dev-to-uploads.s3.amazonaws.com/i/i4ucezpu2w9ensgirixk.jpg)
a. Click on Service connections as shown in the figure below. Select Azure Resource Manager as connection type.

![az107a](https://dev-to-uploads.s3.amazonaws.com/i/kl7r0pv2g6urqw807bhu.jpg)

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

![az108a](https://dev-to-uploads.s3.amazonaws.com/i/88hfgpaodg58j9gcyp3p.jpg)
 
c.  The final step of creating a new Azure service connections is completed by filling in the Subscription, Resource group(where the web app is deployed), the web app name, Service connection name.

![az109](https://dev-to-uploads.s3.amazonaws.com/i/vg94coctvs5j5g79vu39.jpg)
 
Now, the service connection is created.
![az110a](https://dev-to-uploads.s3.amazonaws.com/i/bsvmz27f707ws9yc3d5r.jpg)
 
Create a new release pipeline

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

![az103a](https://dev-to-uploads.s3.amazonaws.com/i/wmgi7x138b09l5lhbbc1.jpg)
 
 
b.  Create a new task by searching for ‘Azure Web App’ under the Deploy section.
![az111a](https://dev-to-uploads.s3.amazonaws.com/i/wjbnyogxt91mp2la9jn9.jpg)

c. Click on Azure Web App as shown in the figure below.
![az112a](https://dev-to-uploads.s3.amazonaws.com/i/02uew83hmycgevznn8kl.jpg)
 
d. Fill in the Display name, Azure subscription,App type, App name
![az113a](https://dev-to-uploads.s3.amazonaws.com/i/41rgqtk5pfv2qkvbksuq.jpg)
 
![az114a](https://dev-to-uploads.s3.amazonaws.com/i/lo7x83p1nvd58b31bp8o.jpg)
 
e. We also need to add an artifact produced earlier from the build pipeline as shown below.
![az115a](https://dev-to-uploads.s3.amazonaws.com/i/56aylbs9kwh70kg50jp3.jpg)
 
f. Once, the artifact is uploaded, we need to check the continous 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.

6![az116a](https://dev-to-uploads.s3.amazonaws.com/i/klmdvf6y80jbs4yl36fc.jpg)

g. Final step is to click on Create release button to trigger the continous deployment of the release pipeline.

![az117a](https://dev-to-uploads.s3.amazonaws.com/i/aeafi1l6m2i4e112lb64.jpg)
 
![az118a](https://dev-to-uploads.s3.amazonaws.com/i/ywj0zevnov7wrsb6ugcj.jpg)
 
We can see the release pipeline running as shown below.

![az119a](https://dev-to-uploads.s3.amazonaws.com/i/y41wvdxcayp76unjfap4.jpg)
 
This completed the flow for building of the release pipleline by creating a new service connection in the Azure Devops in our project.

I would like to mention all who helped me in 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.