Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event Hubs] Update URI used for consumer auth to include consumer group #35626

Merged
merged 5 commits into from
Jun 6, 2024

Conversation

swathipil
Copy link
Member

@swathipil swathipil commented May 14, 2024

fixes #35337

Currently, the URI used for authentication on the receiver only includes the EH namespace and hub. We should include the consumer group.

When consumer group is not included, we get an error when we try receiving with the Event Hubs Data Receiver role assigned to either the User/Service Principal at the consumer group level. To test assigning the role at the consumer group level, follow [these instructions]. (If testing on the Portal, consumergroups/<groupname> should be added to the end of the url after the hub name.)

Tested locally for this scenario, which passes. Not adding a test, as it would require us to add the role using the azure-mgmt-authorization package, which we would have to add to the dev_requirements.txt, or define a separate namespace in the ARM template to assign the Event Hubs Data Owner role at the consumer group level only. However, this is resulting in an error, which says that the role needs to be assigned to the resource group.

@swathipil swathipil marked this pull request as ready for review May 14, 2024 22:34
@swathipil
Copy link
Member Author

/azp run python - eventhub - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@kashifkhan
Copy link
Member

/azp run python - eventhub - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@swathipil
Copy link
Member Author

/azp run python - eventhub - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@swathipil swathipil merged commit e6f98bc into Azure:main Jun 6, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Eventhub Entra ID authentication fails with RBAC permissions granted on consumer group
4 participants