Function app is triggered by old events after deployment

Tomoe 0 Reputation points
2024-08-14T11:05:43.5266667+00:00

Hello,

we have EventhubTrigger function.

[EventHubTrigger("%EventHubName%", Connection = "EventHubConnectionString", ConsumerGroup = "consumer", IsBatched = true)]

After re-deployment of the function, we noticed that the function were picking up all old events.

We looked at a file in azure-webjobs-eventhub/evhns-xxxx.servicebus.windows.net/consumer.

Offset is "no offset" and it is not updating.

We have multiple eventhubs and all offset values are "no offset".User's image

==Function app detail==

.NET Version: .NET 8 Isolated

Operationg system: Windows

Runtime version 4.34.2.22820

App Service Plan: S1

Microsoft.Azure.Functions.Worker.Extensions.EventHubs:6.3.1

host.json has no custom set up. All default values.

bicep is used for deployment. On deployment of function, consumergroup is also depoloyed.

I hope you can tell me what is wrong.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,890 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.