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
 

Add-AzureWorkerRole

Add-AzureWorkerRole

microsoft.windowsazure.commands.dll

Synopsis

Creates scaffolding for a custom worker role

Syntax

Add-AzureWorkerRole [-Name] [-Instances] [-TemplateFolder] [<CommonParameters>]

Detailed Description

Creates scaffolding for a custom worker role

Parameters

-Name <String>

The name of the worker role, determines the name of the directory containing the scaffolding for the custom application that will be hosted in the worker role, default is WorkerRole# Where # is the number of Worker roles in the service

Aliases

None

Required?

false

Position

1

Default value

WorkerRole1

Accept pipeline input?

false

Accept wildcard characters?

false

-Instances <Int32>

The number of role instances for this worker role, default is 1

Aliases

None

Required?

false

Position

2

Default value

1

Accept pipeline input?

false

Accept wildcard characters?

false

-TemplateFolder <String>

The scaffolding template folder used to create the worker role

Aliases

None

Required?

false

Position

3

Default value

WorkerRole1

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

node-dev, php-dev, python-dev

Examples

-------------- Default --------------

C:\PS>

Adds a Microsoft Azure worker role with the default configuration (Name = "Workerole1", Instances = 1)

Add-AzureWorkerRole

-------------- Single Instance Worker Role --------------

C:\PS>

Adds scaffolding for a single worker role named "MyWorkerRole" to the current application

Add-AzureWorkerRole -Name MyWorkerRole

-------------- Multiple Instance Worker Role --------------

C:\PS>

Adds scaffolding for a new worker role named "MyWorkerRole" to the current application, with a role instance count of 2

Add-AzureWorkerRole MyWorkerRole -I 2

-------------- Create worker role with custom scaffolding --------------

C:\PS>

Adds scaffolding for a new worker role named "MyWorkerRole" to the current application, with custom scaffolding .\MyWorkerRoleTemplate

Add-AzureWorkerRole MyWorkerRole -TemplateFoldr .\MyWorkerRoleTemplate

New-AzureServiceProject
Add-AzureWorkerRole