Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Start-WAPackVM
Collapse the table of content
Expand the table of content

Start-WAPackVM

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

Start-WAPackVM

Starts a virtual machine.

Syntax

Parameter Set: FromVirtualMachineObject
Start-WAPackVM [-VM] <VirtualMachine> [[-PassThru]] [ <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 Start-WAPackVM cmdlet starts 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

-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: Start 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 starts the virtual machine stored in $VirtualMachine.


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

Related topics

Show:
© 2015 Microsoft