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
Recently a new preview feature has come into the creation of Azure Sentinel Scheduled rules, whereby entities are now being defined in the alert Properties rather than in the query, whereby the traditional style was to include something in the query such as | extend AccountCustomEntity = AccountName is is now defined as:
The 2021-03-01-preview seems to currently be in heavy dev and does not have a single SecurityInsights.json full spec yet.
We may need a dedicated issue for the eventual 2021-03-01-preview migration if this is not backported. to 2019-01-01-preview, which is what current sentinel implementation is using.
New or Affected Resource(s)
azurerm_sentinel_alert_rule_scheduled
azurerm_sentinel_alert_rule_template_data_source (needs upgrade as a result for new property)
Potential Terraform Configuration
resource"azurerm_sentinel_alert_rule_scheduled""example" {
name="example"log_analytics_workspace_id=azurerm_log_analytics_workspace.example.iddisplay_name="example"severity="High"query=<<QUERYAzureActivity | where OperationName == "Create or Update Virtual Machine" or OperationName =="Create Deployment" | where ActivityStatus == "Succeeded" | make-series dcount(ResourceId) default=0 on EventSubmissionTimestamp in range(ago(7d), now(), 1d) by CallerQUERYentity_mapping {
entity_type="AzureResource"//Create a mapping for a resource idfield_mappings {
identifier="ResourceId"//Static optionscolumn_name="ResourceId"//This is the field from within the query
}
}
entity_mapping {
entity_type="Account"//Create a mapping for an Accountfield_mappings {
identifier="UPNSuffix"//Static optionscolumn_name="Caller"//This is the field from within the query
}
field_mappings {
identifier="SID"//Static optionscolumn_name="userSID"//This is the field from within the query (Not applicable in AzureActivity but just an example)
}
}
}
Pending coming down into Go SDK, Will test a bump to Scheduled rules to this new API Version which will enable entityMappings, customDetails. Also think some of the enums / terms in grouping changed.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Description
I'm putting an issue here as a Todo and currently as blocked. See Azure/azure-rest-api-specs#14078 as this has not yet been implemeneted within swagger.
https://github.com/Azure/azure-rest-api-specs/tree/master/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-03-01-preview
Recently a new preview feature has come into the creation of Azure Sentinel Scheduled rules, whereby entities are now being defined in the alert Properties rather than in the query, whereby the traditional style was to include something in the query such as | extend AccountCustomEntity = AccountName is is now defined as:
in properties
The 2021-03-01-preview seems to currently be in heavy dev and does not have a single SecurityInsights.json full spec yet.
We may need a dedicated issue for the eventual 2021-03-01-preview migration if this is not backported. to 2019-01-01-preview, which is what current sentinel implementation is using.
New or Affected Resource(s)
Potential Terraform Configuration
References
Azure/azure-rest-api-specs#14078
https://github.com/Azure/azure-rest-api-specs/tree/master/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-03-01-preview
The text was updated successfully, but these errors were encountered: