New-VBRHvProductionNetworkOptions
Short Description
Defines production networks options for Hyper-V virtual lab.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRHvProductionNetworkOptions -ProductionNetwork <VBRHvServerNetworkInfo> [-ProductionNetworkVLANID <Int32>] [-UseProductionNetworkVLANID] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRHvProductionNetworkOptions object that defines network options for Hyper-V production networks.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ProductionNetwork |
Specifies a production network with original VMs.
Accepts the |
True |
Named |
False |
|
|
ProductionNetworkVLANID |
Specifies an ID of a production network. The cmdlet will create the production network with the specified ID. |
|
False |
Named |
False |
|
UseProductionNetworkVLANID |
Defines that the cmdlet will enable a production network VLANID. |
|
False |
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 VBRHvProductionNetworkOptions object that defines network mapping rules of isolated networks.
Examples
Defining production networks options
This example shows how to define network mapping rules of isolated networks.
|
$server = Get-VBRServer -Name "srv01.tech.local" $network = Get-VBRHvServerNetworkInfo -Server $server New-VBRHvProductionNetworkOptions -ProductionNetwork $network[3] -UseProductionNetworkVLANID -ProductionNetworkVLANID "2" |
Perform the following steps:
- Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify theNameparameter value. Save the result to the$servervariable. - Run the
Get-VBRHvServerNetworkInfoReturns virtual networks for a Hyper-V host. cmdlet. Set the$servervariable as theServerparameter value. Save the result to the$networkvariable. - Run the
New-VBRHvProductionNetworkOptionscmdlet. Specify the following settings:- Set the
$network[3]variable as theProductionNetworkparameter value.The
Get-VBRHvServerNetworkInfocmdlet will return an array of production networks. Mind the ordinal number of the necessary production network (An array starts with 0. In our example, it is the fourth production network in the array). - Provide the
UseProductionNetworkVLANIDparameter. - Specify the
ProductionNetworkVLANIDparameter value.
- Set the
Related Commands
Get-VBRServerReturns hosts connected to the backup infrastructure.Get-VBRHvServerNetworkInfoReturns virtual networks for a Hyper-V host.