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!
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 callaz 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 listbut 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 listapi a lot!