Configure Azure Site Recovery Networking- Understanding Disaster Recovery
A VM in Azure must have at least one network interface attached to it, but it can have as many as the VM size supports. The first network interface, attached to an Azure VM, is called the primary network interface and all other network interfaces are called secondary network interfaces. All outbound traffic from the VM uses the IP address of the primary network interface.
Azure Site Recovery, by default, will create the same number of network interfaces as the amount of Azure VMs on an on- premises server. During migration or failover, you can avoid creating redundant network interfaces by editing the network interface settings under the settings for the replicated VM.
Select the Target Network
You can specify the target VNet for individual VMs for VMware and physical machines, and for Hyper- V (without System Center Virtual Machine Manager) VMs. To do so, perform the following:
- In a Recovery Services Vault, under Replicated Items, select any replicated item to access the settings for that replicated item.
- Select the Compute And Network tab to access the network settings for the replicated item, as shown in Figure 17.41.
FIGURE 17.41 Compute And Network tab
3. Under Network Properties, choose a virtual network from the list of available network interfaces. When you modify the target network, it will affect all other network interfaces on that VM.
Select the Target Interface Type
When you are enabling replication, Site Recovery selects all detected network interfaces on the on- premises server by default. It will mark one as the Primary and all others as Secondary. By default, any interfaces added to the on- premises server are marked Do Not Use.
If you want to view and edit the network interface settings and specify the target network interface type, you can do so by following these steps:
- In a Recovery Services Vault, under Replicated Items, select any replicated item to access the settings for that replicated item.
- Select the Compute And Network tab to access the network settings for the replicated item.
- Look in the Network Interfaces section to view and edit the network interface settings. From here, you can also specify the target network interface type, as shown in Figure 17.41 earlier. The target network interface type options include Primary, Secondary, and Do Not Use.
Modify the Network Interface Settings
You can also change the subnet and IP address for a replicated item’s network interfaces. Site Recovery will assign the next available IP address from the subnet to the network interface at failover if an IP address is not specified. In order to change the subnet and IP address, perform the following:
- In a Recovery Services Vault, under Replicated Items, select any replicated item to access the settings for that replicated item.
- Select the Compute And Network tab to access the network settings for the replicated item.
- In the Network Interfaces section, view and edit the network interface settings.
- Select any available network interface to open Network Interface Card Properties, as shown in Figure 17.42.
FIGURE 17.42 Network Interface Card Properties
5. Select your desired subnet from the list of available subnets.
6. Enter the desired IP address (as required).
7. When done, click OK to return to the Compute And Network tab.
8. Repeat steps 4–7 for any other network interfaces that you wish to change.
9. When done, click Save to save all changes.
Configure Site Recovery for On- Premises VMs
To set up disaster recovery of on-p remises physical Windows and Linux servers to Azure, there are a number of steps. I have covered most of these throughout this chapter. The steps include:
■ Set up Azure and on- premises prerequisites.
■ Create a Recovery Services Vault for Site Recovery.
■ Set up the source and target replication environments.
■ Create a replication policy.
■ Enable replication for a server.
To create a Recovery Services Vault to be used for Site Recovery, perform the following:
- Sign into the Azure portal at https://portal.azure.com.
- Search for and select Recovery Services Vault.
- Click Create A Resource. Then select Monitoring + Management. Select Backup And
Site Recovery to open the Recovery Services Vault window, as shown in Figure 17.43.
FIGURE 17.43 Recovery Services Vault
4. Perform the following:
■ In the Name section, specify a name to identify the vault.
■ In the Subscription section, if you have more than one subscription, select the appropriate one.
■ For Create A New Resource Group, type a name for the new group or select an existing one.
■ In Location, specify your Azure region.
5. If you want to quickly access the vault from the dashboard, click Pin To Dashboard and then click Create. The new vault will appear on the dashboard under All Resources and on the main Recovery Services Vaults page.