question

LuisGarcia-6808 avatar image
0 Votes"
LuisGarcia-6808 asked karishmatiwari-msft commented

Need to create a VM from a VHD that I uploaded to a container in a new account

I uploaded a VHD file to a new account. I uploaded the VHD file to a container in the new account. I would like to create a VD from the VHD file in the new account. I would appreciate some help figuring how to accomplish this.

Thanks,

Luis

azure-virtual-machines
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

By new account, do you mean new Subscription?

0 Votes 0 ·

1 Answer

karishmatiwari-msft avatar image
0 Votes"
karishmatiwari-msft answered

You can create a virtual machine (VM) in Azure using Azure portal, Azure Powershell.

Using Azure Portal, you can create a new VM by attaching the VHD to the new VM as an OS disk. Create a snapshot and then create a disk from the snapshot. This strategy allows you to keep the original VHD as a fallback. After you have the managed disk VHD that you want to use, you can create the VM in the portal. The steps are described here.

You can also use PowerShell to upload a VHD of a generalized VM to Azure, create an image from the VHD, and create a new VM from that image. You can upload a VHD exported from an on-premises virtualization tool or from another cloud, as described here.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.