PowerCLI Reference

New-VsanDisk

Synopsis

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

Syntax

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

Related Commands

Online Version
Get-VsanDisk
Remove-VsanDisk

Detailed Description

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

Parameters

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

Notes

Works only with vCenter Server 5.5 or later.

Examples

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