Test-VsanVMCreation Command | Vmware PowerCLI Reference

Test-VsanVMCreation

This cmdlet runs a virtual machine creation test on the specified vSAN clusters and returns the test results.

Syntax

Test-VsanVMCreation
-Cluster < Cluster[] >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[-TimeoutSeconds < Int32 > ]
[-UseCache ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Cluster Cluster[] named
  • pipeline
  • wildcards
Specifies the clusters on which you want to run a vSAN virtual machine creation test.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
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.
optional TimeoutSeconds Int32 named
Specifies the timeout for the virtual machine creation test in seconds. The default value is 120 seconds.
optional UseCache SwitchParameter named
Indicates whether to get a cached result from the server. If specified, a test is not run on the server and the last result cached on the server side is returned. If not specified, a test is run on the server side and the result is returned.

Output

VMware.VimAutomation.Storage.Types.V1.Vsan.VsanVMCreationTestResult

Examples

Example 1

Test-VsanVMCreation -Cluster $cluster -TimeoutSeconds 150

Runs the virtual machine creation test with a timeout of 150 seconds on the $cluster vSAN cluster and returns the result of the test.

Example 2

Test-VsanVMCreation -Cluster $cluster -UseCache

Gets the result of the last virtual machine creation test run on the $cluster vSAN cluster.

Related Commands

VsanVMCreation

This cmdlet runs a virtual machine creation test on the specified vSAN clusters and returns the test results.