AZURE-如何将资源从租户迁移到另一个 [英] AZURE - How to migrate resources from a tenant to another

查看:298
本文介绍了AZURE-如何将资源从租户迁移到另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将资源(虚拟机,网络,网关等)从具有订阅的租户/客户端迁移到具有另一订阅的其他租户/客户端,并且使用完全相同的参数,我该怎么做? (移动功能仅适用于同一租户/客户端中的订阅,如果我下载虚拟机​​的vhd,则必须手动重新创建虚拟机配置

I want to migrate resources (VMs, networks, gateways ...) from a tenant /client with a subscription to another tenant /client with another subscription, with the exact same parameters, how can I do that ? (the move function works only for subscriptions in the same tenant / client, if I download vhd of the VMs I must recreate manually the VMs configuration

推荐答案

有关信息,我没有设法以所需的方式迁移VM.我终于在目标租户上重新创建了网络基础架构,关闭了虚拟机的电源,使用azcopy AzCopy.exe /source:https://<sourceaccountstorage>.blob.core.windows.net/vhds/ /Dest:https://<destaccountstorage>.blob.core.windows.net/vhds/ /sourcekey:<sourceaccountstoragekey> /destkey:<destaccountstoragekey> /pattern:<name of VHD to copy>.vhd将VHD从源存储帐户移动到目标存储帐户(对于Westeurope位置的130 Gb为13分钟),然后重新创建具有VHD New-AzureRmNetworkInterface, New-AzureRmVMConfig, Add-AzureRmVMNetworkInterface, Set-AzureRmVMOSDisk and New-AzureRmVM的Powershell的VM.

For information, I didn't managed to migrate the VMs the way I wanted. I've finally recreate the network infrastructure on the destination tenant, poweredoff the VMs, use azcopy AzCopy.exe /source:https://<sourceaccountstorage>.blob.core.windows.net/vhds/ /Dest:https://<destaccountstorage>.blob.core.windows.net/vhds/ /sourcekey:<sourceaccountstoragekey> /destkey:<destaccountstoragekey> /pattern:<name of VHD to copy>.vhd to move the VHDs from the source storage account to the destination storage account (13 min for 130 Gb in westeurope location), and recreate the VMs with powershell with the VHDs New-AzureRmNetworkInterface, New-AzureRmVMConfig, Add-AzureRmVMNetworkInterface, Set-AzureRmVMOSDisk and New-AzureRmVM.

这篇关于AZURE-如何将资源从租户迁移到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