RousselTMLEARNING

TP · Azure DevOps: from discovery to expertise

Lab: Project, Boards and protected Repos

What you will learn in this TP
  • Create a project with the az devops CLI
  • Create work items and link them to commits
  • Configure branch policies
  • Open a linked pull request
Mode :

All steps and instructions are shown. Recommended for this lab: guided

Introduction #

Context. The team moves to Azure DevOps. You create the project, track work in Boards and protect the main branch so every change is reviewed and linked to a request.

Prerequisites: a free Azure DevOps organization, the Azure CLI (azure-devops extension), Git and Python 3  ·  Estimated time: 40 min

A project with its work items, a repository whose main branch requires review and linking, and a linked pull request.

Setup #

Guided steps, with their solution.

  1. 1. Prepare the code

    Why? The same service is used in every lab.

    Create the boutique service and run the tests locally.
  2. 2. Create the project

    Why? The CLI makes creation reproducible and scriptable.

    Install the extension, create the Boutique project (Agile process), set defaults and create the boutique repository.
  3. 3. Track work

    Why? Linking a commit to a User Story gives traceability from request to code.

    Create a User Story and a task, then push the code with AB#<id> in the commit message and check the link in the work item.
  4. 4. Protect main

    Why? Policies prevent any direct, unreviewed change to the main branch.

    Require a reviewer and a linked item on main, then open a linked pull request with auto-complete and approve it in the UI.

Validate your work

Check that each goal above is reached and that you get the result described in the introduction.

Difficulty level : ●●○○○ (2/5)

My progress

  • ⏱ Estimated time : ≈ 40 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

5.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Questions about this lesson

No questions yet: be the first to ask for help or share your configuration.

Ask a question about this lesson →

Recommended Articles

Azure DevOps: services, organization and plans

Discover Azure DevOps: Boards, Repos, Pipelines, Test Plans and Artifacts, organizations and proj...

Azure Boards and Azure Repos: planning and collaborating

Organizing work with Azure Boards (Agile, Scrum, Basic and CMMI processes, work items, backlogs, ...

Azure DevOps security, governance and best practices

Running Azure DevOps securely: permissions and groups, protected resources, pipeline authorizatio...

Git for DevOps: branches, code reviews and versions

Organize work with Git in a DevOps approach: trunk-based development or GitFlow, short-lived bran...

Azure Pipelines agents: hosted, self-hosted and managed pools

Choosing and running Azure Pipelines agents: Microsoft-hosted agents and images, self-hosted agen...

Reusing and securing GitLab pipelines

Industrializing GitLab CI/CD: extends, anchors and !reference, include, CI/CD components and cata...

Building and delivering with GitLab: registry, environments and deployments

Delivering with GitLab CI/CD: building and publishing images to the project registry, package reg...

Azure YAML pipelines: stages, tasks, variables and templates

Writing Azure pipelines in YAML: trigger and pr triggers, stages, jobs and steps, versioned tasks...

Deploying with Azure Pipelines: environments, approvals and service connections

Delivering with Azure Pipelines: multi-stage pipelines, environments, approvals and checks, deplo...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!