July 21, 2020

Azure DevOps: Setting up an automated build Pipeline

How to setup your own pipeline deployments with Azure Pipelines

Azure DevOps: Setting up an automated build Pipeline

Lloyd McKeen

Azure Pipelines is an easy to use tool to allow CI (continuous integration) and CD (continuous deployment) tasks to be automatically triggered and executed in a coordinated fashion. By automating your builds and deployments with Pipelines, you can focus on your code development and leave the deployments to Azure.

Below is a short guideline on how to set up your own pipeline deployments.

First, go to Azure DevOps:

Log in to Azure Portal and go to the Azure DevOps page. Click on the New Organisation button and name your organisation, then name your project.

https://azure.microsoft.com/en-us/services/devops/

Select a Public or Private project

Creating a New Pipeline:

Click Pipelines in the Pipelines menu in the sidebar.

Now click Create Pipeline.

Select your Repo:

After clicking Create Pipeline, you will be presented with a list of options for linking to your code. First choose the version control hosting system that contains your repo

then select the specific repo that contains your code.

Note: You will need to Approve & Install Azure Pipelines on that repo before continuing.

Choose the Existing Azure Pipelines YAML file option and select the Branch and enter the Path to your .yaml file.

Review your pipeline YAML:

Make sure to doublecheck your configured YAML file before trying to run a build. Once you're happy, Save your configuration by clicking the down arrow next to Run.

Managing your pipeline:

The menu in the top right gives you the option to view and edit the settings, security and scheduled runs.

Clicking on Run pipeline will bring you to the screen below. Here you'll need to select the Branch/tag and Commit you want to run.

The Pipeline Build Page will show you the status of the current build and deploy operations.

Clicking on a specific Deploy stage will give you a deeper look into the status and logs at that point in the build.

Build and Deploy stages will look like this when completed successfully. If any failures occur you can track and debug the pipeline build by clicking on the stage in question.

You can use the Command Line Log trace to follow logs for your builds.


In summary, Azure Pipelines is a fast, effective and intuitive way to set up simple pipeline builds. They'll help you avoid the hassle of having to make manual deployments every time you need to update your code and leave you to just focus on improving the features and functionality of your applications and data pipes.

Lloyd McKeen

I hope you find this guide useful. If you have any questions, or know an easier way - drop us a message!