Azure-docs: Support for querying resource groups?

Created on 28 Feb 2019  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-docs

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


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author product-question resource-grapsvc triaged

Most helpful comment

You can do something like... $resourceGroups = Search-AzGraph -Query "ResourceContainers | where type =='microsoft.resources/subscriptions/resourcegroups' | project tags"

All 3 comments

@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"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JamesDLD picture JamesDLD  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments