Is it possible for an Azure Function hosted in a Container App Environment to be "always on"?

Sam Best 20 Reputation points
2025-01-22T12:21:46.39+00:00

I've done the following:

  • Enabled a dedicated workload profile which the app is running on. This has minimum instance count set to 1.
  • Set the minimum replicas to 1 for the Azure Function itself.

Still it seems to spin down to 0 and do a cold start. From my understanding, there is no flex consumption available with this hosting model, so I was hoping the dedicated workload profile would solve my problem.

Is there any way I can configure my Azure Function to always have an always-ready, running instance outside of something like a timer trigger keepalive?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,351 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
511 questions
{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.