To help you get started with VMware PowerCLI , this documentation provides a set of sample scripts that illustrate basic and advanced tasks in VMware vSAN™ management.
What to read next
Create a vSAN Datastore You can create vSAN disk groups on standalone hosts and add the hosts to a vSAN -enabled cluster to form a vSAN datastore. You can then create a virtual machine on the vSAN datastore and assign a storage policy to the virtual machine and its hard disk.
Modify a vSAN Datastore You can add or remove local disks from existing vSAN disk groups or remove entire vSAN disk groups.
Create a vSAN Stretched Cluster You can create a vSAN stretched cluster with a witness node. You can then create a vSAN storage policy and enable performance service on the vSAN cluster.
Enable a vSAN File Service With PowerCLI , you can enable a vSAN file service.
Create a vSAN File Service Domain With PowerCLI , you can create a vSAN file service domain.
Create a vSAN File Share With PowerCLI , you can create a vSAN file share.
Create a vSAN ESA-Enabled Cluster Starting from VMware PowerCLI 13.0.0 and vSAN 8.0, you can activate vSAN ESA (Express Storage Architecture) and manage storage pools on your clusters.
Mount and Unmount Remote vSAN Datastores Starting from VMware PowerCLI 12.7 and vSAN 7.0 Update 1, you can mount and unmount remote vSAN datastores to your vSAN -enabled clusters.