-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added KQL Azure Data Explorer (ADX) template file #157
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
Plugins/MSFT_Plugin_Samples/KQL/KQL_Azure_Data_Explorer_ADX_Template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,50 @@ | ||||||
# Author Rick Kotlarz | ||||||
# Updated 2024-12-12 | ||||||
|
||||||
Descriptor: | ||||||
Name: Azure Data Explorer (ADX) template | ||||||
DisplayName: Azure Data Explorer (ADX) plugin | ||||||
Description: This Azure Data Explorer (ADX) plugin .... | ||||||
Icon: https://raw.githubusercontent.com/MicrosoftDocs/architecture-center/refs/heads/main/docs/_images/azbb.svg | ||||||
# Source: https://github.com/MicrosoftDocs/architecture-center/blob/main/docs/_images/azbb.svg | ||||||
|
||||||
SupportedAuthTypes: | ||||||
- None | ||||||
|
||||||
SkillGroups: | ||||||
- Format: KQL | ||||||
Skills: | ||||||
|
||||||
- Name: GetADXlogs | ||||||
DisplayName: GetADXlogs | ||||||
Description: | | ||||||
Gets top n rows of the ADX cluster sorted by TimeGenerated | ||||||
# This area can be multiple lines when using the pipe character after the colon character. | ||||||
# You'll want to include additional information that is relevant for the Orchestreator to understand | ||||||
ExamplePrompts: | ||||||
- Gets the top 10 rows of the 'TableYouWantToQuery' table from the 'Your-Cluster-Name-01' ADX cluster sort by TimeGenerated. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The phrase 'sort by TimeGenerated' should be 'sorted by TimeGenerated'.
Suggested change
Copilot is powered by AI, so mistakes are possible. Review output carefully before use. |
||||||
# - An example prompt that a user might type to invoke this skill | ||||||
# - Another example prompt. | ||||||
# - Make sure you exclude named entities that are meant to change from user input (e.g. IP, username, IoCs, etc.) as these will actually lower skill selection probability. | ||||||
Inputs: | ||||||
- Name: numberOfRows | ||||||
PlaceholderValue: Number of rows you wish to return from the top (e.g. 10) | ||||||
Description: Number of rows to return from the top | ||||||
DefaultValue: 3 | ||||||
Required: true | ||||||
# - Name: variableNameYouWantFromTheUserThatIsReferencedInYourKQL | ||||||
# PlaceholderValue: Description or examples that user will see before filling out this variable. Note this field is displayed to the user. | ||||||
# Description: Description that the orchestrator will use which includes any situations that explain when this input field should or should not be skipped. For example 'this field should be only used if an IP address is in IPv4 format'. Do not use the 'PlaceholderValue' field if you don't have any specific instructions for the orchestrator. Also this field is not displayed to the user. | ||||||
# DefaultValue: defaultValue used if the 'Required' field is set to 'False' | ||||||
# Required: true or false | ||||||
Settings: | ||||||
Target: Kusto | ||||||
Cluster: '{{ClusterURL}}' | ||||||
Database: '{{DatabaseName}}' | ||||||
# Cluster: https://YourClusterName.eastus.kusto.windows.net | ||||||
# Database: ADX-01 | ||||||
Template: |- | ||||||
//KQL comment to help the Orchestrator or users responsible for maintaining the code understand what the skill does | ||||||
TableYouWantToQuery | ||||||
| sort by TimeGenerated desc | ||||||
| take {{numberOfRows}} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description is incomplete. It should provide a complete and clear description of the plugin.
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.