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
 

Set-WAPackVMRole

Set-WAPackVMRole

microsoft.windowsazure.commands.dll

Synopsis

Changes the instance count property of a virtual machine role.

Syntax

Set-WAPackVMRole [-VMRole] [-InstanceCount] [<CommonParameters>]

Detailed Description

The Set-WAPackVMRole cmdlet changes the instance count property of a virtual machine role.

Parameters

-VMRole <VMRole>

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

Aliases

None

Required?

true

Position

1

Default value

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

false

-InstanceCount <InstanceCount>

Specifies the instance count for a virtual machine role.

Aliases

None

Required?

true

Position

2

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

None

Examples

Example 1: Specify the instance count for a virtual machine role

The first command gets the virtual machine role named ContosoVMRole01 by using the Get-WAPackVMRole cmdlet, and then stores that object in the $VMRole variable.

The second and final command sets the new instance count of the virtual machine role stored in $VMRole to 3.

          PS C:\>$VMRole = Get-WAPackVMRole -Name "ContosoVMRole01"
          PS C:\>Set-WAPackVMRole -VMRole $VMRole -InstanceCount 3
        

Get-WAPackVMRole
New-WAPackVMRole
Remove-WAPackVMRole