Is it possible to move a website to a different “Web Hosting Plan”

本小妞迷上赌 提交于 2019-12-21 03:42:43

问题


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.

  1. App Services
  2. My Web App
  3. Settings
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!