Get-VsanFaultDomain
This cmdlet retrieves vSAN fault domains based on name or ID filter.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional | Cluster | Cluster[] | named |
|
Specifies the vSAN cluster to which the fault domain belongs. |
optional | Name | String[] | named |
|
Filters the retrieved vSAN fault domains by name. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | VIServer[] | named |
|
Specifies the vCenter Server systems 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 Connect-VIServer. |
optional | VMHost | VMHost[] | named |
|
Specifies the list of virtual machine hosts to filter the vSAN fault domains. Filters the fault domains that contain any of the given hosts. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
Id | String[] | named |
|
Filters the retrieved vSAN fault domains by ID. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | VIServer[] | named |
|
Specifies the vCenter Server systems 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 Connect-VIServer. |
Output
VMware.VimAutomation.Storage.Types.V1.Vsan.VsanFaultDomainExamples
Example 1
Get-VsanFaultDomain -VMHost $vmHost
Retrieves the vSAN fault domain which contains the $vmHost virtual machine host.
Example 2
Get-VsanFaultDomain -Cluster $cluster -Name "MyFaultDomain"
Retrieves the vSAN fault domain named "MyFaultDomain" from the $cluster vSAN cluster.
Related Commands
VsanFaultDomain
This cmdlet retrieves vSAN fault domains based on name or ID filter.
This cmdlet creates a new vSAN fault domain in a cluster with specified virtual machine hosts.
This cmdlet removes vSAN fault domains.
This cmdlet changes the configuration of a specified vSAN fault domain.