Syntax
Get-VsanDisk [[-CanonicalName] <String[]>] [-Server <VIServer[]>] [-VsanDiskGroup <VsanDiskGroup[]>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet retrieves the host disks that belong to a vSAN 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 vSAN disks with canonical name "DiskCanonicalName" from the $vmHost virtual machine host.
-------------------------- Example 2 --------------------------
Get-VsanDisk -CanonicalName "DiskCanonicalName" -VsanDiskGroup $vsanDiskGroup
Retrieves all vSAN disks with canonical name "DiskCanonicalName" from the $vsanDiskGroup vSAN disk group.
-------------------------- Example 3 --------------------------
Get-VsanDisk -Id "MyVsanDiskId"
Retrieves the vSAN disk with ID "MyVsanDiskId".