Creating and Configuring an Azure Repo

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Our organization has a team of developers in multiple different locations. A new developer has made a change which results in the organization’s application not working properly. The company had backups to correct the issue, but their backup system did not have current backups. They had to use 1-week-old backups to get the app functional and 40 hours of dev time to get it working the way it used to work. Other than having checks and balances for backups running properly, or better controls in place for new developers, we need a solution that helps prevent this issue from occuring again and also make the source code more centralized. This will make it easier for the developers to work on the app from multiple different locations since the company has offices in three different locations.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Repo Using the Web Portal
  1. Go to https://dev.azure.com/.
  2. From the repo drop-down, select New repository.
  3. In the Create a new repository dialog, verify that Git is the repo type and enter a name for the new repo.
  4. Select Create.
Clone the Repo
  1. From the web browser, open the team project for your organization in Azure DevOps and select Repos > Files.
  2. Select Clone in the upper-right corner of the Files window and copy the Clone URL.
  3. Open the Git command window (Git Bash on Git for Windows) and browse to the folder where the code should go on the computer. Run git clone followed by the path copied from the Clone URL in the previous section.
  4. Switch directory to the directory with the cloned repository.
Work with the Code
  1. Browse to the folder with the cloned repo and open the README.md file.
  2. Make changes and then save the file.
  3. Commit the changes.
  4. Go to DevOps Portal to confirm the changes are reflected.

Additional Resources

Azure Repos is a viable solution because it includes version control tools that can make it easy to revert to a previous version in the event of some mistake. Azure devops is integrated with Git. This addresses the problems and gives a centralized repository of the code which makes it feasible for developers to have the three office locations and work together.

In this lab, we configure the Azure Repo as a solution to the reported problem. This is important because mistakes will happen in the development life cycle of an application and we need a solution to quickly and easliy address common user errors. We are going to accomplish this through the DevOps Portal. This hands-on lab provides an understanding of Azure Repos and the knowledge on how to set it up.

Download and Install Git

To download the file directly to the Azure VM, go to Server Manager-->Local Server-->Enhanced Security Configuration-->Click the link that says Off-->Make sure the Off radio button is selected for Administrators and Users.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?