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
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. Prepare the code
Why? The same service is used in every lab.
Create theboutiqueservice and run the tests locally.2. Create the project
Why? The CLI makes creation reproducible and scriptable.
Install the extension, create theBoutiqueproject (Agile process), set defaults and create theboutiquerepository.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 withAB#<id>in the commit message and check the link in the work item.4. Protect main
Why? Policies prevent any direct, unreviewed change to the main branch.
Require a reviewer and a linked item onmain, 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
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
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...