Skip to content
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

Import-AzSentinelAlertRule update to support CustomDetails #185

Open
Gareze opened this issue Jun 28, 2021 · 1 comment
Open

Import-AzSentinelAlertRule update to support CustomDetails #185

Gareze opened this issue Jun 28, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Gareze
Copy link

Gareze commented Jun 28, 2021

Summary of the new feature/enhancement

Microsoft added Custom Details mapping and Event Grouping for each event (Trigger an alert for each event (preview)) for Analytical Rules.
This allows for more flexibility when it comes to data mapping and event grouping.

https://techcommunity.microsoft.com/t5/azure-sentinel/what-s-new-alert-enrichment-custom-details-and-entity-mapping/ba-p/2195409

Details of use

We are using your powershell module for Analytical Rule automation and custom details are part of the new rules we are planning to deploy.
Both are present when exporting the Analytical Rules using Get-AzSentinelAlertRule.
The Event grouping feature is represented as "AlertPerResult" in the export as seen in the example below.
Example output:
{ "queryFrequency": "PT15M", "queryPeriod": "PT15M", "triggerOperator": "GreaterThan", "triggerThreshold": 0, "eventGroupingSettings": { "aggregationKind": "AlertPerResult" }, "severity": "Medium", "query": "Some data query", "suppressionDuration": "PT1H", "suppressionEnabled": false, "customDetails": { "AlertPack": "AlertPack" }, "displayName": "TEST-008-Alert", "enabled": true, "description": "", "tactics": [], "alertRuleTemplateName": null, "createIncident": false, "groupingConfiguration": { "enabled": false, "reopenClosedIncident": false, "lookbackDuration": "PT5H", "entitiesMatchingMethod": "All", "groupByEntities": [] }, "playbookName": "" }

Proposed technical implementation details

API version 2021-03-01-preview seems to enable these options so looks like the function needs to be updated to that version.

It would be great if these two new features could be added to the Import-AzSentinelAlertRule function.
Thank you in advance.

@pkhabazi pkhabazi added the enhancement New feature or request label Aug 2, 2021
@sandeep5234
Copy link

Do we have an approx. ETA on this? We are using azsentinel latest module and custom details are important part that our Analytics queries needs. Please let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants