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

Add-AzureNodeWorkerRole

microsoft.windowsazure.commands.dll

Synopsis

Creates scaffolding for a Node.js application which will be hosted in the cloud via node.exe

Syntax

Add-AzureNodeWorkerRole [-Name] [-Instances] [<CommonParameters>]

Detailed Description

Creates scaffolding for a Node.js application which will be hosted in the cloud via node.exe

Parameters

-Name <String>

The name of the worker role, determines the folder name that will contain the scaffolding for the node.js service hosted in the worker role

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

Input Type


Return Type


Notes

node-dev

Examples

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

C:\PS>

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

Add-AzureNodeWorkerRole

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

C:\PS>

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

Add-AzureNodeWorkerRole 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-AzureNodeWorkerRole MyWorkerRole -I 2

New-AzureServiceProject
Add-AzureNodeWebRole