## PowerCLI Reference

# Get-VsanFaultDomain

## Synopsis

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

Syntax

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

Related Commands

Online version
New-VsanFaultDomain
Remove-VsanFaultDomain
Set-VsanFaultDomain

Detailed Description

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

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
Name | String[] | Filters the retrieved vSAN fault domains by name. | false | false
Cluster | Cluster[] | Specifies the vSAN cluster to which the fault domain belongs. | false | true (ByValue)
Id | String[] | Filters the retrieved vSAN fault domains by ID. | true | false
Server | VIServer[] | Specifies the vCenter Server systems 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 Connect-VIServer. | false | false
VMHost | VMHost[] | Specifies the list of virtual machine hosts to filter the vSAN fault domains. Filters the fault domains that contain any of the given hosts. | false | true (ByValue)

Return Type

Zero or more VsanFaultDomain objects

Notes

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.

Copyright © VMware, Inc. All rights reserved.