--- title: "New-VBRHvInstantRecoveryNetworkMappingRule" description: "Creates a new network mapping rule. Platform: Hyper-V Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet defines the VBRHvInstantRecoveryNetworkMappingRule object." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/new-vbrhvinstantrecoverynetworkmappingrule.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Data Recovery > Instant Recovery > New-VBRHvInstantRecoveryNetworkMappingRule" dateModified: "2026-08-19" --- # 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 -TargetNetwork [] ``` ## 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 VBRComputerNetworkInfo[] object. To get this object, run the Get-VBRComputerNetworkInfo cmdlet.

VBRComputerNetworkInfo

True

Named

False

TargetNetwork

Specifies the array of virtual networks connected to the Hyper-V host which computers are restored to.

Accepts the VBRHvServerNetworkInfo[] object. To get this object, run the Get-VBRHvServerNetworkInfo cmdlet.

VBRHvServerNetworkInfo

True

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object The cmdlet returns the [`VBRHvInstantRecoveryNetworkMappingRule`](vbrhvinstantrecoverynetworkmappingrule.md) object that defines network mapping rules. ## Examples ::: example ### 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: 1. Run the [`Get-VBRComputerNetworkInfo`](get-vbrcomputernetworkinfo.md) cmdlet. Save the result to the `$network` variable. 2. Run the `New-VBRHvInstantRecoveryNetworkMappingRule` cmdlet. Set the `$network` variable as the `SourceNetwork` parameter value. :::