Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Azure icon

Configure Branch Policies in Azure Repos

When working in Azure Repos, your company's policy is to have 2 people review the code before merging into the main branch. You must apply this policy using branch policies in Azure Repos. **Note:** Please do *not* use the Azure portal credentials provided in this lab. To complete this lab, 2 of your own email addresses are necessary. You can create free accounts at **.

Azure icon

Path Info

Clock icon Intermediate
Clock icon 45m
Clock icon Jul 06, 2021

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create a New Azure DevOps Organization and Project

    • Log in to Azure using your own email account
    • Search for Azure DevOps in Services
    • Create a new organization and private project
  2. Challenge

    Pull Code and Remove Remote Origin

    • Pull the code from here
    • Replace the remote origin
  3. Challenge

    Add a New Member and Branch Policy to the Project

    • From the Azure DevOps project, add a new member to the project
    • Add a branch policy to require 2 reviewers for all pull requests
  4. Challenge

    Create a Branch, Pull Request, and Merge

    • Create a new branch named cool-new-feature
    • Make a change to the Index.cshtml file in the Pages directory
    • Push the changes to Azure Repos
    • From Azure Repos, create a pull request to pull the cool-new-feature branch into main
    • Review the code as each user
    • Successfully merge the code into the main branch

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans