Syntax
Get-VsanDisk [-Server <VIServer[]>] [-VsanDiskGroup <VsanDiskGroup[]>] [[-CanonicalName] <String[]>] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet retrieves the host disks that belong to a Virtual SAN disk group. The cmdlet retrieves both SSD and HDD types of disks.Parameters
Return Type
Zero or more VsanDisk objectsNotes
Works only with vCenter Server 5.5 or later.Examples
-------------- Example 1 --------------
Get-VsanDisk -CanonicalName "DiskCanonicalName" -VMHost $vmHost
Retrieves all Virtual SAN disks with canonical name "DiskCanonicalName" from the $vmHost virtual machine host.
-------------- Example 2 --------------
Get-VsanDisk -CanonicalName "DiskCanonicalName" -VsanDiskGroup $vsanDiskGroup
Retrieves all Virtual SAN disks with canonical name "DiskCanonicalName" from the $vsanDiskGroup Virtual SAN disk group.
-------------- Example 3 --------------
Get-VsanDisk -Id "MyVsanDiskId"
Retrieves the Virtual SAN disk with ID "MyVsanDiskId".