简体   繁体   English

共享1个网站和1个Web API的Azure应用服务

[英]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”:

  • 1 .NET 4.5 Website (MVC5) 1 .NET 4.5网站(MVC5)
  • 1 .NET core WebApi 1 .NET核心WebApi

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.

相关问题 尝试在Azure App服务上使用WEB API时出错 - Error when trying to use WEB API on Azure App service .NET核心Web API作为Azure应用程序服务上的虚拟应用程序 - .NET core web API as virtual application on Azure app service 在Azure App服务上托管Web API时发生无效异常 - Invalid Exception when host web api on azure app service 无法发布 ASP.NET Web API 到 Z3A580F142203677F1FZ3 应用服务 - Cannot publish ASP.NET Web API to Azure App Service 在网站项目和 Web 服务项目之间共享枚举 - Share an enum between a website project and a web service project Azure Web应用程序服务使用混合连接管理器使用HttpClient调用本地WEB API - Azure web app service to call onpremise WEB API using HttpClient using hybrid connection manager 将 GitLab Web 应用程序部署到 Azure 应用程序服务 - Deploy GitLab web app to Azure app service 建立一个完整的Web服务,网站和iPhone应用程序 - Architechting a complete web service, website, and iphone app 找不到Azure应用服务ASP.NET Web API OWIN OAuth路径 - Azure App Service ASP.NET Web API OWIN OAuth path not found 如果在一定时间间隔内没有任何操作,Microsoft Azure App Service(MVC C#Web API)将进入睡眠状态 - Microsoft azure app service(MVC C# Web API) getting sleep if there is no action in some interval time
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM