When querying data, the first thing we want to know is „What data is avaiable ?“. Azure Resource Graph (ARG), in its current iteration stores resources from a subscription with the following values:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# We list one resource and get the PSCustomobject values $q = 'top 1 by name' Search-AzGraph -Query $q |Get-Member -MemberType Noteproperty |Select-Object Name Name ---- aliases id identity kind location managedBy name plan properties resourceGroup ResourceId sku subscriptionId tags tenantId type |
So there are 16 properties available for querying, which we will explore. the interesting thing here is that ARG stores also the subscriptionid and tenantid. This may be an indicator that ARG will support multi-subscription and multi-tenant queries also.
More to come …