Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Suspend-WAPackVM

Suspend-WAPackVM

microsoft.windowsazure.commands.dll

Synopsis

Suspends a virtual machine.

Syntax

Suspend-WAPackVM [-VM] [-PassThru] [<CommonParameters>]

Detailed Description

The Suspend-WAPackVM cmdlet suspends a virtual machine.

Parameters

-PassThru <SwitchParameter>

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Aliases

None

Required?

false

Position

2

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-VM <VirtualMachine>

Specifies a virtual machine. To obtain a virtual machine, use the Get-WAPackVM cmdlet.

Aliases

None

Required?

true

Position

1

Default value

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

false

Input Type


Return Type


Notes

None

Examples

Example 1: Suspend a virtual machine

The first command gets the virtual machine named ContosoV126 by using the Get-WAPackVM cmdlet, and then stores that object in the $VirtualMachine variable.

The second command suspends the virtual machine stored in $VirtualMachine.

PS C:\>$VirtualMachine = Get-WAPackVM -Name "ContosoV126"PS C:\> Suspend-WAPackVM -VM $VirtualMachine

Online Version
Get-WAPackVM
New-WAPackVM
Remove-WAPackVM
Restart-WAPackVM
Resume-WAPackVM
Set-WAPackVM
Start-WAPackVM
Stop-WAPackVM