从根据不同订阅创建的映像创建Azure VM [英] Create Azure VM from image created under different subscription

查看:197
本文介绍了从根据不同订阅创建的映像创建Azure VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有办法备份VM(遵循sysprep方法的图像捕获),然后在图库中将该图像显示给订阅下的某个人。例如,我创建了一个虚拟机,将其存档到图像库,然后我的同事出现并希望从该映像创建一个虚拟机(同事不能成为我订阅的共同管理员)。

Is there a way to take a backup of a VM (image capture following the sysprep method) and then make that image in the gallery visible to someone under their subscription. For example, I create a VM, archive it off to the image gallery, then my colleague comes along and wants to create a VM from that image (the colleague cannot be a co-administrator on my subscription).

或者,是否只有一种方法可以将VM移动到其他订阅而不将其关闭并重新创建?

Alternatively, is there just a way to move the VM to a different subscription without archving it off and recreating?

找到以下内容但这有点令人费解,需要购买第三方软件

Have found the following but this is a bit convoluted and requires purchase of third party software

http://gauravmantri.com/2012/07/04/how-to-move-windows-azure-virtual-machines - 从一个订阅到另一个/

非常感谢

Richard Clarke

Richard Clarke

推荐答案

我认为您不能使用在一个订阅中创建的图像在另一个订阅中创建VM。您需要将这些图像复制到订阅中。由于映像只是存储帐户中的页面Blob,因此您需要将它们复制到目标订阅中的存储帐户,从中创建映像,然后部署VM。我不知道有任何其他方法。

I don't think you can use images created in one subscription to create VMs in another subscription. You would need to copy those images into your subscription. Since images are nothing but Page Blobs in your storage account, you would need to copy them into a storage account in your target subscription, create images off of them and then deploy VMs. I'm not aware of any other way around it.

关于的评论需要购买第三方软件 ,那不是真的。您不必购买第三方软件。主要的是将您的VHD(页面blob)从一个订阅移动到另一个订阅。请查看该博客文章中的步骤1 - 复制Blob 。它有一个指向控制台应用程序的链接,其中包含可用于复制blob的源代码。我使用Cloud Storage Studio来探索我的blob存储。您可以使用任何其他存储资源管理器来检查blob存储的内容(包括Windows Azure门户)。 Cerebrata最近发布了一个免费的blob存储资源管理器,您可以查看: http://www.cerebrata.com/labs/ Azure的探险家

Regarding your comment about requires purchase of third party software, that's not really true. You don't have to buy 3rd party software. The main thing is to move your VHDs (which are page blobs) from one subscription to another. Do take a look at Step 1 - Copy Blobs in that blog post. It has a link to console application with source code that you can use to copy blob across. I used Cloud Storage Studio to explore my blob storage. You can use any other storage explorer to check the contents of blob storage (including Windows Azure portal). Cerebrata recently released a free blob storage explorer which you may want to check out: http://www.cerebrata.com/labs/azure-explorer.

不幸的是,这是我所知道的从不同订阅下创建的图像创建Azure VM的唯一方法。

Unfortunately that's the only way that I know of to create Azure VMs from images created under different subscriptions.

这篇关于从根据不同订阅创建的映像创建Azure VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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