How to Create Azure DevOps pipeline from Scratch | 2022

Azure which is actually known as Microsoft Azure was created by Microsoft. It is a Cloud computing service created for building, testing, deploying, and managing applications.

Software development(Dev) and IT operations (Ops) are combined together with the help of a set of practices called DevOps

 The path to building a pipeline is with Azure DevOps with the help of the feature called Azure Pipelines  In the Microsoft realm.

Azure DevOps Pipeline

We can build and test our code project automatically with the help of Azure Pipeline which is a cloud service

 Developers, DevOps teams, or anyone else can produce and deploy reliable code.

There are lots of things the Azure pipeline can do starting from continuous integration (CI) and continuous delivery (CD) to automatically run builds, perform tests, and shipping code to any target.

I am writing this article to describe how to set up the Azure DevOps pipeline for those people who have never heard of the pipeline or Azure DevOps before or have never built a pipeline with Azure DevOps.

Setup Azure DevOps pipeline

  • First we have to create an Azure DevOps Organization
  1. Visit the Microsoft Azure website and Sign in 

2. Click on + Create a resourceHow to Create Azure DevOps pipeline from Scratch | 2022 1

  3. Search for DevOps in the Search box and select Azure DevOps and it will open the Azure DevOps as follows:-

Azure Devops
Azure DevOps
  1.  Next, click the My Azure DevOps Organizations option and give your Azure account’s details and you will be taken to the page where you can create a new organization(I will give the name sulagnamukherjee). Once you are there, click the blue color option of Create a new organization button.
Azure DevOps Provide Details
Azure DevOps Provide Details
Azure DevOps Welcome screen
Azure DevOps Welcome screen

5. Next, you will be taken to a page where you have to provide a name for the organization. You can check the Azure DevOps organization naming conventions and click Continue.

Azure DevOps Almost Done
Azure DevOps Almost Done

You have successfully created your Azure DevOps organization 

  • Next, Create an Azure DevOps Project

Now you have to create a project. A project that you will create will be a container for the pipeline that you will set up next. 

Follow the given steps for creating Azure DevOps Project

  1. Give the name for your project in the Project name field on the project creation page, provide a. For this project, I will give the name of the project as Demo_project and click the + Create Project button to Confirm the creation of the project.
Create Azure DevOps Pipeline Project
Create Azure DevOps Pipeline Project

We will leave the Visibility set to Private so that the project isn’t exposed to the Internet.

  1. Now we are done creating the Azure DevOps workspace that includes the project  & organization. The Azure DevOps organization called sulagnamukherjee and a project inside of that organization called Demo_project has been created.
Azure DevOps Demo Project
Azure DevOps Demo Project
  • Now, we have to build an Azure DevOps Build Pipeline

Now we are ready to create the pipeline inside the organization and project set up, this pipeline will help us to create builds for performing different tasks like compiling code, bringing in dependencies, etc. Check the following steps to create the pipeline:-

  1. From the Dashboard on the left side select Pipelines
  1. Click on the Create pipeline button.     
Azure DevOps Create Pipeline
Azure DevOps Create Pipeline
  1.  Click on the “Github” option
Azure DevOps Select Pipeline type
Azure DevOps Select Pipeline type
Select Existing Repository in Azure DevOps
Select Existing Repository in Azure DevOps

4. Now we have to select the repository that we want to select.          

5. Approve and install it 

GitHub Permission to integrate with Azure DevOps
GitHub Permission to integrate with Azure DevOps

6. Configure your pipeline using any of them you want according to your requirement

Azure DevOps Pipeline Type
Azure DevOps Pipeline Type

7. Review your pipeline 

Azure DevOps YML configuration
Azure DevOps YML configuration

8. Save and run it

Save and Run Azure DevOps Pipeline
Save and Run Azure DevOps Pipeline

9. Now you are done setting up the pipeline

Azure DevOps Jobs in Queue
Azure DevOps Jobs in Queue

10. Go and check the pipelines and you will find your pipelines have been set up.

How to Create Azure DevOps pipeline from Scratch | 2022 2

Azure DevOps Pipeline History
Azure DevOps Pipeline History
Azure DevOps Pipeline History
Azure DevOps Pipeline History

Conclusion

We hope you understand how to build an Azure DevOps pipeline and run it through the portal. On a high level, there are only three steps required to accomplish this.

  • Create First Pipeline
  • Locate Your Code by Repo
  • Grant Repo Permission
  • Save,Review and Run
  • Maintain the Pipeline History

Is Azure DevOps server free?

Azure DevOps Server Express is free, easy to install on both client and server operating systems, and supports all of the features found in Azure DevOps Server. The only difference is that licensing agreements limit it to five or fewer active users.

Comments are closed.

Scroll to Top