I have been successfully using Azure Event Hub to receive change notifications from MS Graph Api, as per instructions here https://docs.microsoft.com/en-us/graph/change-notifications-delivery
I have been tasked to to use RBAC instead of SAS to allow Graph to send events to the Event hub. To do so I have:
- assigned the "Azure Event Hubs Data Sender" role to the "Microsoft Graph Change Tracking" principal,
- updated the notification URL of my graph subscription requests to remove the access key. The URL is still stored in an azure keyvault (as per docs), in the form Endpoint=sb://<my namespace>.servicebus.windows.net/;EntityPath=<my ehub name>
Subscription creation requests are rejected by graph with:
Message: Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://<my event hub namespace>.servicebus.windows.net/<my event hub name>'. TrackingId:2d3e314a1fa24297a895342e9267e7fb_G19, SystemTracker:gateway5, Timestamp:2021-02-18T17:02:08
Any help would be greatly appreciated.