You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Built-in functions** – Prebuilt functions included with Microsoft Defender XDR advanced hunting. These functions are available in all advanced hunting instances and can't be modified.
46
46
-**Shared functions** – Custom functions that users create. All users in a specific tenant can access these functions. Users can modify and control these functions.
@@ -51,7 +51,7 @@ There are three different types of functions in advanced hunting:
51
51
To create a function from the current query in the editor:
52
52
53
53
1. Select **Save** and then **Save as function**.
54
-

54
+

55
55
56
56
1. In the **Save as function** flyout panel, provide the following information:
57
57
@@ -60,7 +60,7 @@ To create a function from the current query in the editor:
60
60
-**Description** - A description that helps other users understand the purpose of the function and how it works.
61
61
-**Parameters** - Add a parameter for each variable in the function that requires a value when it's used. For more information, see [Add parameters to your custom function](#add-parameters-to-your-custom-function).
62
62
63
-

63
+

64
64
65
65
1. Select **Save**.
66
66
@@ -84,7 +84,7 @@ To create tabular parameters for your custom function:
84
84
1. Enter a **Name** and **Default value** for the table.
85
85
1. Map each column that your query references to the table. Select **Add column**, then enter the column's properties.
86
86
87
-

87
+

88
88
89
89
> [!NOTE]
90
90
>- You can save a function with more than one table.
@@ -98,21 +98,21 @@ Add a function to the current query by double-clicking on its name or selecting
98
98
99
99
If a query requires arguments, provide them using the following syntax: *function_name(parameter 1, parameter 2, ...)*
100
100
101
-

101
+

102
102
103
103
> [!NOTE]
104
104
> You can't use functions inside another function.
105
105
106
106
## Work with function codes
107
107
You can view the code of a function to understand how it works or to modify its code. Select the three dots to the right of the function and select **Load function code** to open a new tab with the function code.
108
108
109
-

109
+

110
110
111
111
## Edit a custom function
112
112
113
113
Edit the properties of a function by selecting the three dots to the right of the function and selecting **Edit details**. Make any modifications that you want to the properties and parameters of the function, then select **Save**.
114
114
115
-

115
+

116
116
117
117
If the function code is already loaded in the editor, you can also select **Save** to apply any changes to the code or properties of the function.
118
118
@@ -125,7 +125,7 @@ You can delete functions from **My functions** and functions you created in **Sh
125
125
126
126
To delete a function, select the three dots to the right of the function and select **Delete**.
127
127
128
-

128
+

0 commit comments