Today, we are going to see how to configure Azure DevOps CI/CD and setup Azure Pipeline using visual studio. Not spending the time on what is Azure DevOps and its feature, we are directly moving to CI/CD. How can we configure this using visual studio? We will see this step by step. Once we set up the Azure Pipeline then on each check-in it will build the application and deploy the changes on App Service. In this article, we will see how to configure the CI/CD for a single project in one solution. In the next article, we will see how to configure the CI/CD for multiple projects in one solution. To know about Azure DevOps and its other features, you can refer to the below blog.
For configuring the Azure DevOps CI/CD, you need the following tools.
We will see how to configure CI/CD and setup Azure Pipeline using Azure DevOps.
Step 1: Create a new project by using the Azure DevOps account. I am using Team Foundation version control, but you can use Git too.
Step 2: Configure the newly created project in Visual Studio source control on your local system.
Step 3: Create a new project with a solution in Visual Studio and add this in DevOps Source Control then check in the changes.
Step 4: Set up Azure Pipelines under the publish settings of your solution.
Step 5: Wait for a few minutes and then go to the pipelines under Azure DevOps. You will see a new Pipeline created and the build of the project has started.
Step 6: Check the Deployment Center on the Azure portal for your App Service, for which you have set up the Azure Pipeline in step 4.
Step 7: If there is no error in the build, then after some time your build has succeeded. It takes a few minutes. In my example, it takes up to 1min 21 sec.
Step 8: As the build succeeds the new release will be created and started pushing the release changes on the App service.
Step 9: Check the App by using the URL and you will see the application has deployed.
Step 10: Change anything in the application, check the changes, and see if Azure DevOps will build the solution and release the changes. After the build was completed the Release was created.
This article provides a step-by-step guide to configuring Continuous Integration and Continuous Deployment (CI/CD) pipelines using Azure DevOps and Visual Studio. It outlines the process of creating a new project, setting up source control, and configuring Azure Pipelines to automate builds and deployments to an Azure App Service. By following this guide, developers can streamline their workflow, ensuring every code check-in triggers a build and deployment. The tutorial focuses on a single-project setup, with plans for a multi-project guide in a future article.
Vineforce IT Services Pvt. Ltd. CIN-U74999PB2016PTC045501