How to Build an Azure Pipeline

Azure Pipelines is a cloud service that is used to automatically build and test code projects and make them available to other users. Azure Pipelines are a combination of continuous integration (CI) and continuous delivery (CD) and they constantly and consistently test and build the codes and ship them to any target.

Author: Priyanshu Katiyar, Network Engineer, Entrada LLC

Read More blogs http://www.entradasoft.com/blogs

There are certain prerequisites that are required for deployment of Azure pipelines:

1 Azure subscription.

2 Microsoft azure account

3 Valid permissions for the following azure account.

Now let us see what we will cover in this document

· At the end of this project, we will have an architecture which includes several resources in azure cloud and they are in same environment and virtual network.

· We will have knowledge of how to push code through pipeline in azure cloud.

· We will be acquainted with the functions from templates.

Here are the steps to access Azure Pipeline:

Step 1: Login to the Azure cloud portal using a valid azure account. After signing in, the cloud portal will appear as the following:

Step 2: In the search option, search for “Azure DevOps” . Now open “My Azure DevOps Organisation” from the portal window.

Step 3: Now create an organization and project for your deployment in this portal. It will appear like this:

Step 4: Open your project and it will reflect like this in the window.

Step 5: Now upload your code/templates in azure repos using git credentials.

Step 6: Once you have uploaded your project, then you will have to create a pipeline in azure DevOps. Here you will get two options to create a pipeline — Option 1) Build, and Option 2) Release. In some options, we can use both pipelines, but in this example we are using Release pipeline. Create a new pipeline.

Step 7: Once you click on the “new Pipeline” option, a screen will appear where you will have to select “empty Job” option.

Step 8: Now add artifacts using the option ‘artifact’. Now, your code/templates are uploaded in Azure repos which are one of the good available options.

Step 9: Now configure the stage in which you want to assign jobs to different tasks.

Step 10: Add a task using plus (+) sign and search “Azure Resource Group Deployment”. Add the task and fill all the details as per your choice.

Step 11: The first task is for virtual network. Select virtual network template and variabilize the template function using “template parameters” in which you will have to select parameters files. Then, “Override template parameters” option to override functions from templates.

Step 12: Take similar steps with all the others resources and save the Agent Job. The final screen will appear as follows:

Step 13: In “create release” option, start pipeline and it will reflect in Azure cloud.

Step 14: If you receive no error, then go to the azure cloud portal and check every resource. The next step is to implement managed identities.