VsanH Category | Vmware PowerCLI Reference

vSAN H Category

Cmdlets are usually implemented around resource operations. The four basic operations are CREATE, READ, UPDATE and DELETE. This set of operations is known as CRUD. Most of the cmdlets support CRUD which are respectively cmdlets that start with the New/Get/Set/Remove cmdlet verbs but they also may have additional operations

Step 1: Retrieve a object by running a Get command

You can READ objects by using Get-VsanHCIMeshDatastore cmdlet. See example below:

# Retrieves a vSAN HCI Mesh datastore from the specified HCI Mesh datastore source.

$ds = Get-VsanHCIMeshDatastoreSource -VCHost ('10.161.94.0') Get-VsanHCIMeshDatastore -VsanHCIMeshDatastoresource $ds

Step 2 : Run commands from the CRUD group

You can CREATE objects by using New-VsanHCIMeshDatastoreSource cmdlet. See example below:

# Creates a new vSAN HCI Mesh datastore source for the local vCenter Server from the specified remote vCenter Server.

New-VsanHCIMeshDatastoreSource -User '[email protected]' -VCHost '10.186.46.61' -Password 'IDRJ*tvu:k5g8MjO'
You can UPDATE objects by using Update-VsanHclDatabase cmdlet. See example below:

# Updates the vSAN HCL database on the vSphere server by using the content of the "LocalHclDbFilepath" file.

Update-VsanHclDatabase -FilePath "LocalHclDbFilepath"
You can REMOVE objects by using Remove-VsanHCIMeshDatastoreSource cmdlet. See example below:

# Removes the specified vSAN HCI Mesh datastore source from the specified vCenter Server.

$ds = Get-VsanHCIMeshDatastoreSource -VCHost ('10.186.46.61') Remove-VsanHCIMeshDatastoreSource -User '[email protected]' -VsanHCIMeshDatastoreSource $ds -Password 'IDRJ*tvu:k5g8MjO'

Step 3: Explore More Related Commands:


Get-VsanHCIMeshDatastoreSource This cmdlet retrieves vSAN HCI Mesh datastore sources based on the specified filters.
New-VsanHealthCheckThreshold This cmdlet creates a vSAN health check threshold object locally. This cmdlet is used to set a capacity threshold in Set-VsanClusterConfiguration.