Since Python on Windows is no longer supported, we have to use Linux platform.
ASP.NET is only supported on Windows platform. So we need at least 2 App Service plan
As stated in the reference, thanks for the pointing this out!
https://learn.microsoft.com/en-us/visualstudio/python/publish-to-app-service-windows?view=vs-2022
With regard to Python on Windows that article states :
"For Windows, you can build your own custom Windows container image and run the image in App Service."
So you can build your custom Windows image and use it for all WebApps within a single App Service Plan.
https://learn.microsoft.com/en-us/azure/app-service/overview
Can run only on Windows: .NET, ASP.NET
Can run only on Linux: Python
Can run on either Windows/Linux: PHP
From Azure documentation:
ASP.NET Core (on Windows or Linux)
ASP.NET (on Windows)
PHP (on Windows or Linux)
Ruby (on Linux)
Node.js (on Windows or Linux)
Java (on Windows or Linux)
Python (on Linux)
HTML
Custom container (Windows or Linux)
ChatGPT gave me a different answer
To determine the minimum number of App Service plans needed for the web apps, you should consider the runtime stack and compatibility. Here are the considerations for each web app:
WebApp1 - .NET 6 (LTS)
This can share an App Service plan with WebApp2 since both are .NET applications.
WebApp2 - ASP.NET V4.8
This can share an App Service plan with WebApp1 since both are .NET applications.
WebApp3 - PHP 8.1
This requires a separate App Service plan since it's a different runtime stack (PHP).
WebApp4 - Python 3.11
This also requires a separate App Service plan since it's a different runtime stack (Python).
So, you need at least two App Service plans: one for WebApp1 and WebApp2 (shared since they both use .NET), and another for WebApp3 and WebApp4 (separate since they use different runtime stacks).
The correct answer is B. 2.
Correct Answer: B
.NET: Windows and Linux ASP
.NET: Windows only
PHP: Windows and Linux
Python: Windows and Linux
Also, you can’t use Windows and Linux Apps in the same App Service Plan, because when you create a new App Service plan you have to choose the OS type. You can't mix Windows and Linux apps in the same App Service plan. So, you need 2 ASPs.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/overview
ChatGPT
An App Service plan defines a set of compute resources for a web app to run. These compute resources are analogous to the server farm in conventional web hosting. One or more apps can be configured to run on the same computing resources (or in the same App Service plan)1.
In your case, you plan to create four Azure Web Apps with different runtime stacks: .NET 6 (LTS), ASP.NET v4.8, PHP 8.1, and Python 3.11. Since each of these web apps uses a different runtime stack, you should create a minimum of four App Service plans, one for each web app2. This will ensure that each web app can run on the appropriate runtime stack.
Chat GRP is wrong. Only OS matters that support technology stack matters, but not stack itself. For example, you can run both python and .NET Core apps on single Linux plan. So answer is 2, because python is supported only on linux and ASP.NET v4.8 - windows only. Other stacks are for either linux or windows
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
athli
Highly Voted 1 year agoTayhull2023
12 months agodjhyfdgjk
5 months, 2 weeks agoBabustest
Highly Voted 10 months, 3 weeks agoAmir1909
Most Recent 5 months, 2 weeks agoExilic
1 year agoLemonGremlin
1 year agoGoldenDisciple2
12 months agoJeyD
1 year agoJackGelder
3 months, 2 weeks agoJackGelder
3 months, 2 weeks ago