New-​Azure​Rm​App​Service​Plan

Creates an Azure App Service plan in a given Geo location.

Syntax

New-AzureRmAppServicePlan
   [-AppServicePlan] <ServerFarmWithRichSku>
   [-Location] <String>
   [[-Tier] <String>]
   [[-NumberofWorkers] <Int32>]
   [[-WorkerSize] <String>]
   [[-AseName] <String>]
   [[-AseResourceGroupName] <String>]
   [-PerSiteScaling <Boolean>]
   [<CommonParameters>]
New-AzureRmAppServicePlan
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-Location] <String>
   [[-Tier] <String>]
   [[-NumberofWorkers] <Int32>]
   [[-WorkerSize] <String>]
   [[-AseName] <String>]
   [[-AseResourceGroupName] <String>]
   [-PerSiteScaling <Boolean>]
   [<CommonParameters>]

Description

The New-AzureRmAppServicePlan cmdlet creates an Azure App Service plan in a given Geo location with the specified Tier, worker size, and number of workers.

Examples

Example 1: Create an App Service plan

PS C:\>New-AzureRmAppServicePlan -ResourceGroupName "Default-Web-WestUS" -Name "ContosoASP" -Location "West US" -Tier "Basic" -NumberofWorkers 2 -WorkerSize "Small"

This command creates an App Service plan named ContosoASP in the resource group named Default-Web-WestUS in Geo location West US. The command specifies a Basic Tier and allocates two small workers.

Required Parameters

-AppServicePlan

App Service Plan Object

Type:ServerFarmWithRichSku
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Location

Location

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

App Service Plan Name

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

Resource Group Name

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AseName

App Service Environment Name

Type:String
Position:6
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AseResourceGroupName

App Service Environment Resource Group Name

Type:String
Position:7
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NumberofWorkers

Number Of Workers

Type:Int32
Position:4
Default value:1
Accept pipeline input:False
Accept wildcard characters:False
-PerSiteScaling

Whether or not to enable Per Site Scaling

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Tier

Tier

Type:String
Parameter Sets:Free, Shared, Basic, Standard, Premium
Position:3
Default value:Free
Accept pipeline input:False
Accept wildcard characters:False
-WorkerSize

Size of web worker

Type:String
Parameter Sets:Small, Medium, Large, ExtraLarge
Position:5
Default value:Small
Accept pipeline input:False
Accept wildcard characters:False