Azure: Moving an App Service to another existing App Service Plan

Web ServicesAzureAzure App-Service-PlansAzure Web-App-Service

Web Services Problem Overview


I'm attempting to move an App Service from one service plan to another. When I use the portal to do so, the other App Service plan is not displaying.

Both App Services are in the same Location and Resource Group. The two App Services Plans are in the same location and have the same pricing tier.

I use the "Change App Service Plan" option for the web app. The only App Service Plan that is displayed is the current one. There is also a "Create New" option.

So, in summary:

  1. Why is the other App Service Plan not able to be selected.
  2. How can I move the App Service (Web App) to the other App Service Plan.

Web Services Solutions


Solution 1 - Web Services

The reason why you are not able to see the other App Service Plan when you try to change the App Service Plan is due to current limitations in moving the Azure web app resources.

The other App Service Plan which you intend to move your Web Apps to is in another resource group with existing Azure Web Apps, which is not supported currently

Azure Web Apps current move limitations updated 01/04/2016

Hope this answer your question.

Solution 2 - Web Services

Not sure if it is something recent, but it seems it is finally possible. The option is in the main resource menu as "Change App Service plan". See:

Change Azure App service plan

I was able to move an app service(website) and also its deployment slot to a different plan (with same parameters and location - but did not try if this is a requirement).

Solution 3 - Web Services

Yes, we can now move the App Service Plan using the Change App Service Plan.

But sometime you will get No App Service Plan Found as this is the known restriction for the moving App Service plan.

Restrictions

  • We can move the App service plan only if the new plan is in the same resource group and geographical location.- These two conditions is is to ensure the new plan is in same webspace

Webspace

> Azure deploys each new App Service plan into a deployment unit, internally called a webspace. Each region can have many webspaces, but your app can only move between plans that are created in the same webspace. An App Service Environment is an isolated webspace, so apps can be moved between plans in the same App Service Environment, but not between plans in different App Service Environments.

> You can’t specify the webspace you want when creating a plan, but it’s possible to ensure that a plan is created in the same webspace as an existing plan. In brief, all plans created with the same resource group and region combination are deployed into the same webspace. For example, if you created a plan in resource group A and region B, then any plan you subsequently create in resource group A and region B is deployed into the same webspace. Note that plans can’t move webspaces after they’re created, so you can’t move a plan into “the same webspace” as another plan by moving it to another resource group.

You can find this in the official doc here and here

You can also refer this SO

Solution 4 - Web Services

You can configure a backup and restore on the new App Service under the new APp Service Plan.

Backup an app: https://docs.microsoft.com/en-us/azure/app-service/manage-backup#:~:text=The%20Backup%20and%20Restore%20feature,or%20restoring%20to%20another%20app.

Solution 5 - Web Services

Put your code in DevOps and deploy it to the new service plan and point DNS.

Solution 6 - Web Services

thank you for the tips i found a work around. you can move app service plan to the same resource group, and then you can move apps from one plan to another. Move resource first will do a check, after that you can review and finally move.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionStephanie J.View Question on Stackoverflow
Solution 1 - Web ServicesjuvchanView Answer on Stackoverflow
Solution 2 - Web ServicesmivraView Answer on Stackoverflow
Solution 3 - Web ServicesJayendranView Answer on Stackoverflow
Solution 4 - Web ServicesLuis RiveraView Answer on Stackoverflow
Solution 5 - Web ServicesChuck DView Answer on Stackoverflow
Solution 6 - Web ServicesmaximnlView Answer on Stackoverflow