az appservice plan

Manage app service plans.

Commands

az appservice plan create Create an app service plan.
az appservice plan delete Delete an app service plan.
az appservice plan list List app service plans.
az appservice plan show Get the app service plans for a resource group or a set of resource groups.
az appservice plan update Update an app service plan.

az appservice plan create

Create an app service plan.

az appservice plan create --name
--resource-group
[--is-linux]
[--location]
[--number-of-workers]
[--sku {B1, B2, B3, D1, F1, FREE, P1, P1V2, P2, P2V2, P3, P3V2, S1, S2, S3, SHARED}]

Examples

Create a basic app service plan.

az appservice plan create -g MyResourceGroup -n MyPlan

Create a standard app service plan with with four Linux workers.

az appservice plan create -g MyResourceGroup -n MyPlan     --is-linux --number-of-workers 4 --sku S1

Required Parameters

--name -n
Name of the new app service plan.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--is-linux
Host webapp on Linux worker.
--location -l
Location. You can configure the default location using `az configure --defaults location=<location>`.
--number-of-workers
Number of workers to be allocated.
default value: 1
--sku
The pricing tiers, e.g., F1(Free), D1(Shared), B1(Basic Small), B2(Basic Medium), B3(Basic Large), S1(Standard Small), P1(Premium Small), P1V2(Premium V2 Small) etc.
accepted values: B1, B2, B3, D1, F1, FREE, P1, P1V2, P2, P2V2, P3, P3V2, S1, S2, S3, SHARED
default value: B1

az appservice plan delete

Delete an app service plan.

az appservice plan delete --name
--resource-group
[--yes]

Required Parameters

--name -n
The name of the app service plan.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--yes -y
Do not prompt for confirmation.

az appservice plan list

List app service plans.

az appservice plan list [--resource-group]

Examples

List all free tier App Service plans.

az appservice plan list --query "[?sku.tier=='Free']"

Optional Parameters

--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az appservice plan show

Get the app service plans for a resource group or a set of resource groups.

az appservice plan show --name
--resource-group

Required Parameters

--name -n
The name of the app service plan.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az appservice plan update

Update an app service plan.

az appservice plan update --name
--resource-group
[--add]
[--admin-site-name]
[--number-of-workers]
[--remove]
[--set]
[--sku {B1, B2, B3, D1, F1, FREE, P1, P1V2, P2, P2V2, P3, P3V2, S1, S2, S3, SHARED}]

Required Parameters

--name -n
The name of the app service plan.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--add
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty .
--admin-site-name
The name of the admin web app.
--number-of-workers
Number of workers to be allocated.
default value: 1
--remove
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
--set
Update an object by specifying a property path and value to set. Example: --set property1.property2=.
--sku
The pricing tiers, e.g., F1(Free), D1(Shared), B1(Basic Small), B2(Basic Medium), B3(Basic Large), S1(Standard Small), P1(Premium Small), P1V2(Premium V2 Small) etc.
accepted values: B1, B2, B3, D1, F1, FREE, P1, P1V2, P2, P2V2, P3, P3V2, S1, S2, S3, SHARED