Azure / Azure/azure-cli

Support pagination for resources listing commands

Open
#25,638 4 comments 0 reactions 1 assignee Assigned to @necusjz View on GitHub
act-observability-squad Azure CLI Team feature-request needs-team-attention Reservations
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Related command

az reservations list

### Resource Provider

Microsoft.Capacity

### Description of Feature or Work Requested

Currently listing resources command will return all resources, e.g. if a user has a total of 1000 reservations, the listing command will return 1000 of them instead of only the first 50 items. We would like the command to have a default behavior that, without specifying the number of items to take, command will only return 50 items unless it's specified with the number of items to take(e.g. --take 100).

### Minimum API Version Required

2022-11-01

### Swagger PR link / SDK link

https://github.com/Azure/azure-rest-api-specs/pull/21565

### Request Example

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetReservations.json

### Target Date

2023-05-01

### Additional context

_No response_

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.