< Back

New-AzureRmAppServicePlan

Tue Jan 29, 2019 10:12 pm

NAME New-AzureRmAppServicePlan



SYNOPSIS

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





SYNTAX

New-AzureRmAppServicePlan [-AppServicePlan] <ServerFarmWithRichSku> [-Location] <String> [[-Tier] {Free | Shared | Basic | Standard | Premium |

PremiumV2}] [[-NumberofWorkers] <Int32>] [[-WorkerSize] {Small | Medium | Large | ExtraLarge}] [[-AseName] <String>] [[-AseResourceGroupName]

<String>] [-DefaultProfile <IAzureContextContainer>] [-PerSiteScaling <Boolean>] [-AsJob] [<CommonParameters>]



New-AzureRmAppServicePlan [-ResourceGroupName] <String> [-Name] <String> [-Location] <String> [[-Tier] {Free | Shared | Basic | Standard | Premium

| PremiumV2}] [[-NumberofWorkers] <Int32>] [[-WorkerSize] {Small | Medium | Large | ExtraLarge}] [[-AseName] <String>] [[-AseResourceGroupName]

<String>] [-DefaultProfile <IAzureContextContainer>] [-PerSiteScaling <Boolean>] [-AsJob] [<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.





PARAMETERS

-AppServicePlan <ServerFarmWithRichSku>

App Service Plan Object



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-AseName <String>

App Service Environment Name



Required? false

Position? 6

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-AseResourceGroupName <String>

App Service Environment Resource Group Name



Required? false

Position? 7

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Location <String>

Location



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

App Service Plan Name



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-NumberofWorkers <Int32>

Number Of Workers



Required? false

Position? 4

Default value 1

Accept pipeline input? False

Accept wildcard characters? false



-PerSiteScaling <Boolean>

Whether or not to enable Per Site Scaling



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Tier <String>

Tier



Required? false

Position? 3

Default value Free

Accept pipeline input? False

Accept wildcard characters? false



-WorkerSize <String>

Size of web worker



Required? false

Position? 5

Default value Small

Accept pipeline input? False

Accept wildcard characters? false



-AsJob [<SwitchParameter>]

Run cmdlet in the background



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

ServerFarmWithRichSku

Parameter 'AppServicePlan' accepts value of type 'ServerFarmWithRichSku' from the pipeline





OUTPUTS

Microsoft.Azure.Management.WebSites.Models.ServerFarmWithRichSku







NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... erviceplan

Get-AzureRmAppServicePlan

Remove-AzureRmAppServicePlan

Set-AzureRmAppServicePlan