[英]Share azure app service for 1 website and 1 web api
I am trying to figure out if it's possible to share 1 "Azure App Service" for two different projects (which thus run simultaneously): 我试图找出是否有可能为两个不同的项目(因此同时运行)共享1个“ Azure App Service”:
Or is one Azure App Service limited to exactly one website/webapi? 还是一项Azure应用服务仅限于一个网站/ webapi?
PS: I know I can mix WebApi Controllers and MVC controllers, but I do not have the possibility to merge the two projects into one either .NET 4.5 or one .NET core project PS:我知道我可以混合使用WebApi控制器和MVC控制器,但是我无法将两个项目合并为一个.NET 4.5或一个.NET核心项目。
Yes, you can host more than one app on one App Service Plan. 是的,您可以在一个应用程序服务计划中托管多个应用程序。 Your apps can even run different stacks, eg three Node sites, two ASP.NET MVC5 sites and one PHP API. 您的应用程序甚至可以运行不同的堆栈,例如,三个Node站点,两个ASP.NET MVC5站点和一个PHP API。
From https://docs.microsoft.com/en-us/azure/app-service/azure-web-sites-web-hosting-plans-in-depth-overview : 从https://docs.microsoft.com/zh-cn/azure/app-service/azure-web-sites-web-hosting-plans-in-depth-overview中 :
Web Apps, Mobile Apps, API Apps, Function Apps (or Functions), in Azure App Service all run in an App Service plan. Azure应用服务中的Web应用,移动应用,API应用,功能应用(或功能)均在应用服务计划中运行。 Apps in the same subscription, region, and resource group can share an App Service plan. 同一订阅,区域和资源组中的应用可以共享一个应用服务计划。
All applications assigned to an App Service plan share the resources defined by it. 分配给App Service计划的所有应用程序共享由它定义的资源。 This sharing saves money when hosting multiple apps in a single App Service plan. 在单个App Service计划中托管多个应用程序时,这种共享节省了资金。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.