PowerCLI Reference



This cmdlet adds a host SCSI disk to a vSAN disk group.


New-VsanDisk -CanonicalName <String> [-RunAsync] -VsanDiskGroup <VsanDiskGroup> [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version

Detailed Description

This cmdlet adds a host SCSI disk to a vSAN disk group.


NameTypeDescriptionRequired?Pipeline InputDefault Value
CanonicalNameStringSpecifies the canonical name of the host SCSI disk that is added to the group.trueFalse
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
RunAsyncSwitchParameterIndicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter run "help About_RunAsync" in the VMware PowerCLI console.falseFalse
VsanDiskGroupVsanDiskGroupSpecifies the disk group that the disk is added to.trueTrue (ByValue)
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

The newly created VsanDisk object


Works only with vCenter Server 5.5 or later.


-------------------------- Example 1 --------------------------

New-VsanDisk -CanonicalName "DiskCanonicalName" -VsanDiskGroup $vsanDiskGroup

Creates a new vSAN disk and adds the disk to the $vsanDiskGroup vSAN disk group.

Copyright © VMware, Inc. All rights reserved.