Protecting Virtual Machines from Hyper-V : Protecting Virtual Machines from Hyper-V Hosts to Azure
  
Protecting Virtual Machines from Hyper-V Hosts to Azure
You can protect virtual machines to Microsoft Azure. The procedure is the same whether you intend to protect one virtual machine or multiple virtual machines.
When creating a VPG from Hyper-V to Azure the data is stored in a storage account and all replicated data from protected virtual machines to Azure is encrypted in the storage account. All recovery operations bring up the recovered machines in resource groups in Azure.
 
Azure ZCA can be installed only on Windows Server 2012 R2 and higher.
Only virtual machines that are supported by Azure can be protected by Zerto Virtual Replication. All Windows operating systems are supported.
Note: Microsoft does not support operating systems that are past the End of Support date, without a Custom Support Agreement (CSA). For more information about Microsoft operating systems support for Microsoft Azure, refer to https://support.microsoft.com/en-us/kb/2721672.
To replicate between Azure and your site, you must have a virtual machine in Azure with a Zerto Cloud Appliance installed on it. This ZCA must be paired with your site.
For Linux distribution, refer to Azure documentation:
Linux on Azure-endorsed distributions: https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-endorsed-distributions/
Information for non-endorsed distributions: https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-create-upload-vhd-generic/
Requirements for Replication From Azure
For Virtual Machines to be protected from Azure, the VM volumes must reside in the Standard storage account defined during ZCA installation.
A Standard storage account is created or selected upon ZCA installation.
Type: Standard storage
Recovery and journal volumes reside on this Zerto Storage Account
Azure VMs with all disks on this Zerto Storage Account can be protected by Zerto.
VMs which are not deployed via the Azure Resource Manager cannot be protected from Azure.
Requirements for Replication To Azure
Protected volumes are recovered in Azure as VHD disks in a page blob. Virtual machines with disks that are less than 1GB are recovered with disks of 1GB.
Note: For some instance sizes, the Azure virtual machine is created with a Local SSD disk which is a temporary disk. This disk is in addition to the disks associated with each protected virtual machine.
The following limitations apply when protecting to Azure
Virtual machines with UEFI Firmware cannot be protected.
You cannot protect machines that have a disk larger than 4 TB.
The protected virtual machines needs to have at least one NIC.
Reserve at least 2 CPUs and 4GB RAM for the machine using a subnet accessible by other Zerto Virtual Replication sites.
The supported number of data disks and NICS per virtual machine is dependent on the selected instance size. For example, instance size D3_v2 allows up to eight data disks per virtual machine.
Additional Azure Considerations
For additional considerations, see Azure subscription and service limits, quotas and constraints: https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits.
For example from the link, see the following default values:
There can be multiple Zerto Cloud Appliances per Azure subscription and region.
20 cores per subscription
200 Storage accounts per subscription
20 VMs per region per subscription
20 VMs per series (Dv2, F, etc.) cores per subscription per Region
Additionally, see the following example for maximum values:
A Standard storage account has a maximum total request rate of 20,000 IOPS. The total IOPS across all of your virtual machine disks in a Standard storage account should not exceed this limit.
VM Tier
Basic Tier VM
Standard Tier VM
Disk size
1023 GB
1023 GB
Max 8 KB IOPS per persistent disk
300
500
Max number of disks performing max IOPS
66
50
See also “Azure Limitations Which Affect Installation and Recoverability”, on page 87.
Azure Limitations Which Affect Installation and Recoverability
Below are the default Azure limitations which affect installation and recovery.
Default Azure limitations which Affect Installation
Storage Limitations:
Number of storage accounts: 200 per subscription (note: max is 250)
Default Azure Limitations which Affect Recovery
 
