Connect-VSBVirtualLab (obsolete)

Short Description

Connects an existing VMware virtual lab.

Connect-VSBVirtualLab (obsolete) Note:

This cmdlet is deprecated and will be marked as obsolete in the future. It is recommended to re-write your scripts using the Connect-VBRViVirtualLab cmdlet.

Applies to

Platform: VMware

For Hyper-V, run the Connect-VSBHvVirtualLab cmdlet.

Product Edition: Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Connect-VSBVirtualLab -VirtualLab <CVirtualLabDescriptor> [-WarningAction <ActionPreference>] [-WarningVariable <String>]  [<CommonParameters>]

Detailed Description

This cmdlet connects an existing VMware virtual lab to Veeam Backup & Replication console.

When you add a new host to your Veeam Backup & Replication console, the virtual labs that are registered on it are not added automatically. Use this cmdlet to add the virtual labs to your Veeam Backup & Replication console.

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

VirtualLab

Specifies the virtual lab you want to connect.

Accepts the CVirtualLabDescriptor object. To get this object, run the Find-VSBVirtualLab cmdlet.

True

1

True (ByValue,
ByProperty
Name)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Connect-VSBVirtualLab (obsolete)Example 1. Connecting Virtual Lab [Using Pipeline]

This example shows how to connect the Exchange VLab 01 virtual lab to Veeam Backup & Replication.

$server = Get-VBRServer -Name "srv001"

Find-VSBVirtualLab -Server $server -Name "Exchange VLab 01" | Connect-VSBVirtualLab

Perform the following steps:

  1. Run the Get-VBRServer cmdlet. Specify the Name parameter value. Save the result to the $server variable.
  2. Run the Find-VSBVirtualLab cmdlet. Set the $server variable as the Server parameter value. Specify the Name parameter value.
  3. Pipe the cmdlet output to the Connect-VSBVirtualLab cmdlet.

Connect-VSBVirtualLab (obsolete)Example 2. Connecting Virtual Lab [Using Variable]

This example shows how to connect the Exchange VLab 01 virtual lab to Veeam Backup & Replication.

$server = Get-VBRServer -Name "ESXiHost"

$VLab01 = Find-VSBVirtualLab -Server $server -Name "Exchange VLab 01"

Connect-VSBVirtualLab -VirtualLab $VLab01

Perform the following steps:

  1. Run the Get-VBRServer cmdlet. Specify the Name parameter value. Save the result to the $server variable.
  2. Run the Find-VSBVirtualLab cmdlet. Set the $server variable as the Server parameter value. Specify the Name parameter value. Save the result to the $VLab01 variable.
  3. Run the Connect-VSBVirtualLab cmdlet. Set the $VLab01 variable as the VirtualLab parameter value.

Related Commands

Find-VSBVirtualLab

Page updated 3/11/2024

Page content applies to build 12.2.0.334