< Back

Suspend-VsphereVm

Sat Jan 18, 2020 9:38 am

NAME Suspend-VsphereVm



SYNOPSIS

Suspends a running VM.





SYNTAX

Suspend-VsphereVm -InputObject <PSObject[]> -Connection <Hashtable> [<CommonParameters>]



Suspend-VsphereVm -VmId <String[]> -Connection <Hashtable> [<CommonParameters>]





DESCRIPTION

Suspends a running VM.





PARAMETERS

-InputObject <PSObject[]>

Object representing the VM that is to be suspended. Use Get-VsphereObject to retrieve input object.



Required? true

Position? named

Default value

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Connection <Hashtable>

Specifies connection information to the vCenter server. For example:

@{ServerUrl='<vCenter Server URL>';User='<user>';Password='<password>';LicenseKey=<license

key>;SkipCertificateValidation=$false}



Required? true

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-VmId <String[]>

ID (managed object reference) of the VM that is to be suspended.



Required? true

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.Management.Automation.PSObject[]







OUTPUTS

System.String

ID (managed object reference) of the VM that was suspended.







RELATED LINKS