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
 

New-WAPackQuickVM

New-WAPackQuickVM

microsoft.windowsazure.commands.dll

Synopsis

Creates a virtual machine based on a template.

Syntax

New-WAPackQuickVM [-Name] [-Template] [-VMCredential] [<CommonParameters>]

Detailed Description

The New-WAPackQuickVM cmdlet creates a virtual machine based on a template.

Parameters

-Name <String>

Specifies a name for the virtual machine.

Aliases

None

Required?

true

Position

named

Default value

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-Template <VMTemplate>

Specifies a template. The cmdlet creates a virtual machine based on the template that you specify. To obtain a template object, use the Get-WAPackVMTemplate cmdlet.

Aliases

None

Required?

true

Position

named

Default value

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-VMCredential <PSCredential>

Specifies the credential for the local Administrator account. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential.

Aliases

None

Required?

true

Position

named

Default value

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

None

Examples

Example 1: Create a virtual machine based on a template

The first command creates a PSCredential object, and then stores it in the $Credentials variable. The cmdlet prompts you for an account and password. For more information, type Get-Help Get-Credential.

The second command gets a template by using the Get-WAPackVMTemplate cmdlet. The command specifies the ID of a template. The command stores the template object in the $TemplateID variable.

The final command creates a virtual machine named VirtualMachine023. The command bases the virtual machine on the template stored in $TemplateId.

PS C:\>$Credentials = Get-Credential
PS C:\> $TemplateId = Get-WAPackVMTemplate -Id 66242D17-189F-480D-87CF-8E1D749998C8
PS C:\> New-WAPackQuickVM -Name "VirtualMachine023" -Template $TemplateId -VMCredential $Credentials

Online Version
New-WAPackVM
Get-WAPackVMTemplate