Move Azure web apps between different app service plans

Written by ppolyzos

Software engineer based in beautiful Luxembourg


  1. ultrafastneal

    Thanks for the article! I can’t believe the option was sitting there in front of my face and I never found it.
    Has anyone figured out how to do this via script? (PowerShell, CLI, etc)

    1. ppolyzos

      You can use the following powershell command to move a web app
      Set-AzureRmWebApp -Name ‘webapp_name’ -ResourceGroupName ‘resource_group_name’ -AppServicePlan ‘new_app_service_plan’
      or a web app slot
      Set-AzureRmWebAppSlot -Name ‘webapp_name’ -Slot ‘slot_name’ -ResourceGroupName ‘resource_group_name’ -AppServicePlan ‘new_app_service_plan’

    1. ppolyzos

      Moving web apps to App Service plans that are in datacenters in different geographical locations is not supported. If you want to move your Web app to a different location you can use the “Clone App” feature, more info here, where you can clone your app to an app service in a different location. Keep in mind that this feature is offered in Premium App Service plan, so you firstly need to scale up your existing App Service plan.

      1. joebrockhaus

        You are also only able to Move or Clone to an ASP in the same Resource Group, and the target ASP must also be a Premium or better SKU.

  2. Peter

    What about if my app plans are in different resource groups? I can’t use this method. I cant move the resources because “Cannot move Server Farms: Destination Resource Group already has app service plans in the same region.” Is my only option to create a new web app in the target app plan, and manually move the files by ftp?

    1. ppolyzos

      Indeed, “Change Service Plan” allows you to move web apps between app servers in the same resource group. However, you can move Azure resources to a new resource group or subscription following this guide and then move a web app to another app service plan.
      (Bear in mind the following limitations)

      To deploy your web app in your new app service plan, you can select any of the following deployment options, including FTP, GitHub, Dropbox… as described in this guide.

  3. Wout

    Maybe handy to mention. It can take a few minutes before all de detail information of the app and plan are correctly displayed.

    I moved a ‘service app’ to a new ‘service plan’. In the ‘service plan’ apps section, the ‘app service’ was correctly mentioned. But on the ‘service app’ itself the overview displayed the old ‘service plan’. After 10minutes or so the overview details were updated with the correct (new) ‘service plan’

  4. Greg WOods

    It is not always possible to move an app to another App Service Plan, even when the 2 criteria (same region, same resource group) are met.
    According to :
    They must also be in the same “webspace” or “App Service Environment”, which is not exposed to the user in any way.
    Basically, the same region, same resource group criteria must always have been true.
    i.e. If they were created in different RGs, they will be in different webspaces, and from then on, even if you move them into the same RG, they will still be in different webspaces and so cannot be moved using the UI… the target App Service Plan just won’t show up in the dropdown.

Leave a Comment

Your email address will not be published. Required fields are marked *