Skip to content

Commit 549ece0

Browse files
committed
Update azure-monitor-data-explorer-proxy.md
1 parent 126c57e commit 549ece0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-monitor/logs/azure-monitor-data-explorer-proxy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ union AzureActivity, arg("").Resources
146146
```kusto
147147
let CL1 = arg("").Resources ;
148148
union AzureActivity, CL1 | take 10
149+
```
149150

150-
```sql
151151

152152
When you use the [`join` operator](/azure/data-explorer/kusto/query/joinoperator) instead of union, you need to use a [`hint`](/azure/data-explorer/kusto/query/joinoperator#join-hints) to combine the data in Azure Resource Graph with data in the Log Analytics workspace. Use `Hint.remote={Direction of the Log Analytics Workspace}`. For example:
153153

154-
kusto
154+
```kusto
155155
Perf | where ObjectName == "Memory" and (CounterName == "Available MBytes Memory")
156156
| extend _ResourceId = replace_string(replace_string(replace_string(_ResourceId, 'microsoft.compute', 'Microsoft.Compute'), 'virtualmachines','virtualMachines'),"resourcegroups","resourceGroups")
157157
| join hint.remote=left (arg("").Resources | where type =~ 'Microsoft.Compute/virtualMachines' | project _ResourceId=id, tags) on _ResourceId | project-away _ResourceId1 | where tostring(tags.env) == "prod"

0 commit comments

Comments
 (0)