Azure / Azure/azure-cli

az pipelines list non-intuitive behavior when using --query-order

Open
#26,254 2 comments 0 reactions 0 assignees View on GitHub
act-platform-engineering-squad Auto-Assign bug DevOps Pipelines Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Given an Azure ADO project with pipelines. Some of the pipelines are in the root folder. Other pipelines exist in folders and sub-folders.

In this situation, calling az pipelines list returns more results if providing --query-order. For example:

returns 1,256 recrords
az pipelines list --org [org] --project [project]

returns 1,472 records
az pipelines list --org [org] --project [project] --query-order NameAsc

Expected behavior is that both commands should return the same set of records, albeit in a different order. If the current behavior is by design, then this should be documented.

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 66f0311f-8316-ea52-6171-9eb14b9f7bc7
* Version Independent ID: e79f2bc9-543d-9a14-a08c-911d037e108a
* Content: [az pipelines](https://learn.microsoft.com/en-us/cli/azure/pipelines?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/pipelines.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/pipelines.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.