【发布时间】:2016-02-27 15:33:59
【问题描述】:
我正在尝试将一些 Azure 资源从一个订阅移动到另一个订阅。我有一个 Microsoft 帐户,它是源订阅和目标订阅的共同管理员。
我运行 Powershell 并使用以下命令行开关登录:
Add-AzureRmAccount -TenantId "source tenant GUID"
那我用
Move-AzureRmResource -ResourceId "id of the resource" -DestinationResourceGroupName "xxx" -SubscriptionId "target subscription GUID"
我收到此错误:
Move-AzureRmResource : LinkedAuthorizationFailed : The client has permission to perform
action 'Microsoft.Resources/subscriptions/resourceGroups/write' on scope '/subscriptions/
xxx/resourceGroups/dotnetportal', however the linked subscription 'target subscription GUID' is not in
current tenant 'source tenant GUID'.
【问题讨论】:
-
我假设您不能或不想将整个订阅移动到不同的广告?
-
哦,有可能吗?我该怎么做?
-
您需要从帐户管理中执行此操作。这篇文章应该可以帮助你:azure.microsoft.com/en-us/documentation/articles/…
-
之后,您尝试的命令应该可以工作
-
谢谢,我尝试转移迁移,但没有完成。我知道如果我继续,我将失去我的 BizSpark 积分。有没有其他方法可以仅将一些资源转移到具有不同租户的不同订阅?当我提交支持请求时,他们告诉我他们只能转移整个订阅。
标签: azure azure-active-directory azure-powershell azure-resource-manager