← All articles
Cloud & DevOps/11 min read

Azure DevOps – An Overview of Boards, Repos, Pipelines, Test Plans and Artifacts

Azure DevOps keeps the planning, code, builds, tests and packages of a software team in one place. We look at what each of its five services does, and follow one change from a user story all the way to production.

User story 1452, Apply a discount code at checkout, followed through Azure DevOps: active on the board with two tasks, a pull request into main with Fixes #1452, two approvals and passed policies, a pipeline run that builds, tests and deploys to test and production, a test suite with three passed test cases, and the pricing-lib 2.4.0 package promoted to the release view in Artifacts. STORY #1452 · APPLY A DISCOUNT CODE AT CHECKOUT #1452 Apply a discount code at checkout Active 2 tasks Pull request into main Fixes #1452 2 approvals policies passed merged run · main build unit tests deploy · test deploy · prod suite · #1452 valid code expired code wrong code 3 of 3 passed pricing-lib 2.4.0 @local @prerelease @release BOARDS REPOS PIPELINES TEST PLANS ARTIFACTS
One user story, followed through the five services.

Introduction

Take a team of six people building an online store: four developers, a tester and a product owner. On any given day, the product owner is writing user stories, the developers are reviewing each other’s code, a build is running, the tester is going through a test plan, and a shared library is being published for the other apps to use. If each of these is done in a different tool, a lot of time goes in keeping the tools in sync with each other.

Azure DevOps puts all of this in one place. In this blog, we will look at what Azure DevOps is, what each of its five services does, and how they work together, using this team as the example throughout. We will also see what Azure DevOps costs, and when its on-premises version, Azure DevOps Server, makes sense.

What is Azure DevOps?

Azure DevOps is a cloud platform from Microsoft with a set of integrated tools for software teams. When you sign up, you first create an organization, which is usually one per company, and inside it, you create projects. A project holds the work items, code repositories, pipelines, test plans and package feeds of one product or one team, and the members of the project can work with all of them.

Inside a project, the menu on the left has an entry for each of the five services, i.e., Boards, Repos, Pipelines, Test Plans and Artifacts. You don’t have to use all five of them. A project administrator can switch off a service that the team doesn’t need, from Project settings > Overview, and it disappears from the menu for everyone in that project. The data is kept, so when the service is switched on again, everything is back as it was.

An organization holds two projects, Online Store and Admin App. Each project has Boards, Repos, Pipelines, Test Plans and Artifacts, and in the Admin App project, Test Plans is switched off. ORGANIZATION PROJECT · Online Store PROJECT · Admin App BoardsReposPipelinesTest PlansArtifacts BoardsReposPipelinesTest PlansArtifacts switched off
One organization, several projects, five services each.

People sign in with a Microsoft account, a work or school account from Microsoft Entra ID, or a GitHub account. Azure DevOps also connects with the tools that teams already use. There are apps for Microsoft Teams and Slack, for example to create and follow work items from a chat, and the Visual Studio Marketplace has more than 1,000 extensions that add features to Azure DevOps.

Azure Boards: How is the Work Planned?

Azure Boards is where the work is planned and tracked. Every piece of work, like a user story, a bug or a task, is a work item, and each work item has an ID, a state, an owner and a history of all the changes made to it.

When you create a project, you pick a process, and it decides the types of work items that you get. There are four default processes:

  • Basic: This is the simplest one, with Epic, Issue and Task, and it is a good start for small teams.
  • Agile: It has Epic, Feature, User Story, Task, Bug and Issue, and it is a common choice for teams that follow Agile practices.
  • Scrum: It has Epic, Feature, Product Backlog Item, Task, Bug and Impediment, for teams that work in Scrum sprints.
  • CMMI: This is for teams that need a more formal process, with work items like Requirement, Change Request, Risk and Review.

Our online store team uses the Agile process. So, the product owner adds “Apply a discount code at checkout” as a user story, and it gets an ID, say 1452. Here’s how the team then works with it in Boards:

  • Backlog: All the user stories are listed in the backlog in order of priority, and the product owner drags the most important ones to the top.
  • Sprints: In sprint planning, the team pulls story 1452 into the next sprint and breaks it down into tasks, like the change in the pricing API and the change on the checkout page. The taskboard then shows these tasks and who is working on what.
  • Board: The Kanban board shows each user story as a card that moves through columns like New, Active, Resolved and Closed, so anyone can see where things stand without asking.
  • Queries and dashboards: A query can list, for example, all the open bugs on the checkout page, and its result can be shown as a chart on the team’s dashboard.
  • Delivery Plans: When several teams work on the same product, a delivery plan shows the work of all of them on one timeline.

