VM creation in Azure

Shahin Mortazave 491 Reputation points
2021-06-09T14:52:12.943+00:00

Hi,

We would like to run a test with one of our on-prem production application that is running on an Hyper-V VM in Azure. we don't want to migrate the current VM to the Azure and we want to live the current production VM on-prem.

We have already the ASR in place and we sync some of our VMs to Azure but we dont want to use this one as well because after we move this Vm to Azure we want to run it without shutting down the production VM.

Do you have any suggestion of how to create a VM in Azure based on copy of an existing on-prem VM without having ANY side effect on the current production environment.

Thanks

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,688 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Yuhan Deng 3,766 Reputation points Microsoft Vendor
    2021-06-10T06:01:34.453+00:00

    Hi,
    I would suggest that you use vhdx files to create VMs in Azure.
    Please note that to copy the vhdx files you might need to turn off the production VMs, which might bring you some downtime.
    For your reference:
    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/create-vm-specialized-portal

    Thanks for your understanding.
    Best regards,
    Danny

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Shahin Mortazave 491 Reputation points
    2021-06-10T11:31:35.587+00:00

    Hi @Yuhan Deng
    Do you mean just simply create a copy of the vhdx file of my on-prem VM and upload it to my Blob storage account in Azure? I thought that Azure VM will only work with First gen VHD files!! Also how can I create a VM from uploaded vhd in my blob storage account? shouldn't we first made an image from m on-prem vhd file?

    Thanks

    0 comments No comments

  3. Yuhan Deng 3,766 Reputation points Microsoft Vendor
    2021-06-11T01:25:13.673+00:00

    Hi,
    To upload a vhd to Azure, you can refer to this:
    https://learn.microsoft.com/en-us/azure/virtual-machines/linux/disks-upload-vhd-to-managed-disk-cli
    And to create a VM with it, refer to this:
    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/create-vm-specialized-portal
    And for Gen 2 VM in Azure, this might help:
    https://learn.microsoft.com/en-us/azure/virtual-machines/generation-2

    Thanks for your time.
    Best regards,
    Danny

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Vaibhav Kumar 1 Reputation point
    2021-06-11T04:05:24.407+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.