## PowerCLI Reference

# New-VsanDisk

## Synopsis

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

Syntax

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

Related Commands

Online version
Get-VsanDisk
Remove-VsanDisk

Detailed Description

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

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
CanonicalName | String | Specifies the canonical name of the host SCSI disk that is added to the group. | true | false
Confirm | SwitchParameter | If 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. | false | false
RunAsync | SwitchParameter | Indicates 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. | false | false
VsanDiskGroup | VsanDiskGroup | Specifies the disk group that the disk is added to. | true | true (ByValue)
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

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.