< Back

Get-VsanFaultDomain

Sun Jan 19, 2020 7:16 pm

NAME Get-VsanFaultDomain



SYNOPSIS

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





SYNTAX

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

[<CommonParameters>]



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





DESCRIPTION

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





PARAMETERS

-Cluster <Cluster[]>

Specifies the vSAN cluster to which the fault domain belongs.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



-Id <String[]>

Filters the retrieved vSAN fault domains by ID.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String[]>

Filters the retrieved vSAN fault domains by name.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-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.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more VsanFaultDomain objects







NOTES









-------------------------- 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 LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... omain.html

New-VsanFaultDomain

Remove-VsanFaultDomain

Set-VsanFaultDomain