Skip to content

Any way to filter subscriptions via tags? #18463

@MaurGi

Description

@MaurGi

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!

Metadata

Metadata

Assignees

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupact-identity-squadfeature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions