Need guidance on App Service Plan

KK1969 316 Reputation points
2022-10-25T10:08:36.997+00:00

Scenario: Single application having multiple APIs (5), 1 WebApp and 3 Azure Functions.

Request: Looking for help in recommendation / best practices

  1. Is it recommended to have multiple azure app services (WebApp or API service or Functions) in a single Azure App Service Plan?
  2. Is it recommended to have different Azure App Service Plans for each type of azure app service?
  3. what is the basis to consider to group the resources into each Azure App Service Plan?

Please suggest.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,216 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,192 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,021 questions
0 comments No comments
{count} votes

Accepted answer
  1. brtrach-MSFT 16,686 Reputation points Microsoft Employee
    2022-10-25T18:01:29.647+00:00

    @KK1969 Thank you for your interest in Azure App Services. We understand you have some questions on how to design your app service architecture.

    1. For the basic and higher tiers on app services, you can technically run unlimited apps. This of course has a limit as there is still a finite amount of CPU and memory available. Each app also has supporting services that need to run on the instance. With that being said, I have been working with App Service customers for 7 years and something like an S1 tier app might start having resource limitations around 10 apps. (Please note that there are a lot of variables that come into play regarding apps per instance. As a result, Microsoft does not offer a formal recommendation. Your experiences will be unique to others. The good news is scaling up/down and in/out is easily done within a matter of minutes so you can fine tune your resources as you get a better feel.) At that point, you'd either need to scale out (high rate of traffic) or scale up (demanding apps that are consuming CPU/memory).
    2. No, an app service plan can be used run either web and/or function apps. This is not an issue.
    3. Grouping services by app service plan would probably be best done by the number of resources they need. If you have an app that sees traffic peaks for a few hours each day, you might want to setup an auto scale out/in rule. If your other apps do not see much traffic, these might be better off on their own app service plan and that way you do not have to worry about ensuring they can run across multiple instances.

    Please let us know if you have further questions or concerns.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. rafalzak 3,231 Reputation points
    2022-10-25T17:55:33.58+00:00

    Hi @KK1969 ,

    Welcome on Microsoft Q&A.

    There is no simple answer for your questions.
    Azure App Service plan allows you to setup all these apps into one app service plan as long as the plan has enough resources to handle the load. However, keep in mind that apps in the same App Service plan all share the same compute resources.
    Whatever apps you put into this App Service plan run on these compute resources as defined by your App Service plan. Each App Service plan defines:

    • Operating System (Windows, Linux)
    • Region (West US, East US, etc.)
    • Number of VM instances
    • Size of VM instances (Small, Medium, Large)
    • Pricing tier (Free, Shared, Basic, Standard, Premium, PremiumV2, PremiumV3, Isolated, IsolatedV2)

    Also apps are scalled with the app service plan.
    From another point of view if you put apps in the same app service plan you can save some cost.

    In conclusion it depends on your stack, workflow and app architecture.

    Some additional infos:

    https://learn.microsoft.com/en-us/azure/app-service/overview-hosting-plans

    Please upvote or accept as answer if it helped.

    0 comments No comments

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.