Syntax
Get-VsanDiskGroup [-Cluster <Cluster[]>] [[-Name] <String[]>] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet retrieves vSAN disk groups in a cluster or a host, by ID, name, or the canonical name of a disk within the disk group.Parameters
Return Type
Zero or more VsanDiskGroup objectsNotes
Works only with vCenter Server 5.5 or later.Examples
-------------- Example 1 --------------
Get-VsanDiskGroup -DiskCanonicalName "DiskCanonicalName" -VMHost $vmHost
Retrieves all vSAN disk groups that contain a disk with canonical name "DiskCanonicalName" from the $vmHost virtual machine host.
-------------- Example 2 --------------
Get-VsanDiskGroup -Name "MyVsanDiskGroup" -Cluster $cluster
Retrieves all vSAN disk groups named "MyVsanDiskGroup" from the $cluster cluster.
-------------- Example 3 --------------
Get-VsanDiskGroup -Id "MyVsanDiskGroupId"
Retrieves the vSAN disk group with ID "MyVsanDiskGroupId".