Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

New-AzFunctionAppPlan

Creates a function app service plan.

Syntax

Default (Default)

New-AzFunctionAppPlan
 -Name <String>
 -ResourceGroupName <String>
 -Location <String>
 [-SubscriptionId <String>]
 -Sku <String>
 [-MaximumWorkerCount <Int32>]
 [-MinimumWorkerCount <Int32>]
 [-Tag <Hashtable>]
 [-DefaultProfile <PSObject>]
 -WorkerType <String>
 [-NoWait]
 [-AsJob]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

Creates a function app service plan.

Examples

Example 1: Create a Windows premium app plan in West Europe with burst out capability up to 10 instances.

New-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName `
 -Name MyPremiumPlan `
 -Location WestEurope `
 -MinimumWorkerCount 1 `
 -MaximumWorkerCount 10 `
 -Sku EP1 `
 -WorkerType Windows

This command creates a Windows premium app plan in West Europe with burst out capability up to 10 instances.

Parameters

-AsJob

Run the command as a job.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-DefaultProfile

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

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

-Location

The location for the consumption plan.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-MaximumWorkerCount

The maximum number of workers for the app service plan.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False
Aliases:MaxBurst

Parameter sets

-MinimumWorkerCount

The minimum number of workers for the app service plan.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False
Aliases:MinInstances

Parameter sets

-Name

Name of the App Service plan.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-NoWait

Run the command asynchronously.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ResourceGroupName

Name of the resource group to which the resource belongs.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Sku

The plan sku. Valid inputs are: EP1, EP2, EP3

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-SubscriptionId

The Azure subscription ID.

Parameter properties

Type:String
Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

-Tag

Resource tags.

Parameter properties

Type:Hashtable
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

-WorkerType

The worker type for the plan. Valid inputs are: Windows or Linux.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IAppServicePlan


Feedback

Was this page helpful?