Syntax
Remove-VmcSddcHost [-Confirm] -HostCount <Int32> [-RunAsync] -Sddc <VmcSddc[]> [-Server <CisServer[]>] [-WhatIf] [<CommonParameters>]Related Commands
New-VmcSddcDetailed Description
This cmdlet removes hosts from a VMware Cloud on AWS software-defined data center (SDDC)Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | False | |
HostCount | Int32 | Specifies the number of the host that you want to remove. | true | False | |
RunAsync | SwitchParameter | 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. | false | False | |
Sddc | VmcSddc[] | Specifies the SDDC. | true | True (ByValue) | |
Server | CisServer[] | Specifies the VMware Cloud on AWS servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-Vmc cmdlet. | false | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
System.ObjectNotes
Examples
-------------------------- Example 1 --------------------------
Remove-VmcSddcHost -Sddc $SDDC -HostCount 2
Removes two hosts from the $SDDC.
-------------------------- Example 2 --------------------------
Remove-VmcSddcHost -Sddc $SDDC -HostCount 2 -RunAsync
Removes asynchronously two hosts from the $SDDC.