Hi,
I was just facing this type of confusion earliy this week.
The arcticle says that you can only move :
- Web apps to another resource group
- Move the App service + Web apps from an RG to another
that means
You cannot move an App service plan only, the move must include a Web app
The solution: If you want to move the App Service Plan to Group 1, you have to :
- Move back the Web app to Group2 (So you will have Group 2 containing App Service Plan + Web App)
- Move the Web App + App Service Plan to Group 1 (Together)
Here the Powershell to move both resources in one time
$SourceRG = 'SourceRGName'
$DestRG = 'DestinationRGName'
$WebAppName = 'BBBBBBB'
$AppServiceName = 'AAAAAAAAAA'
$webapp = Get-AzureResource -ResourceGroupName $SourceRG -ResourceName $WebAppName -ResourceType Microsoft.Web/sites
$plan = Get-AzureResource -ResourceGroupName $SPSourceRG -ResourceName $AppServiceName -ResourceType Microsoft.Web/serverFarms
Move-AzureResource -DestinationResourceGroupName $DestRG -ResourceId ($plan.ResourceId, $webapp.ResourceId)
If you encounter other issues, just ping me
Regards, Samir Farhat || Datacenter Consultant || The way to share my knowledge with the community
Visit my blog : buildwindows.wordpress.com
buildwindows.wordpress.com </a>