Boards works with GitHub as well. If a team keeps its code on GitHub, a commit or a pull request is linked to a work item by writing AB# and the ID in its message, like AB#1452.

Azure Repos: Where Does the Code Live?

Azure Repos holds the code in private Git repositories, and a project can have as many repositories as it needs. It also supports Team Foundation Version Control (TFVC), an older, centralized version control system, but Git is the default, and it is what most teams use today.

In our team, a developer creates a branch for the discount code, makes the changes, and opens a pull request to merge them into the main branch. The other developers review the changes in the pull request, leave comments on the lines that they have questions about, and approve it once they are happy with it.

To make sure that nothing reaches the main branch without this kind of review, the team sets up branch policies on main. These are the ones used most often:

  • Require a minimum number of reviewers: For example, the pull request needs two approvals before it can be completed.
  • Check for linked work items: Every pull request has to be linked to a work item, so it is always clear why a change was made.
  • Check for comment resolution: All the review comments have to be resolved first.
  • Limit merge types: For example, only squash merges are allowed, so the main branch gets one clean commit for each pull request.
  • Build validation: A pipeline builds the code and runs the tests for every pull request, and the pull request can be completed only if this build passes.
  • Automatically included reviewers: Some people or groups are added as reviewers on their own when certain files change, like the database team for any change in the migrations folder.

With these policies in place, nobody can push straight to the main branch, unless they have been given the permission to bypass the policies.

A change on the feature/discount-code branch goes into a pull request into main with Fixes #1452. Before it can be merged, the pull request has to pass four branch policies: two reviewers approved, linked to work item 1452, all comments resolved and the build validation passed. feature/ discount-code Pull request into main Fixes #1452 2 reviewers approved linked to #1452 comments resolved build validation passed main BRANCH PULL REQUEST BRANCH POLICIES MAIN
Branch policies a pull request must pass before main.

Repos and Boards are linked too. When the developer writes “Fixes #1452” in a commit message, the commit is linked to the user story, and once that commit reaches the main branch, the story is resolved on its own. This works because of a repository setting, Commit mention work item resolution, which is on by default.

Azure Pipelines: How Does the Code Get Built and Deployed?

Azure Pipelines is the CI/CD service of Azure DevOps. A pipeline is usually written as a YAML file, which sits in the repository along with the code and describes how the code is built, tested and deployed. The pipeline runs on agents, i.e., machines that Microsoft hosts for you, with Windows, Linux or macOS, or on your own machines, if you need that.

For the online store, two pipelines are enough to start with. The first one runs for every pull request, as the build validation policy that we saw above. It builds the code and runs the unit tests, so a broken change never reaches the main branch. The second one runs after the change is merged into main. It builds the store again, deploys it to a test environment, and then, once someone approves it, to production.

Azure Pipelines isn’t limited to Azure Repos or to Azure either. It can build code from GitHub and Bitbucket, and it can deploy to other clouds and to on-premises servers as well. There is a lot more to it, like jobs, stages, triggers, templates and variables, so we will look at Azure Pipelines in detail in our next blog, starting from what goes into a YAML pipeline.

Azure Test Plans: How is the Manual Testing Done?

The automated tests run in the pipelines, but some testing still has to be done by people, like checking a new checkout flow from a customer’s point of view, or the user acceptance testing before a release. Azure Test Plans is meant for this kind of testing.

The tests are organized in three levels. A test plan usually covers one release or one sprint, it holds test suites, and each suite holds test cases, i.e., the steps to follow and the expected result of each step. There are three kinds of suites:

  • Static suites: The test cases are added to them by hand.
  • Requirement-based suites: These are linked to a work item, like user story 1452, so the test cases for the discount code stay together with the story that they test.
  • Query-based suites: These pick up all the test cases that match a query, for example the test cases for the checkout area.

Our tester runs the discount code test cases in the Test Runner, which shows the steps one by one and records which of them passed or failed, along with screenshots or a screen recording. If a step fails, a bug can be created right from there, with the steps already filled in. For exploratory testing, where the tester tries things out without a script, there is the free Test & Feedback extension for Chrome and Edge, and the stakeholders can also use it to give their feedback on a feature.

Since the test cases are linked to user stories, the team can see for each story which tests have passed, which have failed and which haven’t run yet, and the progress report shows the same for the whole test plan. Note that creating and managing test plans needs the Basic + Test Plans access level, which is paid, while users with Basic access can run the tests.

Azure Artifacts: How are Packages Shared?

