New-VBRHvInstantRecoveryNetworkMappingRule
Short Description
Creates a new network mapping rule.
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRHvInstantRecoveryNetworkMappingRule -SourceNetwork <VBRComputerNetworkInfo> -TargetNetwork <VBRHvServerNetworkInfo> [<CommonParameters>] |
Detailed Description
This cmdlet defines the VBRHvInstantRecoveryNetworkMappingRule object. This object defines how to map networks in the original site to networks in the target site (site where VMs will be recovered). You can use this object to perform instant recovery of Veeam Agent computers.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
SourceNetwork |
Specifies the array of networks connected to Veeam Agent computers.
Accepts the |
|
True |
Named |
False |
|
TargetNetwork |
Specifies the array of virtual networks connected to the Hyper-V host which computers are restored to.
Accepts the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRHvInstantRecoveryNetworkMappingRule object that defines network mapping rules.
Examples
Configure network for an appliance
This example shows how to define settings for a new network mapping rule.
|
$network = Get-VBRComputerNetworkInfo New-VBRHvInstantRecoveryNetworkMappingRule -SourceNetwork $network |
Perform the following steps:
- Run the
Get-VBRComputerNetworkInfoReturns networks connected to Veeam Agent computers. cmdlet. Save the result to the$networkvariable. - Run the
New-VBRHvInstantRecoveryNetworkMappingRulecmdlet. Set the$networkvariable as theSourceNetworkparameter value.