Syntax
Get-HAPrimaryVMHost [[-Cluster] <Cluster[]>] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online versionDetailed Description
On vCenter Server 5.0 and later, the cmdlet retrieves the master host of the specified HA cluster.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Cluster | Cluster[] | Specifies the clusters for which you want to retrieve the HA primary hosts. | false | true (ByValue) | |
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | false |
Return Type
Zero or more VMHost objectsNotes
Examples
-------------- Example 1 --------------
Get-Cluster | Get-HAPrimaryVMHost
Retrieves the HA primary hosts of the available cluster.
-------------- Example 2 --------------
Get-HAPrimaryVMHost Cluster
Retrieves the HA primary host of the cluster named Cluster.