- Lab
- A Cloud Guru
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 *login.microsoft.com*.
Path Info
Table of Contents
-
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
-
Challenge
Pull Code and Remove Remote Origin
- Pull the code from here
- Replace the remote origin
-
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
-
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 intomain
- Review the code as each user
- Successfully merge the code into the main branch
- Create a new branch named
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.