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
 

Restart-WAPackVM

Restart-WAPackVM

microsoft.windowsazure.commands.dll

Synopsis

Restarts virtual machines.

Syntax

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

Detailed Description

The Restart-WAPackVM cmdlet restarts virtual machines.

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

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

Get-WAPackVM
New-WAPackVM
Remove-WAPackVM
Resume-WAPackVM
Set-WAPackVM
Start-WAPackVM
Stop-WAPackVM
Suspend-WAPackVM