How to Build CI/CD pipeline in Azure DevOps? Just in 2 minutes
What is a CI/CD Basically?
- In software engineering, CI/CD or CICD generally refers to the combined practices of continuous integration and either continuous delivery or continuous deployment.
Continuous integration (CI) is the practice used by development teams to simplify the testing and building of code. CI helps to catch bugs or problems early in the development cycle, which makes them easier and faster to fix.
Continuous delivery (CD) is a process by which code is built, tested, and deployed to one or more test and production stages. Deploying and testing in multiple stages helps drive quality.
- CI/CD bridges the gaps between development and operation activities and teams by enforcing automation in the building, testing, and deployment of applications.
- A CI/CD pipeline for the Machine Learning model lifecycle can be like the below:
Creating Azure Organizations
To create an Azure organization, Search for DevOps and choose Azure DevOps organizations.
Click My azure DevOps organizations.
To create new, Click Create new Organization
Provide a name for the Organization and the region where the projects under the Organization will be hosted.
create new, Click Create new Organization
Provide a name for the Organization and the region where the projects under the Organization will be hosted.
Creating Azure Projects
Once the Organization is created, You will be asked to create a project under an Organization.
Choose the project to be private and click Create project
CICD Pipeline using Azure DevOps Starter
Azure DevOps Starter creates a CI/CD pipeline in Azure Pipelines. You can create a new Azure DevOps organization or use an existing organization.
Azure DevOps Starter also creates Azure resources in the Azure subscription of your choice.
Azure DevOps Starter presents a simplified process for creating a Continuous Integration (CI) and Continuous Delivery (CD) pipeline to Azure. You can bring your existing code and Git repo, or you can select a sample application.
● Use DevOps Starter to create a CI/CD pipeline
● Configure access to your GitHub repo and choose a framework
● Configure the Azure DevOps app and an Azure subscription
● Commit changes to GitHub and automatically deploy them to Azure
● Examine the Azure Pipelines CI/CD pipeline
● Clean up resources
Prerequisites
● An Azure subscription. You can get one free through Visual Studio Dev Essentials.
● Access to a GitHub or external Git repo that contains .NET, Java, PHP, Node.js, Python, or static web code.
Sign In to the Azure Portal
Search for DevOps starter
and click Create DevOps starter
Choose the application of your choice, For this tutorial, I will choose .NET just for the demo mostly I am choosing Python.
Click Next: Framework and then choose ASP.NET
Next: Service, Choose Windows Web App, and Next: Create
Click Authorize to Access the GitHub account to create the workflow.
Once Authorized, You will be asked to choose the organization and the project, and the Subscription for which the Azure DevOps pipeline will be created.
Click Review + Create, It will start the Deployment process.
The Azure DevOps CI/CD Project is created, and the Azure resources pane will take some minutes to load.
Now you can work with the team and make the required changes to the .NET apps with the automated CI/CD process that deploys the latest changes to the website.
On the right pane of Azure resources, click on the Browse button to view the application.
Let’s Connect on GitHub, Feel free to Reach out to me for any query on Linkedin
Thank you for your time, Happy Learning DevOps with me!! See you in the next blog 🤩