Teams often have code that is needed by more than one application. In the online store, the pricing logic, which works out the discount for a code, is used by both the store and the admin app. So, the team keeps it as a separate library and publishes it as a NuGet package to a feed in Azure Artifacts, and both the apps install it from there.

A feed is where the packages are stored and shared from. Azure Artifacts supports NuGet, npm, Maven, Gradle, Python and Cargo packages, and Universal Packages for other kinds of files. A feed can be scoped to one project, or to the whole organization, so that every project can use it. Two features of the feeds are especially useful:

  • Upstream sources: A feed can sit in front of public registries like NuGet.org, npmjs.com and Maven Central. When a developer installs a public package through the feed, a copy of it is saved in the feed, so the team keeps its own copy even if the public one changes or becomes unavailable later. It also gives the team one place to see all the packages that its apps use.
  • Views: Every feed starts with three views, @local, @prerelease and @release. All the packages are published to @local, and when a version has been tested, it is promoted to @prerelease or @release. Other teams can then use only the @release view, so they never pick up a version that hasn’t been tested.
Public packages from NuGet.org and npmjs.com come into the team's feed through upstream sources and are saved in its @local view, along with the pricing-lib 2.4.0 package that the pipeline publishes. Tested versions are promoted to @prerelease and then @release, and the online store and the admin app install packages from the @release view. NuGet.org npmjs.com online-store feed pricing-lib 2.4.0 published by the pipeline @local @prerelease @release tested versions are promoted Online store Admin app UPSTREAM FEED APPS
How packages flow in and out of a feed.

Up to 2 GiB of storage is free for every organization, and more can be bought if needed.

How Do the Five Services Work Together?

Let’s follow the discount code from start to finish, to see how the services connect with each other:

  • In Boards: The product owner adds user story 1452, and the team pulls it into the sprint and breaks it into tasks.
  • In Repos: A developer makes the change on a branch, with “Fixes #1452” in the commit message, and opens a pull request, which the other developers review and approve.
  • In Pipelines: The build validation pipeline builds the code and runs the unit tests for the pull request. Once it is merged, the second pipeline deploys the store to the test environment.
  • In Test Plans: The tester runs the test cases in the requirement-based suite for story 1452, and they pass.
  • In Pipelines again: After the approval, the pipeline deploys the change to production. And since the commit with “Fixes #1452” is now on the main branch, the user story is resolved.
  • In Artifacts: The new version of the pricing library, with the discount code logic, is published to the feed and promoted to @release, so the admin app can use it too.

At any point, anyone in the project can open user story 1452 and see the linked commits, the pull request, the builds, the test results and the bugs, all in one place. This is the main reason why teams use the five services together, and not five separate tools.

Azure DevOps Services or Azure DevOps Server?

Everything we have discussed so far is about Azure DevOps Services, the cloud version that Microsoft hosts and updates. There is also Azure DevOps Server, which is the on-premises version, and a company installs and maintains it on its own servers. It has the same core services, but the company has to look after the infrastructure, the backups and the upgrades. Also, the new features usually come to the cloud version first, and reach Azure DevOps Server in its next major version or update.

So, Azure DevOps Server makes sense mainly when the data has to stay on the company’s own servers, for example because of regulatory requirements, or when the company needs customizations that the cloud version doesn’t allow. For most teams, the cloud version is the simpler choice.

What Does Azure DevOps Cost?

For a small team, Azure DevOps can be free to start with. Here’s what comes free with every organization:

  • The first five users with Basic access, which covers Boards, Repos, Pipelines and Artifacts.
  • Any number of Stakeholders, who can work with work items and give feedback, but don’t get access to the code.
  • One Microsoft-hosted parallel job for Pipelines, with 1,800 minutes a month, and one self-hosted parallel job, with no limit on the minutes.
  • 2 GiB of storage in Azure Artifacts.

Beyond these, the extra users, parallel jobs and storage are paid for every month, and the people who create and manage the test plans need the paid Basic + Test Plans access level. For our team of six, the four developers and the product owner fit within the five free Basic users, and only the tester needs a paid license, for Basic + Test Plans. The current prices are on Microsoft’s pricing page for Azure DevOps, and they can vary by region and currency.

The Bottom Line

Azure DevOps keeps everything that happens to a change in one place, from the user story in Boards to the code and its review in Repos, the builds and deployments in Pipelines, the manual tests in Test Plans and the shared packages in Artifacts. Each service can be used on its own, but when they are used together, one work item shows everything that happened to it, and that saves the team a lot of time. For a small team, it is also free to start with.

In our next blog, we will look at Azure Pipelines in detail, from what goes into a YAML pipeline to triggers, templates and variables.