Skip to content

Commit 1a07d08

Browse files
committed
updates arg tables
1 parent dcf21e6 commit 1a07d08

File tree

2 files changed

+57
-39
lines changed

2 files changed

+57
-39
lines changed

articles/governance/resource-graph/concepts/query-language.md

Lines changed: 56 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
---
22
title: Understand the query language
33
description: Describes Resource Graph tables and the available Kusto data types, operators, and functions usable with Azure Resource Graph.
4-
ms.date: 12/18/2023
4+
ms.date: 01/22/2023
55
ms.topic: conceptual
6-
ms.author: davidsmatlak
7-
author: davidsmatlak
86
---
97

108
# Understanding the Azure Resource Graph query language
@@ -28,39 +26,65 @@ This article covers the language components supported by Resource Graph:
2826

2927
## Resource Graph tables
3028

31-
Resource Graph provides several tables for the data it stores about Azure Resource Manager resource
32-
types and their properties. Some tables can be used with `join` or `union` operators to get
33-
properties from related resource types. Here's the list of tables available in Resource Graph:
34-
35-
|Resource Graph table |Can `join` other tables? |Description |
36-
|---|---|---|
37-
|Resources | Yes |The default table if none defined in the query. Most Resource Manager resource types and properties are here. |
38-
|ResourceContainers | Yes |Includes management group (`Microsoft.Management/managementGroups`), subscription (`Microsoft.Resources/subscriptions`) and resource group (`Microsoft.Resources/subscriptions/resourcegroups`) resource types and data. |
39-
|AdvisorResources | Yes |Includes resources _related_ to `Microsoft.Advisor`. |
40-
|AlertsManagementResources | Yes |Includes resources _related_ to `Microsoft.AlertsManagement`. |
41-
|DesktopVirtualizationResources | Yes |Includes resources _related_ to `Microsoft.DesktopVirtualization`. |
42-
|ExtendedLocationResources | Yes |Includes resources _related_ to `Microsoft.ExtendedLocation`. |
43-
|GuestConfigurationResources | Yes |Includes resources _related_ to `Microsoft.GuestConfiguration`. |
44-
|HealthResources| Yes |Includes resources _related_ to `Microsoft.ResourceHealth/availabilitystatuses`. |
45-
|IoTSecurityResources | Yes |Includes resources _related_ to `Microsoft.IoTSecurity`. |
46-
|KubernetesConfigurationResources | Yes |Includes resources _related_ to `Microsoft.KubernetesConfiguration`. |
47-
|MaintenanceResources | Yes |Includes resources _related_ to `Microsoft.Maintenance`. |
48-
|PatchAssessmentResources| Yes |Includes resources _related_ to Azure Virtual Machines patch assessment. |
49-
|PatchInstallationResources| Yes |Includes resources _related_ to Azure Virtual Machines patch installation. |
50-
|PolicyResources | Yes |Includes resources _related_ to `Microsoft.PolicyInsights`. |
51-
|RecoveryServicesResources | Yes |Includes resources _related_ to `Microsoft.DataProtection` and `Microsoft.RecoveryServices`. |
52-
|SecurityResources | Yes |Includes resources _related_ to `Microsoft.Security`. |
53-
|ServiceHealthResources | Yes |Includes resources _related_ to `Microsoft.ResourceHealth/events`. |
54-
|WorkloadMonitorResources | Yes |Includes resources _related_ to `Microsoft.WorkloadMonitor`. |
55-
56-
For a complete list, including resource types, go to [Reference: Supported tables and resource types](../reference/supported-tables-resources.md).
29+
Resource Graph provides several tables for the data it stores about Azure Resource Manager resource types and their properties. Resource Graph tables can be used with the `join` operator to get properties from related resource types.
30+
31+
Resource Graph tables support the `join` flavors:
32+
- [innerunique](/azure/data-explorer/kusto/query/join-innerunique)
33+
- [inner](/azure/data-explorer/kusto/query/join-inner)
34+
- [leftouter](/azure/data-explorer/kusto/query/join-leftouter)
35+
- [fullouter](/azure/data-explorer/kusto/query/join-fullouter)
36+
37+
| Resource Graph table | Can `join` other tables? | Description |
38+
| --- | --- | --- |
39+
| AdvisorResources | Yes | Includes resources _related_ to `Microsoft.Advisor`. |
40+
| AlertsManagementResources | Yes | Includes resources _related_ to `Microsoft.AlertsManagement`. |
41+
| AppServiceResources | Yes | Includes resources _related_ to `Microsoft.Web`. |
42+
| AuthorizationResources | Yes | Includes resources _related_ to `Microsoft.Authorization`. |
43+
| AWSResources | Yes | Includes resources _related_ to `Microsoft.AwsConnector`. |
44+
| AzureBusinessContinuityResources | Yes | Includes resources _related_ to `Microsoft.AzureBusinessContinuity`. |
45+
| ChaosResources | Yes | Includes resources _related_ to `Microsoft.Chaos`. |
46+
| CommunityGalleryResources | Yes | Includes resources _related_ to `Microsoft.Compute`. |
47+
| DesktopVirtualizationResources | Yes | Includes resources _related_ to `Microsoft.DesktopVirtualization`. |
48+
| DnsResources | Yes | Includes resources _related_ to `Microsoft.Network`. |
49+
| EdgeOrderResources | Yes | Includes resources _related_ to `Microsoft.EdgeOrder`. |
50+
| ElasticsanResources | Yes | Includes resources _related_ to `Microsoft.ElasticSan`. |
51+
| ExtendedLocationResources | Yes | Includes resources _related_ to `Microsoft.ExtendedLocation`. |
52+
| FeatureResources | Yes | Includes resources _related_ to `Microsoft.Features`. |
53+
| GuestConfigurationResources | Yes | Includes resources _related_ to `Microsoft.GuestConfiguration`. |
54+
| HealthResourceChanges | Yes | Includes resources _related_ to `Microsoft.Resources`. |
55+
| HealthResources| Yes | Includes resources _related_ to `Microsoft.ResourceHealth`. |
56+
| InsightsResources | Yes | Includes resources _related_ to `Microsoft.Insights`. |
57+
| IoTSecurityResources | Yes | Includes resources _related_ to `Microsoft.IoTSecurity` and `Microsoft.IoTFirmwareDefense`. |
58+
| KubernetesConfigurationResources | Yes | Includes resources _related_ to `Microsoft.KubernetesConfiguration`. |
59+
| KustoResources | Yes | Includes resources _related_ to `Microsoft.Kusto`. |
60+
| MaintenanceResources | Yes | Includes resources _related_ to `Microsoft.Maintenance`. |
61+
| ManagedServicesResources | Yes | Includes resources _related_ to `Microsoft.ManagedServices`. |
62+
| MigrateResources | Yes | Includes resources _related_ to `Microsoft.OffAzure`. |
63+
| NetworkResources | Yes | Includes resources _related_ to `Microsoft.Network`. |
64+
| OrbitalResources | Yes | Includes resources _related_ to `Microsoft.Orbital`. |
65+
| PatchAssessmentResources| Yes | Includes resources _related_ to Azure Virtual Machines patch assessment `Microsoft.Compute` and `Microsoft.HybridCompute`. |
66+
| PatchInstallationResources| Yes | Includes resources _related_ to Azure Virtual Machines patch installation `Microsoft.Compute` and `Microsoft.HybridCompute`. |
67+
| PolicyResources | Yes | Includes resources _related_ to `Microsoft.PolicyInsights`. |
68+
| RecoveryServicesResources | Yes | Includes resources _related_ to `Microsoft.DataProtection` and `Microsoft.RecoveryServices`. |
69+
| ResourceChanges | Yes | Includes resources _related_ to `Microsoft.Resources`. |
70+
| ResourceContainerChanges | Yes | Includes resources _related_ to `Microsoft.Resources`. |
71+
| ResourceContainers | Yes | Includes management group (`Microsoft.Management/managementGroups`), subscription (`Microsoft.Resources/subscriptions`) and resource group (`Microsoft.Resources/subscriptions/resourcegroups`) resource types and data. |
72+
| Resources | Yes | The default table if a table isn't defined in the query. Most Resource Manager resource types and properties are here. |
73+
| SecurityResources | Yes | Includes resources _related_ to `Microsoft.Security`. |
74+
| ServiceFabricResources | Yes | Includes resources _related_ to `Microsoft.ServiceFabric`. |
75+
| ServiceHealthResources | Yes | Includes resources _related_ to `Microsoft.ResourceHealth/events`. |
76+
| SpotResources | Yes | Includes resources _related_ to `Microsoft.Compute`. |
77+
| SupportResources | Yes | Includes resources _related_ to `Microsoft.Support`. |
78+
| TagsResources | Yes | Includes resources _related_ to `Microsoft.Resources/tagnamespaces`. |
79+
80+
For a list of tables that includes resource types, go to [Azure Resource Graph table and resource type reference](../reference/supported-tables-resources.md).
5781

