Share via

Streaming API Broken in XDR

Ron Cahlon 0 Reputation points
2026-04-30T22:01:40.4466667+00:00

There is a functional bug in the Microsoft Defender XDR (security.microsoft.com) portal under the Streaming API configuration. Even when the destination is set to "Forward events to Event Hub," the UI’s field-level validator incorrectly enforces the resource ID format for a Log Analytics Workspace (Microsoft.OperationalInsights) instead of an Event Hub Namespace (Microsoft.EventHub)

Steps to Reproduce

Navigate to security.microsoft.comSettingsMicrosoft Defender XDRStreaming API.

Click Add to create a new stream.

Fill in a "Name" and select the checkbox "Forward events to Event Hub."

Paste a valid Azure Event Hub Namespace Resource ID into the "Event-Hub Resource ID" field.

Example used: /subscriptions/{sub-id}/resourceGroups/{rg}/providers/Microsoft.EventHub/namespaces/{name}

Observe Error: The UI prevents saving and displays a red error message:

"Invalid resource ID format. Expected: /subscriptions/{Id}/resourceGroups/{resourceGroup}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}"

Expected Behavior

When the "Forward events to Event Hub" option is selected, the validator should accept a Resource ID containing the Microsoft.EventHub/namespaces provider.

Actual Behavior

The validator remains "stuck" on the Log Analytics schema (Microsoft.OperationalInsights), making it impossible to save an Event Hub streaming configuration via the UI.

Microsoft Security | Microsoft Defender | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-04-30T22:02:02.6633333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The Streaming API configuration in Microsoft Defender XDR is expected to support forwarding Advanced Hunting events to either Azure Event Hubs or an Azure storage account. The documented configuration flow for Event Hubs requires providing an Event Hubs namespace resource ID that uses the Microsoft.EventHub provider.

    From the documented behavior:

    • For Microsoft Defender XDR Streaming API to Event Hubs, the configuration requires:
      • Creating an Event Hubs namespace and event hub.
      • Supplying the Event Hubs namespace resource ID when configuring streaming.
      • The resource ID format is explicitly based on the Event Hubs provider (Microsoft.EventHub).
    • The same pattern is described for Defender for Endpoint raw data export, where the Event Hubs resource ID is taken from the Event Hubs namespace properties in Azure and used directly in the Defender portal configuration.

    Given this, the UI-side validation error that enforces a Microsoft.OperationalInsights/workspaces/{workspaceName} pattern when the option Forward events to Azure Event Hub is selected is inconsistent with the documented requirement to use an Event Hubs namespace resource ID (Microsoft.EventHub/namespaces/{name}). This behavior matches a portal-side bug rather than intended configuration logic.

    Workarounds and next steps based on the documentation:

    1. Confirm prerequisites and correct Event Hubs resource ID
      • Ensure an Event Hubs namespace and event hub are created as described in the Event Hubs setup guidance.
      • Copy the Resource ID from the Event Hubs namespace Properties blade in the Azure portal and use that value; this is the documented and supported format.
    2. Use the documented Streaming API / raw data export entry points
      • For Defender XDR streaming, use the Streaming API configuration described in the “Configure Microsoft Defender XDR to stream Advanced Hunting events to your Azure event hub” and “Streaming API” documentation.
      • For Defender for Endpoint, use the Data export settings page and follow the documented steps to provide the Event Hubs resource ID.
    3. Escalate as a service issue
      • Because the documentation clearly specifies Microsoft.EventHub resource IDs for Event Hubs streaming, but the portal is enforcing a Microsoft.OperationalInsights pattern, this is a service-side defect.
      • The appropriate action is to open a support case with Microsoft (for Microsoft Defender XDR / Security) and provide:
        • The exact portal path (Streaming API configuration page).
        • The Event Hubs namespace resource ID being used.
        • A screenshot or copy of the validation error message.
      • This allows the product team to correct the validator logic so that it accepts Microsoft.EventHub/namespaces/{name} when Forward events to Event Hub is selected.

    Until the validator is fixed, configuring Event Hub–based streaming via the documented UI path may not be possible in affected tenants, and support engagement is required to resolve or work around the issue.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.