I am currently trying to write queries using Azure Resource graph explorer. I would like to display the compliance and non compliance of resources by management groups. On the tenant, the architecture is similar to the one below.
I currently use this query to obtain compliance and non-compliance of resources regarding a specific initiative:
Query to display compliant and non-compliant resources
Now I would like to display the results for a given management group (level after the tenant, please see the previous figure). Therefore I thought of doing a join with the highlighted table but it seems there are no columns on which I can join.
Do you have any idea, how I could do this? Thank you in advance!