Skip to content

Commit 9fa825b

Browse files
committed
arg not supported for analytic rules
1 parent 2948705 commit 9fa825b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
> Analytic rules don't support the `arg()` operator.
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)