Consumption Plan - Azure Function Service Bus Trigger does NOT spin up instance when new messages are received after period of inactivity

Garrett 1 Reputation point
2021-10-11T22:00:29.003+00:00

I have a function app that works fine locally, and when it runs in Azure it runs without error. The problem is when no messages are added to the queue for a stretch, the Job Host shuts down (I've confirmed this in the logs) and doesn't start back up when new messages are added to the queue. Only navigating to the app in the portal causes it to finally start up.

This isn't a cold start problem, I've watched messages pile up on the queue for over an hour.

I've confirmed that my functions triggers are synced, as that seemed like it used to be the main cause of this issue.

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
549 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,309 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vitalii Lebedev 1 Reputation point
    2022-01-17T13:20:24.13+00:00

    Hey! Let me guess, you are using Managed Identity between Azure Function and Service bus? In this case, you have to get rid of Managed Identity and it will work.