Skip to content

Commit e4e28a1

Browse files
authored
Merge pull request #277792 from davidsmatlak/ds-move-arg-monitor
Moves Azure Monitor include file for ARG sample
2 parents e5da93d + 7c349d7 commit e4e28a1

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

includes/resource-graph/samples/bycat/azure-monitor.md renamed to articles/azure-monitor/includes/azure-monitor.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
author: davidsmatlak
3-
ms.service: resource-graph
2+
ms.service: azure-monitor
43
ms.topic: include
54
ms.date: 08/04/2022
6-
ms.author: davidsmatlak
7-
ms.custom: generated
5+
author: bwren
6+
ms.author: bwren
87
---
98

109
### View recent Azure Monitor alerts
@@ -144,11 +143,11 @@ Returns the connected cluster ID of each Azure Arc-enabled Kubernetes cluster th
144143
Resources
145144
| where type =~ 'Microsoft.Kubernetes/connectedClusters' | extend connectedClusterId = tolower(id) | project connectedClusterId
146145
| join kind = leftouter
147-
(KubernetesConfigurationResources
148-
| where type == 'microsoft.kubernetesconfiguration/extensions'
149-
| where properties.ExtensionType == 'microsoft.azuremonitor.containers'
150-
| parse tolower(id) with connectedClusterId '/providers/microsoft.kubernetesconfiguration/extensions' *
151-
| project connectedClusterId
146+
(KubernetesConfigurationResources
147+
| where type == 'microsoft.kubernetesconfiguration/extensions'
148+
| where properties.ExtensionType == 'microsoft.azuremonitor.containers'
149+
| parse tolower(id) with connectedClusterId '/providers/microsoft.kubernetesconfiguration/extensions' *
150+
| project connectedClusterId
152151
) on connectedClusterId
153152
| where connectedClusterId1 == ''
154153
| project connectedClusterId

articles/azure-monitor/resource-graph-samples.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,13 @@ ms.custom: subject-resourcegraph-sample
1010
# Azure Resource Graph sample queries for Azure Monitor
1111

1212
This page is a collection of [Azure Resource Graph](../governance/resource-graph/overview.md) sample queries
13-
for Azure Monitor. For a complete list of Azure Resource Graph samples, see:
14-
- [Resource Graph samples by category](../governance/resource-graph/samples/samples-by-category.md)
15-
- [Resource Graph samples by table](../governance/resource-graph/samples/samples-by-table.md)
13+
for Azure Monitor.
1614

1715
## Azure Monitor
1816

19-
[!INCLUDE [azure-resource-graph-samples-cat-monitor](../../includes/resource-graph/samples/bycat/azure-monitor.md)]
17+
[!INCLUDE [azure-resource-graph-samples-cat-monitor](./includes/azure-monitor.md)]
2018

2119
## Next steps
2220

2321
- Learn more about the [query language](../governance/resource-graph/concepts/query-language.md).
2422
- Learn more about how to [explore resources](../governance/resource-graph/concepts/explore-resources.md).
25-
- See samples of [starter language queries](../governance/resource-graph/samples/starter.md).
26-
- See samples of [advanced language queries](../governance/resource-graph/samples/advanced.md).

0 commit comments

Comments
 (0)