Editar

Compartilhar via


Update-AzFunctionAppPlan

Updates a function app service plan.

Syntax

Update-AzFunctionAppPlan
      -ResourceGroupName <String>
      -Name <String>
      [-SubscriptionId <String>]
      [-Sku <String>]
      [-MaximumWorkerCount <Int32>]
      [-MinimumWorkerCount <Int32>]
      [-Force]
      [-Tag <Hashtable>]
      [-DefaultProfile <PSObject>]
      [-NoWait]
      [-AsJob]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzFunctionAppPlan
      [-Sku <String>]
      [-MaximumWorkerCount <Int32>]
      [-MinimumWorkerCount <Int32>]
      [-Force]
      [-Tag <Hashtable>]
      -InputObject <IAppServicePlan>
      [-DefaultProfile <PSObject>]
      [-NoWait]
      [-AsJob]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Updates a function app service plan.

Examples

Example 1: Update an app service plan to EP2 sku with twenty maximum workers.

Update-AzFunctionAppPlan -ResourceGroupName MyResourceGroupName `
                         -Name MyPremiumPlan `
                         -MaximumWorkerCount 20 `
                         -Sku EP2 `
                         -Force

This command updates an app service plan to EP2 sku with twenty maximum workers.

Parameters

-AsJob

Run the command as a job.

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the cmdlet to update the function app plan without prompting for confirmation.

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

-InputObject

To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

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

-MaximumWorkerCount

The maximum number of workers for the app service plan.

Type:Int32
Aliases:MaxBurst
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MinimumWorkerCount

The minimum number of workers for the app service plan.

Type:Int32
Aliases:MinInstances
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of the App Service plan.

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

-NoWait

Run the command asynchronously.

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

-ResourceGroupName

Name of the resource group to which the resource belongs.

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

-Sku

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

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

-SubscriptionId

The Azure subscription ID.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Tag

Resource tags.

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

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

IAppServicePlan

Outputs

IAppServicePlan