Use Case

DORA metrics for Azure DevOps, from your pipelines and work items

Teams searching for Azure DevOps DORA metrics usually have the data already. Azure Pipelines records every run, and Boards records when each work item became active and closed, and when each bug was opened and fixed. What Azure DevOps does not have is one view that turns that into the four DORA metrics. Agile Analytics, an Azure DevOps (ADO) extension, adds a DORA Metrics view inside Azure DevOps that shows deployment frequency, lead time for changes, change failure rate and time to restore for the team you pick, and every card says where its number comes from.

Why DORA metrics are hard to get out of Azure DevOps

  • Azure DevOps records pipeline runs and work item history, but has no view that turns them into the four DORA metrics
  • Getting the numbers usually means exporting runs and work items into a spreadsheet or a Power BI model, then owning that model and its refresh schedule
  • Deployment data and the work items it shipped sit in different places, so lead time to production is guessed rather than measured
  • A DORA number with no stated source or sample size is hard to defend when someone asks how it was counted

What the DORA Metrics view shows in Azure DevOps

  • See deployment frequency, lead time for changes, change failure rate and time to restore for a team, in one view inside Azure DevOps
  • Know where each number comes from: every card names its source, and the work-item cards show their sample size
  • Choose which pipelines count as deployments, so CI-only builds do not inflate deployment frequency
  • Add deploy-linked lead time and change failure rate once commits and pull requests are linked to work items

What the DORA Metrics view in Azure DevOps shows

DORA Metrics sits in the Measure group of the Agile Analytics hub, under Boards. Pick a team and a Window of 14d, 30d or 90d (30 days is the default). The four DORA cards are graded Elite, High, Medium or Low and show the value from the previous window beside the current one, and deployment frequency, lead time and the defect-proxy change failure rate also draw a weekly trend line. Export summary and Export weekly download the numbers as CSV files. The cards are:

  • Deployment frequency: successful pipeline runs per week, from your Azure Pipelines runs.
  • Lead time for changes (work-item proxy): the median (P50) days from a work item becoming active to closing, with P85 beside it.
  • Change failure rate (defect proxy): the bugs opened in the window as a share of all changes, where changes are delivered items plus those bugs.
  • Time to restore (bug-close proxy): the median hours from a bug being created to being closed, with P85 beside it.
  • Build failure rate: failed runs against completed pipeline runs. It is a CI measure, not one of the four DORA metrics, so it carries no grade.

Where each DORA number comes from

The view reads two sources and labels which is which. Deployment frequency and build failure rate come from completed Azure Pipelines runs. Lead time, change failure rate and time to restore come from work item history, and their card titles say "proxy" because work items cannot see a deployment. Lead time counts completed delivery items only: bugs, tasks, test plans, test suites and test cases are left out. Team scope comes from the team’s area paths. Under Configuration, DORA Metrics, the setting "Which pipelines count as deployments?" offers "All pipelines (default)" or "Only selected pipelines (excludes CI-only pipelines from deploy counts)", and it applies to the whole organization. Until you pick your deployment pipelines, the Deployment frequency card shows the rate marked "Not graded: scope pipelines", and a note above the cards has a "Select your deployment pipelines to grade this" button.

Lead time and change failure rate from real deployments

Tick "Measure lead time from linked deployments" in Configuration, DORA Metrics (it is off by default) and two cards appear beside the proxies; they never replace them. Lead time to deploy (deploy-linked) finds the earliest successful run that shipped each completed item, using the work items Azure DevOps links to each run through AB# mentions in commit messages and linked pull requests. It samples the newest 100 successful runs and says how many completed items had a linked deploy, so sparse linking reads as low coverage, not as fast lead time. Change failure rate (deploys) uses the same setting and pipeline choice. A deploy is called failed when a bug opened after it, before the next deploy, had its fix shipped by a later deploy, or when the next deploy followed quickly and shipped a bug fix, which is shown separately as a likely rushed hotfix.

Limits to know before you report the numbers

The view states its limits on the cards rather than hiding them. Read these before you share a DORA figure upward:

  • One pipeline run is one deployment, and runs that finish as PartiallySucceeded count as successful. Select the pipelines whose runs end in production.
  • The work-item cards use a random sample of up to 200 items, and the card shows the sample size. Deployment frequency reads at most the 500 most recent runs and says so when it hits that limit.
  • The defect proxy counts bugs by the date they were opened, so a bug logged today for an old defect raises this window’s rate.
  • Time to restore reads work items of type Bug only. Incidents tracked in another work item type, or outside Azure DevOps, are not in it.
  • If the team’s area paths cannot be read, the numbers fall back to the whole project and the view shows a warning.
  • Deploys are project-wide but bugs are team-scoped, so change failure rate (deploys) can read low on multi-team projects, and the card says so.

DORA on an Azure DevOps dashboard and in the Exec Report

The DORA Snapshot tile puts the four keys on any Azure DevOps dashboard for one team over a 30-day window: Deploys/week, Lead time p50, Change failure (proxy) and Restore p50. It follows the same deployment pipeline setting as the hub, so the tile and the view count deploys the same way. Add it from the widget catalog under "Agile Analytics" and pick a team in its Configure panel. For leadership updates, the Exec Report has a Delivery performance (DORA) section.

Azure DevOps DORA metrics questions

Is there a DORA metrics extension for Azure DevOps (ADO)?

Yes. Agile Analytics is an extension from the Visual Studio Marketplace that adds the DORA Metrics view inside Azure DevOps and the DORA Snapshot tile for Azure DevOps dashboards.

Which Azure DevOps data does the DORA Metrics view read?

Completed Azure Pipelines runs for deployment frequency and build failure rate, and work item history for lead time for changes, change failure rate and time to restore. With "Measure lead time from linked deployments" turned on, it also reads the work items Azure DevOps links to each pipeline run.

Do I need Power BI to see DORA metrics in Azure DevOps?

No. The DORA Metrics view is in the Agile Analytics hub inside Azure DevOps, and the DORA Snapshot tile shows the four keys on an Azure DevOps dashboard. There is no data model to build and no refresh schedule to keep running.

How is deployment frequency counted?

As successful pipeline runs per week: runs that finished as Succeeded or PartiallySucceeded in the window. You choose which pipelines count under Configuration, DORA Metrics. Until you select your deployment pipelines, the card shows the rate without an Elite, High, Medium or Low grade.

How do I get a change failure rate in Azure DevOps?

The Change failure rate (defect proxy) card divides the bugs opened in the window by all changes, meaning delivered items plus those bugs. With linked deployments turned on, the Change failure rate (deploys) card counts a deploy as failed when a later deploy shipped the fix for a bug opened after it, or when the next deploy followed quickly and shipped a bug fix (a likely rushed hotfix). It shows the two counts separately.

How is lead time for changes measured?

The work-item proxy measures the days from a work item becoming active to closing, across completed delivery items, and shows P50 with P85 beside it. The opt-in Lead time to deploy (deploy-linked) card measures to the earliest successful pipeline run that shipped each item, and says how many completed items had a linked deploy.

What do the Elite, High, Medium and Low grades mean?

Deployment frequency is Elite at 14 or more deploys a week, High at 1 or more, Medium at one every 4 weeks or more. Lead time (P50) is Elite at a day or less, High at a week or less, Medium at 30 days or less. Change failure rate is Elite at 5% or less, High at 15% or less, Medium at 30% or less. Time to restore (P50) is Elite at an hour or less, High at a day or less, Medium at a week or less.