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-AzureServiceProjectRole

Set-AzureServiceProjectRole

microsoft.windowsazure.commands.dll

Synopsis

Set the number of instances, vm size or the runtime version of a role

Syntax

Set-AzureServiceProjectRole [-RoleName] [-Instances] [<CommonParameters>]

Set-AzureServiceProjectRole [-RoleName] [-Runtime] [-Version] [<CommonParameters>]

Set-AzureServiceProjectRole [-RoleName] [-VMSize] [<CommonParameters>]

Detailed Description

Sets the number of role instances for the specified role.

Parameters

-RoleName <String>

The name of the web or worker role that is changing

Aliases

None

Required?

false

Position

1

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Instances <Int32>

The number of role instances for the specified web or worker role

Aliases

None

Required?

true

Position

2

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-VMSize <String>

The vm size of the role

Aliases

None

Required?

true

Position

2

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Runtime <String>

The runtime to add to the specified role

Aliases

None

Required?

true

Position

2

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Version <String>

The runtime version to add to the specified role

Aliases

None

Required?

true

Position

3

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

node-dev, php-dev, python

Examples

-------------- Web Role --------------

C:\PS>

Sets the number of instances for the web role named 'MyWebRole1' to 2

Set-AzureServiceProjectRole "MyWebRole" 2

-------------- Worker Role --------------

C:\PS>

Sets the role instance count for the worker role named "WorkerRole1" to 2

Set-AzureServiceProjectRole "MyWorkerRole1" 2

-------------- Add Node Runtime --------------

C:\PS>

Sets the node.exe runtime version for role "MyRole1" to 0.6.20.

Set-AzureServiceProjectRole MyRole1 node 0.6.20

-------------- Change Web Role VM Size to ExtraLarge--------------

C:\PS>

Sets VMSize for the web role named 'MyWebRole1' to ExtraLarge

Set-AzureServiceProjectRole "MyWebRole" -VMSize ExtraLarge

Add-AzureNodeWebRole
Add-AzureNodeWorkerRole
Set-AzureServiceProject
Get-AzureServiceProjectRoleRuntime