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

Set-AzureRole

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Sets the number of instances of a Microsoft Azure role to run.

Syntax

Set-AzureRole [-ServiceName] [-Slot] [-RoleName] [-Count] [<CommonParameters>]

Detailed Description

The Set-AzureRole cmdlet sets the number of instances of a specified role to run in a Microsoft Azure deployment.

Parameters

-ServiceName <String>

Specifies the name of the Microsoft Azure service.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Slot <String>

Specifies the deployment environment of the deployment to be modified. Choices are "Production" or "Staging".

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-RoleName <String>

Specifies the name of the role to set the number of instances for.

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Count <Int32>

Specifies the number of role instances to run.

Aliases

None

Required?

true

Position

3

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

This command sets the "MyTestRole3" role running in production on the "MySvc1" service to three instances.

PS C:\> C:\PS>Set-AzureRole –ServiceName "MySvc1" –Slot "Production" –RoleName "MyTestRole3" –Count 3