Connect-VBRHvVirtualLab
Short Description
Adds VMs to Veeam Backup & Replication.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Connect-VBRHvVirtualLab [-VM] <CHvVmItem> [<CommonParameters>] |
Detailed Description
This cmdlet adds VMs created on Hyper-V to Veeam Backup & Replication.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
VM |
Specifies a VM that you want to add to Veeam Backup & Replication.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Adding VM to Virtual Lab
This example shows how to add the srv99 VM into Veeam Backup & Replication infrastructure.
|
$vm = Find-VBRHvEntity -Name "srv99" Connect-VBRHvVirtualLab -VM $vm |
Perform the following steps:
- Run the
Find-VBRHvEntityReturns Hyper-V objects. cmdlet. Specify theNameparameter value. Save the result to the$vmvariable. - Run the
Connect-VBRHvVirtualLabcmdlet. Set the$vmvariable as theVMparameter value.
Related Commands
Find-VBRHvEntityReturns Hyper-V objects.