问题
I've got several websites in azure, and they are now grouped into "Web Hosting Plans". I have two plans total. What I'd like to do is move the sites from one plan into the other. Is there a way to do this without removing the sites and recreating them?
回答1:
Update
The required steps are as follows (All from powershell)
1: Login
Add-AzureAccount
2: Switch to azure resource mode
Switch-AzureMode AzureResourceManager
3: Create dictionary to represent the new farm
$whp=@{"serverfarm" = "<newfarm>";}
4: Switch Farm
Set-AzureResource -name <sitename> -ResourceGroupName <groupname> -ResourceType Microsoft.Web/sites -apiversion 2014-04-01 -PropertyObject $whp
You can get a list of resources by executing Get-AzureResourceGroup
once you are in resource mode
Update 2 10/29/2014
You can now do this from the preview portal
1: Login to the preview portal (portal.azure.com)
2: Pull up the card for the website you want to change
3: Click the ellipsis on the action bar near the top

4: Click Web Hosting Plan

5: Profit

回答2:
Here are the Azure Portal steps on March 2015.
- App Services
- My Web App
- Settings
- Change App Service plan
Note: This will only list destination App Service Plans that are in the same Resource Group.
回答3:
Yes, you have to use Azure Power Shell to do it. You can find instructions here: http://azure.microsoft.com/en-us/documentation/articles/azure-web-sites-web-hosting-plans-in-depth-overview/
(search for "How can I move a Site to a different Web Hosting Plan?")
回答4:
Update For August 2017
1) Portal -> App Services
2) Click on AppSvc to switch
3) Scroll down list, select "Change App Service Plan" in group "App Service Plan"
来源:https://stackoverflow.com/questions/23685094/is-it-possible-to-move-a-website-to-a-different-web-hosting-plan