Add-VmcSddcHost

This cmdlet adds hosts to a VMware Cloud on AWS software-defined data center (SDDC). If no cluster is specified, the host is added to the default cluster of the SDDC. If the cluster is specified, the host is added to that cluster.

Syntax

-HostCount  <Int32>
-Sddc  <VmcSddc[]>
[-RunAsync]
[-Server  <CisServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
HostCount
Int32 named Specifies the number of the host that you want to add.
required
Sddc
VmcSddc[] named
  • pipeline
  • Specifies the SDDC.
    optional
    RunAsync
    SwitchParameter named Indicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter, run "help About_RunAsync" in the VMware PowerCLI console.
    optional
    Server
    CisServer[] named
  • wildcards
  • Specifies the VMware Cloud on AWS servers on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-Vmc cmdlet.

    -Cluster  <VmcSddcCluster[]>
    -HostCount  <Int32>
    [-RunAsync]
    [-Server  <CisServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Cluster
    VmcSddcCluster[] named
  • pipeline
  • Specifies the cluster.
    required
    HostCount
    Int32 named Specifies the number of the host that you want to add.
    optional
    RunAsync
    SwitchParameter named Indicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter, run "help About_RunAsync" in the VMware PowerCLI console.
    optional
    Server
    CisServer[] named
  • wildcards
  • Specifies the VMware Cloud on AWS servers on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-Vmc cmdlet.

    Output

    Examples


    Example 1

    Add-VmcSddcHost -Sddc $sddc -HostCount 2

    Adds two hosts to the default cluster of the specified $sddc SDDC.

    Example 2

    Add-VmcSddcHost -Sddc $sddc -HostCount 2 -RunAsync

    Adds asynchronously two hosts to the default cluster of the specified $sddc SDDC.

    Example 3

    Add-VmcSddcHost -Cluster $cluster -HostCount 2

    Adds two hosts to the specified $cluster cluster.

    Related Commands

    Feedback

    Was this page helpful?