Azure / Azure/azure-cli

Any way to filter subscriptions via tags?

Open
#18,463 2 comments 0 reactions 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

We have a lot of subcriptions and I need to filter them via tag.

The only way I found it was to list all the subs (`az account list`) and then call `az tag list --resource-id /subscriptions/${subid} -o json`.
This is painfully slow as it takes about 30 seconds to execute on 88 subs.

I looked into `az resource list` but that always points to a single sub and can be used to filter resources inside the sub.

Any better way of doing this?

We are going to end up calling the `az tag list` api a lot!

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.