AZURE - How to migrate resources from a tenant to another

旧巷老猫 提交于 2020-02-02 11:23:31

问题


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


回答1:


The best and most reliable way is through Azure Billing Support. It is free support service and can handle that type of support questions.

Couple of very important things though (hard requirements that cannot be changed):

  • target subscription must be empty.
  • Service Administrator e-mail should be same for both subscriptions
  • There should not be co-administrators in both subscriptions for the time of migrating resources
  • Some services (i.e. Application Insights) cannot be moved (which services cannot be moved is determined by the support engineers)



回答2:


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.



来源:https://stackoverflow.com/questions/39598997/azure-how-to-migrate-resources-from-a-tenant-to-another

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!