Bring your own Git Repository Code to Azure DevOps Project

By | May 2, 2018

Azure DevOps Project with Git

Bringing your own git repository code to Azure DevOps Project is now very easy and straightforward. Azure DevOps Project makes it extremely easy to setup up your end-to-end build and release pipeline. It helps you to get started on setting up code repo, build, and deployment with Azure. Just by using few quick steps, DevOps project set you up everything you need for developing, deploying and monitoring your app on Azure. Check out one of my previous post – “Quickly setup everything you need for developing, deploy and monitor your solution on Azure – Using Azure DevOps Project” on how it works. The Azure DevOps Project also allows us to bring our existing code and Git repository and enable the entire continuous integration (CI) and continuous delivery (CD) pipeline to Azure using Visual Studio Team Services (VSTS)

You can achieve this by following steps:

  • Create an Azure DevOps project
  • Configure access to your GitHub repository by authorizing Azure
  • Choose a code framework
  • Connect and Configure VSTS with Azure subscription

Creating Azure DevOps Project:

To start with, create a new Azure DevOps Project from the Azure Portal, Select “Create a resource” -> “DevOps Project” and then select “Create

Create New Azure DevOps Project

From the application type selections screen, select “Bring your own code” option available under “to start with your application“.

Start with Your Application

Git Repository Code to Azure DevOps Project:

When you select the option “Bring your own code”, you need to choose the source code location either from GitHub or External Git.

Select Git Hub Account

Once you select the GitHub option, It will ask you to authorize with your GitHub Account. Provide your GitHub credentials when asked and Authorize Azure to get access to your repositories.

Connect with Git Hub Account

 

 

Post authorization, you will have access to all your Git repository, and further you can complete all the necessary steps by selecting a particular repository, Application framework and the services where you want it to be deployed.

Git Account Process for DevOps

 

Hereafter the process will be same as other Azure Dev Ops Projects. Once the code repository and services are selected, we need to setup the VSTS Account. We can choose an existing VSTS account, we can create a new one. We also need to choose Azure Subscription, App Services Name, and the App Services plan.

 

VSTS Project Creation

Once this process of selection is done, click on “Done

That’s it. It will start processing provisioning the code repository in Git, setting up build definition, release definition and everything that you need to end to end delivery.  Once completed you will have an overall dashboard and you can then navigate to build and release definition.

Dashboard for DevOps Project

 

You can now start making changes in your code, push it to Git and see the CI/CD working seamlessly with Azure and VSTS along with your Git Account.

 

Must Read Related Posts :

Geek’s Choice

One thought on “Bring your own Git Repository Code to Azure DevOps Project

  1. Pingback: Azure DevOps Project with Azure SQL Server Database for Web Applications - Daily .NET Tips

Comments are closed.