5882
> [!NOTE]
5983
> _Resources_ is the default table. While querying the _Resources_ table, it isn't required to
60-
> provide the table name unless `join` or `union` are used. However, the recommended practice is to
84+
> provide the table name unless `join` or `union` are used. But the recommended practice is to
6185
> always include the initial table in the query.
6286
63-
Use Resource Graph Explorer in the portal to discover what resource types are available in each
87+
Use Resource Graph Explorer in the portal to discover which resource types are available in each
6488
table. As an alternative, use a query such as `<tableName> | distinct type` to get a list of
6589
resource types the given Resource Graph table supports that exist in your environment.
6690

@@ -170,7 +194,7 @@ Here's the list of KQL tabular operators supported by Resource Graph with specif
170194
|[count](/azure/data-explorer/kusto/query/countoperator) |[Count key vaults](../samples/starter.md#count-key-vault-resources) | |
171195
|[distinct](/azure/data-explorer/kusto/query/distinctoperator) |[Show resources that contain storage](../samples/starter.md#show-resources-that-contain-storage) | |
172196
|[extend](/azure/data-explorer/kusto/query/extendoperator) |[Count virtual machines by OS type](../samples/starter.md#count-virtual-machines-by-os-type) | |
173-
|[join](/azure/data-explorer/kusto/query/joinoperator) |[Key vault with subscription name](../samples/advanced.md#key-vaults-with-subscription-name) |Join flavors supported: [innerunique](/azure/data-explorer/kusto/query/joinoperator#default-join-flavor), [inner](/azure/data-explorer/kusto/query/joinoperator#inner-join), [leftouter](/azure/data-explorer/kusto/query/joinoperator#left-outer-join). Limit of three `join` in a single query, one of which might be a cross-table `join`. If all cross-table `join` use is between _Resource_ and _ResourceContainers_, then three cross-table `join` are allowed. Custom join strategies, such as broadcast join, aren't allowed. For which tables can use `join`, go to [Resource Graph tables](#resource-graph-tables). |
197+
|[join](/azure/data-explorer/kusto/query/joinoperator) |[Key vault with subscription name](../samples/advanced.md#key-vaults-with-subscription-name) |Join flavors supported: [innerunique](/azure/data-explorer/kusto/query/joinoperator#default-join-flavor), [inner](/azure/data-explorer/kusto/query/joinoperator#inner-join), [leftouter](/azure/data-explorer/kusto/query/joinoperator#left-outer-join), and [fullouter](/azure/data-explorer/kusto/query/join-fullouter). Limit of three `join` in a single query, one of which might be a cross-table `join`. If all cross-table `join` use is between _Resource_ and _ResourceContainers_, then three cross-table `join` are allowed. Custom join strategies, such as broadcast join, aren't allowed. For which tables can use `join`, go to [Resource Graph tables](#resource-graph-tables). |
174198
|[limit](/azure/data-explorer/kusto/query/limitoperator) |[List all public IP addresses](../samples/starter.md#list-all-public-ip-addresses) |Synonym of `take`. Doesn't work with [Skip](./work-with-data.md#skipping-records). |
175199
|[mvexpand](/azure/data-explorer/kusto/query/mvexpandoperator) | | Legacy operator, use `mv-expand` instead. _RowLimit_ max of 400. The default is 128. |
176200
|[mv-expand](/azure/data-explorer/kusto/query/mvexpandoperator) |[List Azure Cosmos DB with specific write locations](../samples/advanced.md#list-azure-cosmos-db-with-specific-write-locations) |_RowLimit_ max of 400. The default is 128. Limit of 2 `mv-expand` in a single query.|

articles/governance/resource-graph/reference/supported-tables-resources.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
title: Supported Azure Resource Manager resource types
33
description: Provide a list of the Azure Resource Manager resource types supported by Azure Resource Graph and Change History.
4-
ms.date: 12/28/2023
4+
ms.date: 01/22/2023
55
ms.topic: reference
66
ms.custom: generated
7-
ms.author: davidsmatlak
8-
author: davidsmatlak
97
---
108

119
# Azure Resource Graph table and resource type reference
@@ -1026,10 +1024,6 @@ For sample queries for this table, see [Resource Graph sample queries for servic
10261024
- microsoft.compute/skuspotevictionrate/location
10271025
- microsoft.compute/skuspotpricehistory/ostype/location
10281026

1029-
## workloadmonitorresources
1030-
1031-
- microsoft.workloadmonitor/monitors
1032-
10331027
## Next steps
10341028

10351029
- Learn more about the [query language](../concepts/query-language.md).

0 commit comments

Comments
 (0)