Skip to content

Commit 94c7bac

Browse files
committed
Note limit for Include parameter
1 parent 8d2e5e5 commit 94c7bac

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

articles/governance/resource-graph/samples/advanced.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Advanced query samples
33
description: Use Azure Resource Graph to run some advanced queries, including working with columns, listing tags used, and matching resources with regular expressions.
4-
ms.date: 12/05/2019
4+
ms.date: 03/20/2020
55
ms.topic: sample
66
---
77
# Advanced Resource Graph query samples
@@ -519,12 +519,18 @@ az graph query -q "limit 1" --include displayNames
519519
Search-AzGraph -Query "limit 1" -Include DisplayNames
520520
```
521521

522+
An alternative to getting the subscription name is to use the `join` operator and connect to the
523+
**ResourceContainers** table and the `Microsoft.Resources/subscriptions` type. `join` works in Azure
524+
CLI, Azure PowerShell, portal, and all supported SDK. For an example, see
525+
[Sample - Key vault with subscription name](#join).
526+
522527
> [!NOTE]
523528
> If the query doesn't use **project** to specify the returned properties,
524529
> **subscriptionDisplayName** and **tenantDisplayName** are automatically included in the results.
525530
> If the query does use **project**, each of the _DisplayName_ fields must be explicitly included in
526531
> the **project** or they won't be returned in the results, even when the **Include** parameter is
527-
> used.
532+
> used. The **Include** parameter doesn't work with
533+
> [tables](../concepts/query-language.md#resource-graph-tables).
528534
529535
## Next steps
530536

0 commit comments

Comments
 (0)