Azure Function Container App not Scaling down

Keith Doran 0 Reputation points
2025-01-31T10:17:16.5033333+00:00

Hi all,

I am having a problem with one of my Azure Container App functions.

The function is subscribed to Service Bus Topics.

My problem is that the Function is not scaling to Zero despite not having any messages in the topics.

Any suggestions on what could be the issue?

Keith.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,397 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
521 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Deepanshu katara 13,285 Reputation points MVP
    2025-01-31T11:26:15.72+00:00

    Hello Keith, Welcome to MS Q&A

    Azure Container Apps can be scale to zero even when there are no messages in Service Bus Topics due to the configuration of the scaling rules.

    In the context of using KEDA (Kubernetes-based Event Driven Autoscaling), ensure that the scaling rules are correctly defined, including the minReplicas setting. If this value is set to a number greater than zero, the application will maintain that many instances regardless of the message load.

    Please check this for more details https://learn.microsoft.com/en-us/azure/container-apps/scale-app?pivots=azure-cli

    Please let me know if any questions

    Kindly accept answer if it helps

    Thanks
    Deepanshu

    0 comments No comments

  2. Keith Doran 0 Reputation points
    2025-01-31T12:00:33.6533333+00:00

    Hi Deepanshu,

    Thanks for your reply .....

    The minimum number of replicas is set to Zero (max set to 10).

    Regards,

    Keith


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.