Liero
Liero

Reputation: 27348

Move to another subscription: Cannot move resources because some site(s) are hosted by other resource group(s) but located in resource group 'XXX'

I have resource group "MyResources", that contains 4 resources:

When I try to move them to another subscription, I get error message:

Cannot move resources because some site(s) are hosted by other resource group(s) but located in resource group 'MyResources'. The list of sites and corresponding hosting resource groups: myserver:vyvojari.sk'. This may be a result of prior move operations. Move the site(s) back to respective hosting resource groups and try again. (Code: BadRequest, Target: Microsoft.Web/serverFarms)

What does that mean? Especially myserver:vyvojari.sk is confusing.

"vyvojari.sk" is another resource group and it may be possible that I've created myserver appservice in that resource group in the past and moved. So what?

In the resource explorer for the myserver AppService I see:

{
  "id": "/subscriptions/xxxxxxxx-d9e0-4769-8440-8cd7968bf94d/resourceGroups/MyResources/providers/Microsoft.Web/sites/myserver",
  "name": "myserver",
  "type": "Microsoft.Web/sites",
  "kind": "app",
  "location": "West Europe",
  "properties": {
    "name": "myserver",
    "state": "Running",
    "hostNames": [
      "myserver.azurewebsites.net"
    ],
    "webSpace": "vyvojari.sk-WestEuropewebspace",
    "selfLink": "https://waws-prod-am2-071.api.azurewebsites.windows.net/subscriptions/xxxxxxxx-d9e0-4769-8440-8cd7968bf94d/webspaces/vyvojari.sk-WestEuropewebspace/site/myserver",
    "repositorySiteName": "myserver",

But what is webspace and selflink? How can I change it?

Upvotes: 3

Views: 4721

Answers (2)

GrozdanovD
GrozdanovD

Reputation: 1

You should have moved the resources back to original resource group (as per the error, myResources), migrate to different subscription, and than re-segment them into respected resource groups, as needed.

Upvotes: 0

Jay
Jay

Reputation: 3040

This may be too obvious but I think, they want you to move back the 'myserver' resource to the 'vyvojari.sk' resource group. Once that is done, do the subscription operation.

It is possible that although, myserver is in the current resource (you have said that you may have moved it here) is still 'hosted' in that vyvojari resource group despite being part of the current group. By this logic, looks like moving it back to vyvojari should allow you do your subscription related task.

Upvotes: 3

Related Questions