Virtual Machines Limitations
VMs per subscription per region:
20 (max: 10K)
VM total cores per subscription per region:
20
Instance sizes:
Limited per region.
Many of them are 20 cores per region per subscription
Resource groups per subscription:
800
Networking
Network interfaces per region:
350
NICs per instance:
Depends on instance size:
Private IP Addresses per VNET per subscription per region:
4096
Cloning of IP addresses during recovery operations:
A different static IP should not be configured for virtual machines with a Linux operating system. Configuring a different static IP for these machines will cause them not to boot.
Storage
Storage account total size limitation:
500 TB
(# of entities (blobs, containers etc) within a storage account: unlimited)
Max size of a page blob (vhd):
4 TB
Min size of a page blob (vhd):
20 MB
Max number of data disks:
Depends on instance size
To create a virtual protection group (VPG):
1. In the Zerto User Interface, select ACTIONS > CREATE VPG.
The NEW VPG step of the Create VPG wizard is displayed.
2. Specify the name of the VPG and the priority of the VPG.
VPG Name – The VPG name must be unique. The name cannot be more than 80 characters.
Priority – Determine the priority for transferring data from the protected site to the recovery site when there is limited bandwidth and more than one VPG is defined on the protected site. When there are updates to virtual machines protected in VPGs with different priorities, first the updates from the VPG with the highest priority are passed over the WAN. Medium priority VPGs will only be able to use whatever bandwidth is left after the high priority VPGs have used it. This is also true between medium and low priorities. Note that updates to the protected virtual machines are always sent across the WAN before synchronization data, such as during a bitmap or delta sync. During a synchronization, only after updates to the virtual machines are sent over the WAN, based on the VPG priority, is synchronization data from the VPG sent, and the synchronization data from the VPG with the highest priority is passed over the WAN before data from medium and low priority VPGs.
3. Click NEXT.
The VMs step is displayed.
4. Select the VMs that will be part of this VPG and click the arrow pointing right to include these VMs in the VPG.
Virtual machines that are not yet protected are displayed in the list. A VPG can include virtual machines that are not yet protected and virtual machines that are already protected. You can view protected virtual machines by clicking Select VMs in the Advanced (One-to-Many) section.
The Select VMs dialog is displayed.
Note: Virtual machines can be protected in a maximum of three VPGs. These VPGs cannot be recovered to the same site. Virtual machines protected in the maximum number of VPGs are not displayed in the Select VMs dialog.
Protecting virtual machines in several VPGs is enabled only if both the protected site and the recovery site, as well as the VRAs installed on these sites, are of version 5.0 and higher.
5. Click NEXT.
The REPLICATION step is displayed.
Note: If the protected site is paired with only one recovery site, the recovery step is displayed with the Recovery Site field automatically filled in and defaults set, as shown below.
6. Specify the recovery site.
Recovery Site – The site to which you want to recover the virtual machines. After specifying the recovery site, other fields are displayed.
Note: Steps that do not require input are marked with a check mark. You can jump directly to a step that has been marked with a check mark to edit the values for that step. Every step must be marked with a check mark before you can click DONE to create the VPG.
7. Optionally, change the default SLA values:
Journal History: The time that all write commands are saved in the journal.
The longer the information is saved in the journal, the more space is required for each journal in the VPG.
You can select the number of hours from 1 to 24 or the number of days from 2 to 30.
Target RPO Alert – The maximum desired time between each automatic checkpoint write to the journal before an alert is issued.
Test Reminder – The time recommended between testing the integrity of the VPG. A warning is issued if a test is not done within this time frame.
8. Click NEXT.
The STORAGE step is displayed. By default the storage used for the virtual machine definition is also used for the virtual machine data. For each virtual machine in the VPG, Zerto Virtual Replication displays its storage-related information.
9. Specify whether the protected volume is a temp data disk.
Temp Data – If the virtual machine to be replicated includes a temp data disk as part of its configuration, mark the recovery disk for this disk as a temp data disk. In this case, data is not replicated to the temp data disk after initial synchronization.
10. Click NEXT.
The RECOVERY step is displayed. Recovery details include the networks, network security group, instance family, and instance size to use for failover, move, and testing failover, and whether scripts should run as part of the recovery process.
Note: Steps that do not require input are marked with a check mark. You can jump directly to a step that has been marked with a check mark to edit the values for that step. Every step must be marked with a check mark before you can click DONE to create the VPG.
11. Select recovery settings for failover/move and failover testing.
VNet – The virtual network dedicated to your Azure subscription.
Subnet – The subnet or the VNet network.
Network Security Group – The Azure network security to be associated with the virtual machines in this VPG. You can associate one network security group with the virtual machines. The NIC will be associated with the network security group defined at the virtual machine level.
Instance Family – The instance family from which to select the size. Azure instance families are optimized for different types of applications. Choose the instance family appropriate for the application being protected in the VPG.
Instance Size– The instance size, within the instance family, to assign to recovered instances. Different sizes within an instance family vary, for example in a number of cores, RAM, and local storage size. Choose the instance size appropriate for the application being protected in the VPG. The price per instance is related to the instance configuration.
12. For additional settings, click ADVANCED VM SETTINGS.
The Advanced VM Settings dialog is displayed, which shows the recovery network settings for failover and move for virtual machines in the VPG. You can see the recovery network settings for failover tests by clicking TEST.
13. If you want to edit information in one field, click the field and update the information. If you want to edit information for several virtual machines at the same time, select the virtual machines and click EDIT SELECTED.
The Edit VM Settings dialog is displayed.
14. Update the values for VNet, subnet, security group, instance family, instance size, and private IP as necessary.
Only private IPs specified for Windows machines are assigned during a recovery operation. For Linux machines, the IP is assigned from the specified subnet range.
Clearing the values in the Private IP field results in an IP being automatically assigned from the subnet range during a recovery operation.
Refer to the Zerto Virtual Replication Interoperability Matrix for the list of operating systems for which Zerto supports Re-IPing.
15. Click OK twice to return to the main page of the RECOVERY step.
16. Enter the name of the script to run in the Command to run text box. You can then enter details about the script.
Pre-recovery Script – The information about a script that should run at the beginning of the recovery process.
Post-recovery Script – The information about a script that should run at the end of the recovery process.
For both types of scripts, enter the following information:
Text Box
Description
Command to run
The full path of the script. The script must be located on the same machine as the Zerto Virtual Manager for the recovery site.
Params
The parameters to pass to the script. Separate parameters with a space.
Timeout
The time-out, in seconds, for the script to run. If the script runs before executing a failover, move, or test failover, and the script fails or the timeout value is reached, an alert is generated and the failover, move, or test failover is not performed. If the script runs after executing a failover, move, or test failover, and the timeout value is reached, an alert is generated. The default time-out value is specified in Performance and Throttling tab in the Site Settings dialog.
17. Click NEXT.
The BACKUP step is displayed. Backup properties govern the VPG backup, including the repository where the backups are saved. Backup extends the ability to recover virtual machines in a VPG for up to one year.
18. By default, backup is off. If you do not want to change this value, go to step 19. Otherwise, toggle OFF to ON and enter the following information:
Target Repository – The name of the repository where the offsite backups are written. Repositories are configured via the SETUP tab as described in “Setting Up Offsite Backups”, on page 24.
Retention Period – The length of time to keep offsite backups, up to a maximum of one year. For details of how this affects the number of backups saved, see “Offsite Backups”, on page 35.
Run Job Every – The day and time to start the backup.
Retries – Whether to rerun the backup job automatically if the job fails. If you select this option, you must also define the number of retries that will be attempted and the time to wait after a job fails before running the backup job again.
Post-Backup Script – The information about a script that should run at the end of the recovery process. Enter the following information:
Text Box
Description
Command to run
The full path of the script. The script must be located on the same machine as the Zerto Virtual Manager for the recovery site.
Parameters
The values of parameters to pass to the script. Separate parameters with a space.
Timeout
The time-out, in seconds, for the script to run. If the timeout value is reached, an alert is generated. The default time-out value is specified in the Performance and Throttling tab of the Site Settings dialog.
Note: You cannot restore a backup in Azure.
19. Click NEXT.
The SUMMARY step is displayed. It shows the VPG configuration that you defined in the previous steps.
20. Click DONE.
The VPG is created.
For details of what happens after creating the VPG, see “What Happens After the VPG is Defined”, on page 34.