Skip to content

Commit 862c45c

Browse files
authored
Merge pull request #4632 from mberdugo/ArgAnalytics
Arg analytics
2 parents 39d06f0 + f1a11d6 commit 862c45c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

defender-xdr/advanced-hunting-defender-use-custom-rules.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ms.custom:
2323
appliesto:
2424
- Microsoft Defender XDR
2525
- Microsoft Sentinel in the Microsoft Defender portal
26-
ms.date: 03/28/2025
26+
ms.date: 07/28/2025
2727
---
2828

2929
# Use Microsoft Sentinel functions, saved queries, and custom rules
@@ -61,14 +61,17 @@ For example, to get the first 10 rows of data from the `StormEvents` table store
6161
> [!NOTE]
6262
> The `adx()` operator isn't supported for custom detections.
6363
64-
6564
### Use arg() operator for Azure Resource Graph queries
66-
The `arg()` operator can be used to query across deployed Azure resources like subscriptions, virtual machines, CPU, storage, and the like.
65+
66+
The `arg()` operator can be used to query across deployed Azure resources like subscriptions, virtual machines, CPU, storage, and the like.
6767

6868
This feature was previously only available in the Logs feature in Microsoft Sentinel. In the Microsoft Defender portal, the `arg()` operator works to combine Azure Resource Graph (arg) queries with Microsoft Sentinel tables (that is, Defender XDR tables aren't supported). This allows users to make the cross-service query in advanced hunting without manually opening a Microsoft Sentinel window.
6969

7070
For more information, see [Query data in Azure Resource Graph by using arg()](/azure/azure-monitor/logs/azure-monitor-data-explorer-proxy#query-data-in-azure-resource-graph-by-using-arg-preview).
7171

72+
>[!NOTE]
73+
> The `arg()` operator isn't supported for analytics rules.
74+
7275
In the query editor, enter *arg("").* followed by the Azure Resource Graph table name.
7376

7477
For example:
@@ -86,7 +89,6 @@ BehaviorAnalytics
8689
) on $left.name == $right.SourceDevice
8790
```
8891

89-
9092
## Use saved queries
9193

9294
To use a saved query from Microsoft Sentinel, go to the **Queries** tab and scroll until you find the query that you want. Double-click the query name to load the query in the query editor. For more options, select the vertical ellipses ( ![kebab icon](/defender/media/ah-kebab.png) ) to the right of the query. From here, you can perform the following actions:

0 commit comments

Comments
 (0)