Skip to content

Commit d5e64e4

Browse files
committed
removed kql examples. added copilot
1 parent c1a71e6 commit d5e64e4

File tree

3 files changed

+13
-167
lines changed

3 files changed

+13
-167
lines changed

articles/sentinel/datalake/kql-samples.md

Lines changed: 0 additions & 165 deletions
This file was deleted.
317 KB
Loading

articles/sentinel/datalake/notebooks.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,21 @@ When the session is started, the code in the notebook runs and the results are d
129129

130130
For sample notebooks that demonstrate how to interact with the Microsoft Sentinel data lake, see [Sample notebooks for Microsoft Sentinel data lake](./notebook-examples.md).
131131

132+
## Use GitHub Copilot in notebooks
132133

133-
## Microsoft Sentinel Provider class
134+
Use GitHub Copilot to help you write code in notebooks. GitHub Copilot provides code suggestions and autocompletion based on the context of your code. To use GitHub Copilot, ensure that you have the [GitHub Copilot extension](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) installed in Visual Studio Code.
134135

135-
To connect to the Microsoft Sentinel data lake, use the `SentinelLakeProvider` class.
136+
Copy code from the [Sample notebooks for Microsoft Sentinel data lake](./notebook-examples.md) and save it in your notebooks folder to provide context for GitHub Copilot. GitHub Copilot will then be able to suggest code completions based on the context of your notebook.
137+
138+
The following example shows GitHub Copilot generating a code review.
139+
140+
:::image type="content" source="./media/notebooks/copilot.png" lightbox="./media/notebooks/copilot.png" alt-text="A screenshot showing GitHub Copilot generating a code review.":::
141+
142+
143+
144+
## Microsoft Sentinel Provider class
145+
146+
To connect to the Microsoft Sentinel data lake, use the `SentinelLakeProvider` class.
136147
This class is part of the `access_module.data_loader` module and provides methods to interact with the data lake. To use this class, import it and create an instance of the class using a `spark` session.
137148

138149
```python

0 commit comments

Comments
 (0)