Get-VsanFaultDomain

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

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
optional
Cluster
Cluster[] named
  • wildcards
  • pipeline
  • 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
  • wildcards
  • pipeline
  • Specifies the list of virtual machine hosts to filter the vSAN fault domains. Filters the fault domains that contain any of the given hosts.

    -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

    Feedback

    Was this page helpful?