Microsoft Sentinel
Cloud and workloads

Transition Custom Detections Automatic

In brief

The page now states that migrated rules automatically convert affected JSON columns when they run. Queries copied into advanced hunting still require `todynamic()` before accessing nested JSON values. Documentation for two unavailable `ExtendedProperties` fields was also removed.

What Defender admins need to know

No action is required. Administrators copying migrated-rule queries into advanced hunting should add the documented JSON parsing step.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Choose the migration scope that matches the rules you want to evaluate.

Migrate a single rule

Some JSON columns, includingSelect one eligible analytics rule from the recommendation.

Don't complete migration until detection results and downstream automation meet your requirements. Revalidate any edits made during evaluation.

Note

Migrated rules handle JSON-column conversions automatically when they run. If you copy a rule's query into advanced hunting, parse JSON-string columns such as DeviceEvents.AdditionalFields and DeviceNetworkInfo.ConnectedNetworks, are dynamic in Log Analytics but JSON-formatted strings in advanced hunting. Parse the column with todynamic() before accessing a property or array element,nested values, for example, todynamic(AdditionalFields).Property or todynamic(ConnectedNetworks)[0]. Use tostring() when comparing extracted values with text. Migration applies this conversion automatically for scheduled analytics rules. For streaming (NRT) rules, direct nested access to affected columns is an eligibility blocker: update the source analytics-rule query, then reassess eligibility. Apply the same parsing when manually running the original query in advanced hunting. Validate changes against representative data in both environments; other schema differences and migration blockers can still require changes.

The following table lists the affected JSON columns.

Table Affected columns
DeviceNetworkInfo ConnectedNetworks, DefaultGateways, DnsAddresses, IPAddresses
DeviceNetworkEvents AdditionalFields
DeviceProcessEvents AdditionalFields
DeviceInfo AdditionalFields, LoggedOnUsers
DeviceFileEvents AdditionalFields
DeviceLogonEvents AdditionalFields
DeviceEvents AdditionalFields
AlertEvidence AdditionalFields
EmailEvents AdditionalFields

Other columns can also have different schemas or query requirements.

Migrate a single rule

Select one eligible analytics rule from the recommendation.

Don't complete migration until detection results and downstream automation meet your requirements. Revalidate any edits made during evaluation.

Complete migration

Complete migration only for custom detections that have passed evaluation, including any edits made during that period. | ExtendedProperties["Event Grouping"] | Added | Not populated by default | Same value as in the matching analytics rule | Describes how alerts are generated, not how incidents are grouped. | | ExtendedProperties["Search Query Results Overall Count"] | Added | Not populated by default | Same value as in the matching analytics rule | Don't assume a total result count is available for grouped alerts. | | ExtendedProperties["Data Sources"] | Added | Not populated by default | Same value as in the matching analytics rule | | | ExtendedProperties["Query"] | Not yet available | Not populated by default | Not available yet | This field isn't available on alerts from migrated custom detections. | | ExtendedProperties["OriginalQuery"] | Not yet available | Not populated by default | Not available yet | This field isn't available on alerts from migrated custom detections. |

Troubleshoot migration