Azure function service bus not triggering

Benjamin Weber 71 Reputation points
2025-06-12T08:27:53.71+00:00

We have an event-driven architecture with azure functions (flex consumption plan) and a service bus.

In several occurrences, we observed our azure function not being triggered by the service bus queue. The message was shown as "active" in the service bus, but nothing happened.

User's image

However, this does not happen on every message. I think only scheduled messages are affected.

It takes days or weeks, but at some point, the message will be processed.

This is terrible for use because we are talking about critical jobs to be executed (e.g., sending "purchase successful" emails to customers.

The current "fix" is to start the azure function on my local machine, then the message gets processed immediately.

I saved a concrete example to show

deliveryCount 0
messageId 443b7965cc5d47ba93200dcc03da4ab8
scheduledEnqueueTimeUtc "2025-06-11T20:46:48.230Z" (Wed, 11 Jun 2025, 10:46:48 pm CEST)
timeToLive 1209600000
sequenceNumber 3227
enqueuedTimeUtc "2025-06-11T20:46:48.292Z" (Wed, 11 Jun 2025, 10:46:48 pm CEST)
expiresAtUtc "2025-06-25T20:46:48.292Z" (Wed, 25 Jun 2025, 10:46:48 pm CEST)


This message should have been executed yesterday evening, but it was not. When I started the azure function locally today, the message was processed immediately.

Please let me know if there is further information required from my side.

The situation is very critical for our startup success; therefore, I sincerely hope to receive help here. Thank you so much!

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


Answer accepted by question author
Praveen Kumar Gudipudi 1,730 Reputation points Moderator
2025-06-16T06:17:57.9+00:00

Hello Benjamin Weber,

After giving the function with the "manage" permission for connection string to process scheduled Active messages, function able to process all messages which are in active message state.

If this answer was helpful, please click "Accept the answer" and mark Yes, as this can help other community members.

User's image

If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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