Export (0) Print
Expand All
Expand Minimize

Stop-WAPackVM

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Stop-WAPackVM

Stops a virtual machine.

Syntax

Parameter Set: FromVirtualMachineObject
Stop-WAPackVM [-VM] <VirtualMachine> [[-PassThru]] [-Shutdown] [ <CommonParameters>]




Detailed Description

These topics are deprecated and will be removed in the future. For the updated topics, see Azure WAPack Cmdlets. This topic describes the cmdlet in the 0.8.1 version of the Microsoft Azure PowerShell module. To find out the version of the module you're using, from the Azure PowerShell console, type (get-module azure).version.

The Stop-WAPackVM cmdlet stops a virtual machine.

Parameters

-PassThru

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

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Shutdown

Indicates that the cmdlet shuts down the operating system of the virtual machine.


Aliases

none

Required?

false

Position?

named

Default Value

none

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

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Stop 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 stops the virtual machine stored in $VirtualMachine.


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

Related topics

Show:
© 2015 Microsoft