移动到另一个订阅:无法移动资源,因为某些站点由其他资源组托管但位于资源组 'XXX'

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

我有资源组 "MyResources",其中包含 4 个资源:

当我尝试将它们移动到另一个订阅时,我收到错误消息:

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)

这是什么意思?特别是 myserver:vyvojari.sk 令人困惑。

"vyvojari.sk" 是另一个资源组,可能我过去在该资源组中创建了 myserver appservice 并移动了。那又怎样?

在 myserver AppService 的资源浏览器中,我看到:

{
  "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",

但是什么是网站空间和自链接?我该如何更改?

这可能太明显了,但我认为,他们希望您将 'myserver' 资源移回 'vyvojari.sk' 资源组。完成后,进行订阅操作。

尽管 myserver 在当前资源中(您说过您可能已将其移至此处)可能仍然 'hosted' 在该 vyvojari 资源组中,尽管它是当前组的一部分。按照这种逻辑,看起来将其移回 vyvojari 应该允许您执行与订阅相关的任务。

将应用服务移动到另一个资源时需要考虑以下限制Group/Subscription。

使用应用服务应用时,您不能只移动一个应用服务计划。要移动应用服务应用,您的选择是:

  • 移动应用服务计划和其中的所有其他应用服务资源 资源组到一个新的资源组,还没有 App 服务资源。此要求意味着您甚至必须移动 App 与应用服务计划无关的服务资源。

  • 将应用移至不同的资源组,但保留所有应用服务 原始资源组中的计划。

应用服务计划无需与应用位于同一资源组中,应用即可正常运行。

有关限制的更多详细信息,请参阅此 documentation。只有满足所有 requirements/conditions 条件,您才能移动资源。

您应该已将资源移回原始资源组(根据错误,myResources),迁移到不同的订阅,而不是根据需要将它们重新分段到受尊重的资源组中。