Based on your architecture—OAuth Partner (AWS) → Event Grid → Event Hub—and the issue where data is visible in Event Grid but not flowing into Event Hub, here are the most likely causes and troubleshooting steps:
✅ 1. Permissions and Role Assignments
Even though you have Contributor and Reader roles, these might not be sufficient for event delivery to Event Hub.
- Event Grid Data Sender role is required to send events to Event Grid topics [1].
- For Event Hub, ensure the destination has appropriate Azure RBAC roles or Shared Access Signatures (SAS) configured [2]. Microsoft recommends using Microsoft Entra ID (formerly Azure AD) for secure access.
🔍 2. Partner Events Configuration
If you're using Partner Events in Event Grid (e.g., Auth0, AWS), you must:
- Authorize the partner to create a partner topic in your Azure subscription.
- Activate the partner topic and create an event subscription to route events to Event Hub [3].
- Ensure the Event Grid resource provider is registered in your subscription.
🛠️ 3. Event Subscription and Delivery Failures
Check for delivery failures in Event Grid:
- Use diagnostic logs and metrics to identify publish or delivery issues [4].
- Common errors include:
- 403 Forbidden: Often due to missing permissions.
- Socket errors: Network communication issues between Event Grid and Event Hub[5].
- Internal errors: May indicate transient issues or misconfigured endpoints.
- Socket errors: Network communication issues between Event Grid and Event Hub[5].
- 403 Forbidden: Often due to missing permissions.
Enable distributed tracing to track events end-to-end and correlate failures[4].
🧪 4. Connectivity and Network Configuration
- Ensure Event Hub endpoint is reachable from Event Grid.
- Check firewall rules, service tags, and private endpoints if used.
- Validate that port 443 is open for HTTPS communication.
✅ Recommended Actions
- Assign the EventGrid Data Sender role to the identity publishing events.
- Verify Event Hub access via Microsoft Entra ID or SAS.
- Enable diagnostics on both Event Grid and Event Hub.
- Check Event Grid metrics for delivery failures and retry attempts.
- Confirm partner topic activation and event subscription setup.
- Open a support ticket if the steps above do not work.
References
[1] Azure Event Grid security and authentication - Azure Event Grid
[2] Authorize access to Azure Event Hubs - Azure Event Hubs
[3] Partner Events overview for customers - Azure Event Grid
[4] Troubleshoot Event Grid issues - Azure Event Grid | Microsoft Learn
[5] Azure Event Grid to Azure Event Hub events delivery failed