Move Azure web apps between different app service plans

Written by ppolyzos

Software engineer based in Athens, Greece


  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.

Leave a Comment

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