Microsoft Defender XDR
Developer and API

Streaming Api Storage

In brief

The documentation now refers specifically to user accounts and service principals for Contributor role assignments, clarifies the trusted Microsoft services setting, and adds guidance for interpreting blob event records and querying their schema.

What Defender admins need to know

Administrators configuring Streaming API storage have clearer identity, storage, and schema instructions.

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.

Add contributor permissions

After the storage account is created, assign the Contributor role to the user account that will configure the Streaming API settings.

  1. Go to Storage Account > Access control (IAM), and then select Add.

  2. Verify that the user account or service principal you assigned the Contributor role to is listed under Role assignments.

Enable raw data streaming

  1. Go to the Microsoft Defender portal and sign in using an account with at least Security Administrator permissions.

Event schema in the storage account

Exported events are stored in blob containers, and each row follows a defined JSON schema.

  • A blob container is created for each event type:

    :::image type="content" source="media/streaming-api-storage/storage-account-event-schema.png" alt-text="Example of a blob container" lightbox="media/streaming-api-storage/storage-account-event-schema.png":::

  • The schemafollowing JSON sample shows the structure of each row in a blob isblob, so you can identify the following JSON:fields and data types in a streamed event record:

    {
    
  • Each row contains the event name, the time Defender for Endpoint received the event, the tenant it belongs (you'll only get events from your tenant), and the event in JSON format in a property called "properties".

  • For more information about the schema of Microsoft Defender XDR events, see Advanced Hunting overview.

Data type mappings

  1. Go to Hunting > Advanced hunting. To go directly to the Advanced hunting page, use the Advanced hunting page.

  2. On the Query tab, run the following Kusto query template to retrievelist the schemacolumn names and data types for a specific event type.table. This information helps you map streamed event properties to their correct schema. Replace {EventType} with the Advanced Hunting table name you want to inspect (for example, DeviceInfo):

    {EventType}