Set-VBRHvProductionNetworkOptions
Short Description
Modifies production network options for Hyper-V virtual lab.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRHvProductionNetworkOptions -ProductionNetworkOptions <VBRHvProductionNetworkOptions> [-ProductionNetwork <VBRHvServerNetworkInfo>] [-UseProductionNetworkVLANID] [-ProductionNetworkVLanID <Int32>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies production network options for Hyper-V virtual lab.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ProductionNetwork |
Specifies a production network with original VMs. The cmdlet will map VMs from this network to VMs from the isolated network.
Accepts the |
False |
Named |
False |
|
|
ProductionNetworkOptions |
Specifies options of a production network. The cmdlet will modify settings of this network.
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 options of a production network.
Examples
Modifying Production Network Options
This example shows how to modify production network options.
|
$server = Get-VBRServer -Name "srv01.tech.local" $network = Get-VBRHvServerNetworkInfo -Server $server $prod = New-VBRHvProductionNetworkOptions -ProductionNetwork $network[3] -UseProductionNetworkVLANID -ProductionNetworkVLANID "2" Set-VBRHvProductionNetworkOptions -ProductionNetworkOptions $prod -ProductionNetworkVLANID "3" |
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-VBRHvProductionNetworkOptionsDefines production networks options for Hyper-V virtual lab. cmdlet. Specify theProductionNetwork,UseProductionNetworkVLANIDandProductionNetworkVLANIDparameter values. Save the result to the$prodvariable. - Run the
Set-VBRHvProductionNetworkOptionscmdlet. Set the$prodvariable as theProductionNetworkOptionsparameter value. Specify theProductionNetworkVLANIDparameter value.
Related Commands
Get-VBRServerReturns hosts connected to the backup infrastructure.Get-VBRHvServerNetworkInfoReturns virtual networks for a Hyper-V host.New-VBRHvProductionNetworkOptionsDefines production networks options for Hyper-V virtual lab.