Loading...

Converting Hyper-V Virtual Machines to Azure

When restoring a Hyper-V virtual machine (VM) from backup, the virtual machine can be restored as an Azure VM in the Azure management portal.

Before You Begin

Before performing backups of source VMs, check whether you meet the following requirements:

  • Create a virtualization client for Azure.
  • Remote Desktop Protocol (RDP) must be enabled on the source VM and the user performing the conversion must be able to log on to the VM.
  • For Linux VMs, Hyper-V integration services must be enabled on the source VMs if they will be powered on automatically after conversion.
  • Static network connections are not configured as part of conversion. If a virtual machine is configured to use a static IP address, change the network configuration to use DHCP before performing the backup.

  • Differential disks or checkpoints of virtual machines (files with .avhd or .avhdx extensions) will not be uploaded to Azure. Merge such disks to the original disk before performing the backup.

  • Before you begin the conversion to Azure, you should understand how this affects SnapProtect and the Azure VM.

    For details, see Considerations for Converting Hyper-V Virtual Machines to Azure.

To enable deployment in Azure Resource Manager:

Define one or more resource groups for the application associated with the Azure virtualization client.

Procedure

To access a backup of a Hyper-V virtual machine and create an Azure virtual machine:

  1. From the CommCell Console, expand Client Computers > virtualization_client > Virtual Server > Hyper-V > backup_set.
  2. Right-click the subclient that contains the backup the Hyper-V virtual machine must convert, then select Browse and Restore.
  3. In the Browse and Restore Options dialog box, select Full Virtual Machine.
  4. From the Restore as list next to Full Virtual Machine, select one of the following options:
    • Azure Classic
    • Azure Resource Manager
  5. Click View Content.

    A Client tab shows the contents of the most recent backup for the subclient.

  6. In the left pane, select a virtual machine .

    The configuration and VHDX files for the selected virtual machine are displayed in the right pane.

  7. Click Recover All Selected .
  8. In the Restore Options for All Selected Items dialog box, set the conversion settings:
    Options Descriptions
    Azure Subscription Specifies the virtualization client created for Azure.
    Destination client Specifies the destination client to act as a staging machine. Disk and configuration files for the Azure virtual machine are copied to the job results folder on the staging machine, then uploaded to Azure.
    VM and Disk Displays the name of the virtual machine and lists virtual machine disks.
    Change VM display name to To avoid overwriting an existing virtual machine with the same name on the Azure management portal, click the first row of the Change VM display name to column, and enter a new name.
    Cloud Services

    (only for Azure Classic)

    Select one of the cloud services created in the Azure management portal from the list.
    Resource Group

    (only for Azure Resource Manager)

    Select the resource group in which the converted virtual machine should be created.
    Storage Account Displays the storage account created under the selected cloud services. A different storage account can be selected for each virtual machine and disk.
    Filter a disk To exclude a virtual machine disk, under the Storage account column, select Do Not Attach in the row for the disk . When this option is selected, the specified disk is neither uploaded to Azure nor attached to the created VM.
    Settings

    (only for Azure Resource Manager)

    After selecting the Resource Group, select one or more VMs and click Configure to display the Azure Virtual Machine Configuration dialog box. Any changes you make on this dialog box are applied to all of the selected VMs. The following information is displayed:
    • VM Display Name (if a single VM was selected) - Displays the name of the destination VM. You cannot change the value on this dialog box.
    • Edit Destination VM Name (if multiple VMs were selected) - Select Prefix or Suffix and enter a string that should be appended to all destination VM names.
    • Resource Group - Displays the selected resource group. You cannot change the value on this dialog box.
    • VM size - Select a VM size from the list. The VM sizes in the list are those that are available for the resource group you selected.
    • Operating System - Match the operating system of the source VM.

      If necessary, you can select the AUTO option to automatically detect the operating system of the source VM.

    • Network Interface - Select a network connection for the restored VM. You can specify any subnet in the same region as the selected resource group.

      By default, a public IP address is assigned to Azure Resource Manager virtual machines during restores. If a public IP address is not required on restored VMs, create the nSkipPublicIPconfig additional setting on the VSA proxy that is used for the restore, and then set the value to 1.

      For instructions on adding additional settings from the CommCell Console, see Add or Modify an Additional Setting.

      Property Value
      Name nSkipPublicIPconfig
      Category VirtualServer
      Type Integer
      Value 0 - Disabled (This is the default.)

      1 - Enabled

    VM size

    (only for Azure Classic)

    Select one of the following VM size options:
    • AUTO: Size is selected automatically based on the RAM for the source VM.
    • A1:  1 core, 1.75 GB, 2 disks
    • A2:  2 cores, 3.5 GB, 5 disks
    • A3:  3 cores, 7 GB, 9 disks
    • A4:  4 cores, 14 GB, 17 disks
    • A5:  2 cores, 14 GB, 5 disks
    • A6:  4 cores, 28 GB, 9 disks
    • A7:  8 cores, 56 GB, 17 disks
    • A8:  8 cores, 56 GB, 17 disks
    • A9:  16 cores, 112 GB, 17 disks
    Operating System

    (only for Azure Classic)

    Match the operating system of the source VM.

    If necessary, you can select the AUTO option to automatically detect the operating system of the source VM.

    Create and Power ON Virtual Machine Select this option to power on the virtual machine in the Azure management portal after uploading disks and completing the conversion. This option is selected by default.
    Unconditionally overwrite VM and VHDs in destination path If a virtual machine with the same name exists on the Azure management portal, select this option to overwrite the existing virtual machine.
  9. Click OK.

Post-Conversion Tasks

  • If the source VM had dynamic disks that use simple disk spanning, RAID, striped, or mirrored layouts, after VM conversion, the disks in the converted VM might be marked as Failed in Disk Management. You must bring these disks online manually using Disk Management. To bring the disks back online, perform an Import Foreign Disks operation on the guest VM for the disk group that contains failed disks. As noted in Description of Disk Groups in Windows Disk Management, import the entire disk group in one operation rather than performing a partial import.

  • After conversion, configure the network connection for the Azure VM.