将Azure Web应用程序添加到App服务环境中

将Azure Web应用程序添加到App服务环境中

问题描述:

我在Azure上有一个Web应用程序,该应用程序不是在应用程序服务环境(ASE)中创建的.现在,我有一个特定要求,迫使我创建ASE并将现有的Web应用程序添加到ASE中.这可行吗?怎么样?

I have a web application on Azure which was NOT created in an App Service Environment (ASE). Now I have a specific requirement that forces me to create an ASE and add the existing web application into the ASE. Is it doable ? How ?

要使Web应用程序位于ASE中,它必须属于一个AppServicePlan,该应用程序的位置为ASE的名称,且为Premium Sku.因此,您无法更改现有WebApp的AppServicePlan并将其指向ASE中的应用程序.

For a WebApp to be inside an ASE, it has to belong to an AppServicePlan whose Location is name of the ASE and is of Premium Sku. For that reason you can't change the AppServicePlan of your existing WebApp and point it to that in the ASE.

您可以做的是克隆该应用程序,以便您能够执行此操作

What you can do is Clone the App , for you to be able to do this

1)您需要在ASE内部有一个与工作池绑定的AppServicePlan.如果尚不存在,请创建一个新的AppServicePlan并选择您创建的ASE作为位置.

1) You need to have an AppServicePlan inside ASE that is tied to a worker pool. If not already present, create a new AppServicePlan and select the ASE you created as the Location.

2)在您现有的WebApp设置中,有一个用于克隆的选项(如果尚未在Premium SKU中,它将要求您升级).您可以使用此选项在ASE中创建WebApp的副本,并绑定到您在上面的步骤中创建的AppServicePlan.

2) In your existing WebApp Settings there is an options to Clone (if not already in Premium SKU, it will ask you to upgrade). You can use this option to create a copy of your WebApp inside the ASE and tie to the AppServicePlan you created in step above.

这里是一个链接,提供有关如何将WebApp克隆到现有AppServicePlan中的信息:

Here's a link that provides info on how to clone a WebApp into an existing AppServicePlan : https://azure.microsoft.com/en-us/documentation/articles/azure-web-sites-web-hosting-plans-in-depth-overview/