Get-VsanFaultDomain Command | Vmware PowerCLI Reference

Get-VsanFaultDomain

This cmdlet retrieves vSAN fault domains based on name or ID filter.

Syntax

Get-VsanFaultDomain
[-Cluster < Cluster[] > ]
[-Name < String[] > ]
[-Server < VIServer[] > ]
[-VMHost < VMHost[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Cluster Cluster[] named
  • pipeline
  • wildcards
Specifies the vSAN cluster to which the fault domain belongs.
optional Name String[] named
  • wildcards
Filters the retrieved vSAN fault domains by name.
optional Server VIServer[] named
  • wildcards
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
  • pipeline
  • wildcards
Specifies the list of virtual machine hosts to filter the vSAN fault domains. Filters the fault domains that contain any of the given hosts.
Get-VsanFaultDomain
-Id < String[] >
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Id String[] named
Filters the retrieved vSAN fault domains by ID.
optional Server VIServer[] named
  • wildcards
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.VsanFaultDomain

Examples

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.