Azure / Azure/azure-cli

[Question] Always returning an array from `az resource show`?

Open
#18,423 3 comments 1 reaction 1 assignee Claimed by @zhoxing-ms View on GitHub
act-identity-squad ARM feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

The following command returns a single resource object
```sh
az resource show --ids {id_1}
```

The following command returns an array containing multiple resource objects
```sh
az resource show --ids {id_1} {id_2}
```

Is there an argument I can use to ensure that an array is returned, regardless of the number of ids supplied? I was wondering if it's possible with the `--query` flag, but I'm not familiar enough with JMESPath and couldn't spot anything obvious.

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.