Skip to content

Commit 7084507

Browse files
Merge pull request #92308 from DCtheGeek/dmc-arg-tabs
Draft: Sample adjustments
2 parents 94818cc + 11ee6e6 commit 7084507

File tree

8 files changed

+404
-44
lines changed

8 files changed

+404
-44
lines changed
251 Bytes
Loading

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ 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.
44
author: DCtheGeek
55
ms.author: dacoulte
6-
ms.date: 10/18/2019
6+
ms.date: 10/21/2019
77
ms.topic: conceptual
88
ms.service: resource-graph
99
---
@@ -29,7 +29,7 @@ from related resource types. Here is the list of tables available in Resource Gr
2929
|Resource Graph tables |Description |
3030
|---|---|
3131
|Resources |The default table if none defined in the query. Most Resource Manager resource types and properties are here. |
32-
|ResourceContainers |Includes subscription (`Microsoft.Resources/subscriptions`) and resource group (`Microsoft.Resources/subscriptions/resourcegroups`) resource types and data. |
32+
|ResourceContainers |Includes subscription (in preview -- `Microsoft.Resources/subscriptions`) and resource group (`Microsoft.Resources/subscriptions/resourcegroups`) resource types and data. |
3333
|AlertsManagementResources |Includes resources _related_ to `Microsoft.AlertsManagement`. |
3434
|SecurityResources |Includes resources _related_ to `Microsoft.Security`. |
3535

@@ -62,8 +62,8 @@ the name of the key vault, and the name of the subscription it's in.
6262

6363
```kusto
6464
Resources
65-
| join (ResourceContainers | where type=='microsoft.resources/subscriptions' | project SubName=name, subscriptionId) on subscriptionId
6665
| where type == 'microsoft.keyvault/vaults'
66+
| join (ResourceContainers | where type=='microsoft.resources/subscriptions' | project SubName=name, subscriptionId) on subscriptionId
6767
| project type, name, SubName
6868
| limit 1
6969
```

articles/governance/resource-graph/first-query-portal.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Run your first query using Azure Resource Graph Explorer
33
description: This article walks you through the steps to run your first query from Azure portal using Azure Resource Graph Explorer.
44
author: DCtheGeek
55
ms.author: dacoulte
6-
ms.date: 10/18/2019
6+
ms.date: 10/21/2019
77
ms.topic: quickstart
88
ms.service: resource-graph
99
---
@@ -61,12 +61,13 @@ limited to the top five results.
6161
The schema browser is located in the left pane of Resource Graph Explorer. This list of resources
6262
shows all the _resource types_ of Azure resources that are both supported by Azure Resource Graph
6363
and that exist in a tenant that you have access to. Expanding a resource type or subproperties show
64-
child properties that can be used to create a Resource Graph query. Selecting the resource type
65-
places `where type =="<resource type>"` into the query box. Selecting one of the child properties
66-
adds `where <propertyName> == "INSERT_VALUE_HERE"` into the query box. The schema browser is a great
67-
way to discover properties for use in queries. Be sure to replace _INSERT\_VALUE\_HERE_ with your
68-
own value, adjust the query with conditions, operators, and functions to achieve your intended
69-
results.
64+
child properties that can be used to create a Resource Graph query.
65+
66+
Selecting the resource type places `where type =="<resource type>"` into the query box. Selecting
67+
one of the child properties adds `where <propertyName> == "INSERT_VALUE_HERE"` into the query box.
68+
The schema browser is a great way to discover properties for use in queries. Be sure to replace
69+
_INSERT\_VALUE\_HERE_ with your own value, adjust the query with conditions, operators, and
70+
functions to achieve your intended results.
7071

7172
## Create a chart from the Resource Graph query
7273

722 Bytes
Loading
1.21 KB
Loading

articles/governance/resource-graph/overview.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Overview of Azure Resource Graph
33
description: Understand how the Azure Resource Graph service enables complex querying of resources at scale.
44
author: DCtheGeek
55
ms.author: dacoulte
6-
ms.date: 05/06/2019
6+
ms.date: 10/21/2019
77
ms.topic: overview
88
ms.service: resource-graph
99
---
@@ -36,8 +36,12 @@ facilities for calling individual resource providers for detailed properties one
3636

3737
With Azure Resource Graph, you can access these properties the resource providers return without
3838
needing to make individual calls to each resource provider. For a list of supported resource types,
39-
look for a **Yes** in the [Resources for complete mode deployments](../../azure-resource-manager/complete-mode-deletion.md)
40-
table. An alternative way to see supported resource types is through the [Azure Resource Graph Explorer Schema browser](./first-query-portal.md#schema-browser).
39+
look for a **Yes** in the
40+
[Resources for complete mode deployments](../../azure-resource-manager/complete-mode-deletion.md)
41+
table. Additional resource types are found in the related
42+
[Resource Graph tables](./concepts/query-language.md#resource-graph-tables). An alternative way to
43+
see supported resource types is through the
44+
[Azure Resource Graph Explorer Schema browser](./first-query-portal.md#schema-browser).
4145

4246
With Azure Resource Graph, you can:
4347

@@ -53,6 +57,13 @@ Resource Graph then updates its database. Resource Graph also does a regular _fu
5357
ensures that Resource Graph data is current if there are missed notifications or when a resource is
5458
updated outside of Resource Manager.
5559

60+
> [!NOTE]
61+
> Resource Graph uses a `GET` to the latest non-preview API of each resource provider to gather
62+
> properties and values. As a result, the property expected may not be available. In some cases, the
63+
> API version used has been overridden to provide more current or widely used properties in the
64+
> results. See the [Show API version for each resource type](./samples/advanced.md#apiversion)
65+
> sample for a complete list in your environment.
66+
5667
## The query language
5768

5869
Now that you have a better understanding of what Azure Resource Graph is, let's dive into how to

0 commit comments

Comments
 (0)