VsanRemote Category | Vmware PowerCLI Reference

vSAN Remote 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 : Run commands from the CRUD group

You can UPDATE objects by using Add-VsanRemoteDatastore cmdlet. See example below:

# Adds a remote vSAN datastore to the specified cluster.

$cluster = Get-Cluster "ClientCluster" $remoteDatastore = Get-Datastore "Remote-vSAN-Datastore" Add-VsanRemoteDatastore -Cluster $cluster -RemoteDatastore $remoteDatastore
You can REMOVE objects by using Remove-VsanRemoteDatastore cmdlet. See example below:

# Removes a specific remote vSAN datastore "Remote-vSAN-DS" from the cluster.

$cluster = Get-Cluster "ClientCluster" $config = Get-VsanClusterConfiguration -Cluster $cluster $remoteDatastore = $config.RemoteDatastore | Where-Object { $_.Name -eq "Remote-vSAN-DS" } Remove-VsanRemoteDatastore -Cluster $cluster -RemoteDatastore $remoteDatastore