Add-AzurePHPWorkerRole

Creates the required files and configuration (sometimes referred to as scaffolding) for a PHP application that will be hosted in Azure through php.exe.

Syntax

Add-AzurePHPWorkerRole [[-Name] <String>] [[-Instances] <Int32>] [-Profile <AzureSMProfile>]
 [<CommonParameters>]

Description

powershell_prelim

Creates the required files and configuration (sometimes referred to as scaffolding) for a PHP application that will be hosted in Azure through php.exe.

Examples

1: Create a worker role with a single instance

PS C:\>Add-AzurePHPWorkerRole MyWorkerRole
This example adds the required files and configuration for a single worker role named "MyWorkerRole" to the current application.

2: Create a worker role with multiple instances

PS C:\>Add-AzurePHPWorkerRole MyWorkerRole -I 2
This example adds the required files and configuration for a new worker role to the current application, using the name "MyWorkerRole" with a role instance count of 2.

Parameters

-Name

Specifies the name of the worker role.
The name determines the folder name that contains the required files and configuration for the PHP service hosted in the worker role.
The default is WorkerRole1.

Type:String
Aliases:n
Required:False
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Instances

Specifies the number of role instances for this worker role.
The default is 1.

Type:Int32
Aliases:i
Required:False
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Profile

In-memory profile.

Type:AzureSMProfile
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False