Hi @Sid
Greetings & Welcome to the Microsoft Q&A forum! Thank you for sharing your query.
To reset the offsets for a consumer group in Azure Event Hubs when using the Kafka endpoint, you typically need to manage the offsets manually. While you can delete a consumer group, the offsets may remain persisted, and you cannot reuse the same name if the group still exists.
To effectively reset the offset, you can use the Kafka consumer group APIs to manipulate the offsets directly. This allows you to set the offsets to a specific point in the event stream, enabling you to re-read the events from that position. However, keep in mind that offsets are stored in the Event Hubs service, and you will need to ensure that your consumer group is configured correctly to manage these offsets.
If you want to start consuming from the beginning of the stream again, you can also specify the starting offset as the earliest available offset when you create your consumer or when you reconnect.
Reference: Frequently asked questions - Event Hubs for Apache Kafka
Features and terminology in Azure Event Hubs
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.