Hi,
I wanted to try and query across all my resource groups but this doesn't seem to be possible - there is no type of 'resourcegroup' (or anything similar) - so for example
Search-AzGraph -Query "project name, location, type| where type contains 'resource' "
or
Search-AzGraph -Query "project name, location, type| where type contains 'group' "
returns nothing of that type - so if i want to look at all the tags on all of my resource groups that doesn't seem to be possible - or am i missing something?
Thanks,
Rich
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@richardharrison2 Thanks for the question! Currently in the Public Preview, Resource Graph doesn't include the resourceGroups type. If you'd like this capability, our ask is for you to vote for it on the "query any types" UserVoice item. The team uses the product feedback on UserVoice to plan and prioritize efforts. If you have questions about the docs specifically, please let us know!
@MicrosoftDocs/azure-cxp-triage Please assign to me, label 'product-question', label 'assigned-to-author', and #please-close
Thank you David!
@richardharrison2 We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.
You can do something like... $resourceGroups = Search-AzGraph -Query "ResourceContainers | where type =='microsoft.resources/subscriptions/resourcegroups' | project tags"
Most helpful comment
You can do something like... $resourceGroups = Search-AzGraph -Query "ResourceContainers | where type =='microsoft.resources/subscriptions/resourcegroups' | project tags"