-
Notifications
You must be signed in to change notification settings - Fork 107
Description
Is your question related to a specific version? If so, please specify:
Python: 3.12.10
Function Runtime Version: 4.1041.200.25360
What binding does your question apply to, if any? (e.g. Blob Trigger, Event Hub Binding, etc)
Event Hub Binding
Question
I have an Azure Function which is triggered whenever an event is received on the EventHub.
The function has a managed identity (UMI) associated with it which is used to authorize the access on the EventHub.
Event Hubs support Azure role assignment at Consumer Group or Event Hub or Namespace level.
https://learn.microsoft.com/en-us/azure/event-hubs/authorize-access-azure-active-directory#resource-scope
However, if I assign Azure Functions UMI the "Azure Event Hubs Data Receiver" role at the Consumer Group level, then the Azure function fails with error Unauthorized access. 'Listen' claim(s) are required to perform this operation
If I just assign the same UMI access the "Azure Event Hubs Data Receiver" role at the Event Hub level, it works fine.
So, my question is -
- Are role assignments at Consumer Group level supported with Event Hub Triggers and Python?
- If yes, are there some additional arguments needed in the trigger?
- If not, any plans to support them?