Add-VBRvCenter

In this article

    Short Description

    Adds vCenter Servers to the backup infrastructure.

    Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

    Syntax

    This cmdlet provides parameter sets that allow you to:

    • Add vCenter Servers using the account user name and password.

    Add-VBRvCenter [-Name] <string> [-User] <string> [-Password] <string> [-Port <int>] [-Description <string>] [-WhatIf] [-Confirm]  [<CommonParameters>]

    • Add vCenter Servers using credentials managed by <%VBR%.

    Add-VBRvCenter [-Name] <string> -Credentials <CCredentials> [-Port <int>] [-Description <string>] [-WhatIf] [-Confirm]  [<CommonParameters>]

    Detailed Description

    This cmdlet allows you to add a vCenter Server to the backup infrastructure.

    Parameters

    Parameter

    Description

    Type

    Required

    Position

    Accept Pipeline Input

    Name

    Specifies the full DNS name or IP address of the vCenter Server.

    String

    True

    1

    False

    User

    Specifies the user name that you want to use for authenticating with the vCenter Server.

    Note: The user name must be in the DOMAIN\username format.

    String

    True

    2

    False

    Password

    Specifies the password you want to use for authenticating with the vCenter Server.

    String

    True

    3

    False

    Credentials

    Specifies the credentials you want to use for authenticating with the vCenter Server.

    Accepts the CCredentials object. To get this object, run the Get-VBRCredentials cmdlet.

    True

    Named

    False

    Port

    Specifies the Web service port for connection to the vCenter Server.

    Default: 443

    Int

    False

    Named

    False

    Description

    Specifies the description of the vCenter Server.

    String

    False

    Named

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

    Examples

    Add-VBRvCenterExample 1. Adding vCenter to Backup Infrastructure Using Account User Name and Password

    This command adds the vc25.domain.local vCenter Server. The user name is Administrator and the password is Password.

    Add-VBRvCenter -Name "vc25.domain.local" -User "Domain\Administrator" -Password "Password" -Description "vcdev25 vCenter Server"

    Add-VBRvCenterExample 2. Adding vCenter to Backup Infrastructure Using Credentials credentials Managed by Veeam Backup & Replication

    This command adds the vc25.domain.local vCenter Server.

    $vc_administrator = Get-VBRCredentials

    Add-VBRvCenter -Name "vc25.domain.local" -Description "vcdev25 vCenter Server" -Credentials $vc_administrator

    Perform the following steps:

    1. Run the Get-VBRCredentials cmdlet. Save the result to the $vc_administrator variable.
    2. Run the Add-VBRvCenter cmdlet. Specify the following settings:
    • Specify the Name parameter value.
    • Specify the Description parameter value.
    • Set the $vc_administrator variable as the Credentials parameter value.

    Related Commands