Pricing for deploying multiple Azure Functions to the same App Service Plan (Elastic Premium Plan - EP1)

Viewed 1067

I'm planning to promote a set of Azure Functions (~15) to production. Today we're using for development purposes the Consumption plan but the cold start nature of this plan might impact the overall experience.

I've been searching for a best cost-benefit plan for deploying the application and found that the Elastic Plan EP1 would fit our needs (e.g. no cold start, rapid scale out, "... share an App Service Plan accross multiple funcion apps ...", etc).

The problem is that I didn't find precisely how this Plan would be charged...

In the scenario exposed, would I be charged 388.67 BRL for each of the approx. 15 functions deployed to the Plan? Or would the charge be for the Plan itself and the Functions would share the resources of the Plan?

And also, all the Function Apps on the Plan would be pre-warmed?

enter image description here


EDIT:

Even not finding the answers clearly on the official documentation, I created the EP1 Plan and deployed the Functions.

  1. I found that for a given App Service Plan (e.g. Elastic Plan EP1), I can deploy many Function Apps to it, but they share resources of that Plan, increasing the "app density".
  2. I still don't get the answer for the cold start question: for that Plan, if I deploy the 15 Function Apps to it would them be pre-warmed? I found that I can set "pre-warmed=1" in every Function App, but still experiencing cold starts.
1 Answers

No. If you dont set the pre-warmed instance, only one instance will be pre-warmed by default. You need to go the Platform Features tab to change the number of pre-warmed instances.

enter image description here

If you only care about the cost of the premium plan, you can use this calculator to get the cost:

https://azure.microsoft.com/en-us/pricing/calculator/?service=functions

And these is the documents about the premium plan:

https://docs.microsoft.com/en-us/azure/azure-functions/functions-premium-plan#features

https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#premium-plan

Let me know whether this can answered your question.:)

Related