New-VsanDirectDisk Command | Vmware PowerCLI Reference


This cmdlet creates a vSAN Direct disk from a specified hard disk that is not a part of any existing vSAN disk group. You can use vSAN Direct disk for direct access from cloud-native applications that require stateful storage. This cmdlet is not supported in a vSAN ESA enabled cluster. You can use this cmdlet starting from vSAN 7.0 Update 1.


-DiskCanonicalName < String >
-VMHost < VMHost >
[-RunAsync ]
[-Server < VIServer[] > ]


Required Parameter Name Type Position Features Description
DiskCanonicalName String named
Specifies the canonical name of a hard disk from which to create a vSAN direct disk.
VMHost VMHost named
  • pipeline
Specifies the VMHost from which to create vSAN Direct disks.
optional RunAsync SwitchParameter named
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 vSphere PowerCLI console.
optional Server VIServer[] named
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.




Example 1

New-VsanDirectDisk -diskcanonicalname "mpx.vmhba0:C0:T1:L0" -vmhost ""

Creates a new vSAN Direct disk with the specified canonical name on the specified host.

Related Commands


This cmdlet retrieves vSAN Direct disks based on the specified filters.

This cmdlet creates a vSAN Direct disk from a specified hard disk.

This cmdlet removes vSAN Direct disks from a vSAN cluster.