New-VsanHCIMeshDatastoreSource Command | Vmware PowerCLI Reference

New-VsanHCIMeshDatastoreSource

Creates a new vSAN HCI Mesh datastore source for the local vCenter Server from a remote vCenter Server. You can use this cmdlet starting from vSAN 8.0 Update 1.

Syntax

New-VsanHCIMeshDatastoreSource
-Password < String >
-User < String >
-VCHost < String >
[-RunAsync ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Password String named
Specifies the password to log in to the remote vCenter.
required
User String named
Specifies the user name to log in to the remote vCenter.
required
VCHost String named
Specifies the IP address or FQDN of the remote vCenter Server.
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.

Output

VMware.VimAutomation.Storage.Types.V1.Vsan.VsanHCIMeshDatastoreSource

Examples

Example 1

New-VsanHCIMeshDatastoreSource -User '[email protected]' -VCHost '10.186.46.61' -Password 'IDRJ*tvu:k5g8MjO'

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

Related Commands

VsanHCIMeshDatastore

This cmdlet retrieves vSAN HCI Mesh datastores based on the specified filters.

VsanHCIMeshDatastoreSource

This cmdlet retrieves vSAN HCI Mesh datastore sources based on the specified filters.

This cmdlet creates a new vSAN HCI Mesh datastore source for the local vCenter Server from a remote vCenter Server.

This cmdlet removes a vSAN HCI Mesh datastore source with the specified information.

VsanHclDatabase

This cmdlet updates the vSAN hardware compatibility list (HCL) database.

VsanHealthCheckThreshold

This cmdlet creates a vSAN health check threshold object locally. This cmdlet is used to set a capacity threshold in Set-VsanClusterConfiguration.