Skip to content
Software capabilities
Azure DevOps

List Azure DevOps pipeline runs

Inspect recent pipeline run metadata for a project and optionally constrain by pipeline, branch, status, result, or time order.

Documentation reviewed · 2 methods with sources

Ways to do it

  1. API: GET /{organization}/{project}/_apis/build/builds
  2. CLI: az pipelines runs list
API

GET /{organization}/{project}/_apis/build/builds

List build runs with definitions, branch, status, result, $top, and continuationToken filters.

Read source: GET /{organization}/{project}/_apis/build/builds reference
Requirements
An Azure DevOps organization and project, a PAT or Entra token with vso.build read scope, and project build-read access.
Limitations
Use continuationToken for additional pages with the same filters. $top limits the size of one page.

Example shell

curl --fail -u ":$AZDO_PAT" "https://dev.azure.com/$AZDO_ORG/$AZDO_PROJECT/_apis/build/builds?definitions=$PIPELINE_ID&\$top=50&api-version=7.1"
CLI

az pipelines runs list

List runs through the first-party Azure DevOps CLI extension and return JSON for scripting or review.

Read source: az pipelines runs list reference
Requirements
Azure CLI, the azure-devops extension, az devops login or configured credentials, and project access.
Limitations
--top bounds returned runs. The CLI exposes filters but does not return every build property that the REST API can provide.

Example shell

az pipelines runs list --organization "https://dev.azure.com/$AZDO_ORG" --project "$AZDO_PROJECT" --pipeline-ids "$PIPELINE_ID" --top 50 --output json