迁移经典Azure的资源,以新的Azure资源管理器 [英] Migrate classic Azure resources to new Azure resource manager

查看:285
本文介绍了迁移经典Azure的资源,以新的Azure资源管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

切换到新的Azure门户网站后,我看到了我的所有资源被列为经典的资源。我在Google上搜寻四周,看看它是否可能有经典的虚拟机并迁移给ARM,只是还没有看到任何东西,说这是可能的。

After switching to the new Azure portal, I see all resources of mine are listed as classic resources. I am googling around to see if it's possible to have classic VM and migrate it to ARM and just hadn't seen anything that stated it was possible.

我试着删除VM类,但保持了VHD检查,如果我可以附加到ARM VM。其结果表示,这是行不通的。

I tried deleting the class VM but keep the VHD to check if I can attach it to the ARM VM. The result said it doesn't work.

有没有可以用来实现这个办法吗?

Is there any way that can be used to achieve this ?

推荐答案

很不幸(奇怪!)没有办法通过门户网站要做到这一点,你必须下降到PowerShell的,而不是(或xplat /垫)

Unfortunately (and strangely!) there isn't a way to do this via the portal and you have to drop down to Powershell instead (or xplat / Rest)

当我已导出的VM从V1至V2我通常使原来的VHD文件通过一个blob共享进行访问(这可以暂时做此命令的持续时间)

When I have exported VMs from v1 to v2 I typically make the original vhd file accessible via a blob share (this can be done temporarily for the duration of this command)

然后,您可以使用VHD作为源图像的URI,通过部署新的虚拟机

You can then deploy a new VM using that vhd as a source image's URI, using

Set-AzureRmVMOSDisk -VM $vm -Name $vmname -VhdUri $uri -CreateOption FromImage -Windows 

另外,您可以将VHD复制到V2的存储和使用连接而不是 FromImage

如果您包装,围绕href=\"https://msdn.microsoft.com/en-us/library/mt603754.aspx\" rel=\"nofollow\"> VM创建脚本标准

If you wrap that around a standard VM Create script, you should be good to go!

这篇关于迁移经典Azure的资源,以新的Azure资源管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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