## PowerCLI Reference

# Test-VsanVMCreation

## Synopsis

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

Syntax

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

Related Commands

Online version

Detailed Description

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

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
Cluster | Cluster[] | Specifies the clusters on which you want to run a vSAN virtual machine creation test. | true | true (ByValue)
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | false
TimeoutSeconds | Int32 | Specifies the timeout for the virtual machine creation test in seconds. The default value is 120 seconds. | false | false
UseCache | SwitchParameter | 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. | false | false

Return Type

VsanClusterVMCreationTestResult objects representing the result of the test run

Notes

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.

Copyright © VMware, Inc. All rights reserved.