Does azure function app use 1 instance of app service plan for 1 instance of the function app

VN 1 Reputation point
2021-03-03T22:25:21.913+00:00

I currently have the following setup:

1 Function App using App Service hosting plan
App service Plan has a minimum of 2 instances and a max of 10 instances.

Questions:
During load where we need 2 instances(for eg) of function app does the function app instances get distributed as below:

1st instance of function app running on instance 1 of ASP
2nd instance of function app running on instance 2 of ASP

or will we have both the function app instances(1 & 2) running on instance 1 of ASP based on the resources available(ASP Plan)

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,324 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JayaC-MSFT 5,526 Reputation points
    2021-03-11T10:12:47.24+00:00

    Hello @VN if multiple functions are deployed to the same App Service Plan, each of them one instance of each function app running per instance of an ASP. You may refer to https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-get-started#create-your-first-autoscale-setting

    Please let us know whether this helps. If yes, please "Accept the answer" and "Upvote " so that it would help others in the community.

    0 comments No comments