Reputation: 105
I am using the Azure Resource Mover under preview.azure.portal to move an app service and its dependencies between subscriptions but keep encountering the following error:
{"code":"ResourceMoveProviderValidationFailed","target":"Microsoft.Web/sites","message":"{"Code":"BadRequest","Message":"Please select all the Microsoft.Web resources from 'SourceTestRG resource group for cross-subscription migration. Also, please ensure destination resource group 'DestTestRG' doesn't have any Microsoft.Web resources before move operation. Here is the list of resources you have to move together: AzureTestAppTest (Microsoft.Web/sites). This resource is located in resource group 'SourceTestRG', but hosted in the resource group 'AppsRG'. This may be a result of prior move operations.
The destination RG 'DestTestRG' does not have any resources. Any ideas on what may be the issue ?
UPDATE:
So basically the process is as follows ?
Create an App service plan lets say MainAppServicePlan in a ResourceGroup lets say ASPRG1 under subscription MainSub1
You can create resources in different resource groups for example:
App Service: AppService1 in ResourceGroup RGApp1
App Service: AppService2 in ResourceGroup RGApp2
App Service: AppService3 in ResourceGroup RGApp3
But thay all are under the App Service Plan ASPRG1. That means if i try to move from AppService1 from MainSub1 to MainSub2 it will give an error because i am required to move AppService2 and AppService3, is that correct ?
If that is the case , wouldn't it be feasible to create a brand new App Service Plan and move AppService1 to that new AppService Plan and then since no other resource resides in that App Servie Plan then the cross subscription migration should be ok ? Can the app service plan be changed once it is already set on an app service ?
Upvotes: 2
Views: 3883
Reputation: 119
App Service resources and Resource Groups are tied together internally, and it's not always transparent. See the Move guidance for all considerations.
Specifically:
- All App Service resources in the resource group must be moved together.
- App Service resources can only be moved from the resource group in which they were originally created. If an App Service resource is no longer in its original resource group, move it back to its original resource group. Then, move the resource across subscriptions.
Upvotes: 1