az appservice ase

Manage App Service Environments v2.

Commands

az appservice ase create

Create app service environment.

az appservice ase delete

Delete app service environment.

az appservice ase list

List app service environments.

az appservice ase list-addresses

List VIPs associated with an app service environment.

az appservice ase list-plans

List app service plans associated with an app service environment.

az appservice ase show

Show details of an app service environment.

az appservice ase update

Update app service environment.

az appservice ase create

Create app service environment.

az appservice ase create --name
                         --resource-group
                         --subnet
                         [--force-network-security-group {false, true}]
                         [--force-route-table {false, true}]
                         [--front-end-scale-factor]
                         [--front-end-sku {I1, I2, I3}]
                         [--ignore-network-security-group {false, true}]
                         [--ignore-route-table {false, true}]
                         [--ignore-subnet-size-validation {false, true}]
                         [--location]
                         [--no-wait]
                         [--subscription]
                         [--virtual-ip-type {External, Internal}]
                         [--vnet-name]

Examples

Create Resource Group, vNet and app service environment with default values.

az group create -g MyResourceGroup --location westeurope

az network vnet create -g MyResourceGroup -n MyVirtualNetwork \
  --address-prefixes 10.0.0.0/16 --subnet-name MyAseSubnet --subnet-prefixes 10.0.0.0/24

az appservice ase create -n MyAseName -g MyResourceGroup --vnet-name MyVirtualNetwork \
  --subnet MyAseSubnet

Create External app service environments with large front-ends and scale factor of 10 in existing resource group and vNet.

az appservice ase create -n MyAseName -g MyResourceGroup --vnet-name MyVirtualNetwork \
  --subnet MyAseSubnet --front-end-sku I3 --front-end-scale-factor 10 \
  --virtual-ip-type External

Create vNet and app service environment, but do not create network security group and route table in existing resource group.

az network vnet create -g MyResourceGroup -n MyVirtualNetwork \
  --address-prefixes 10.0.0.0/16 --subnet-name MyAseSubnet --subnet-prefixes 10.0.0.0/24

az appservice ase create -n MyAseName -g MyResourceGroup --vnet-name MyVirtualNetwork \
  --subnet MyAseSubnet --ignore-network-security-group --ignore-route-table

Create vNet and app service environment in a smaller than recommended subnet in existing resource group.

az network vnet create -g MyResourceGroup -n MyVirtualNetwork \
  --address-prefixes 10.0.0.0/16 --subnet-name MyAseSubnet --subnet-prefixes 10.0.0.0/26

az appservice ase create -n MyAseName -g MyResourceGroup --vnet-name MyVirtualNetwork \
  --subnet MyAseSubnet --ignore-subnet-size-validation

Required Parameters

--name -n

Name of the app service environment.

--resource-group -g

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

--subnet

Name or ID of existing subnet. To create vnet and/or subnet use az network vnet [subnet] create.

Optional Parameters

--force-network-security-group

Override network security group for subnet.

accepted values: false, true
--force-route-table

Override route table for subnet.

accepted values: false, true
--front-end-scale-factor

Scale of front ends to app service plan instance ratio.

default value: 15
--front-end-sku

Size of front end servers.

accepted values: I1, I2, I3
default value: I1
--ignore-network-security-group

Configure network security group manually.

accepted values: false, true
--ignore-route-table

Configure route table manually.

accepted values: false, true
--ignore-subnet-size-validation

Do not check if subnet is sized according to recommendations.

accepted values: false, true
--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--no-wait

Do not wait for the long-running operation to finish.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--virtual-ip-type

Specify if app service environment should be accessible from internet.

accepted values: External, Internal
default value: Internal
--vnet-name

Name of the vNet. Mandatory if only subnet name is specified.

az appservice ase delete

Delete app service environment.

az appservice ase delete --name
                         [--no-wait]
                         [--resource-group]
                         [--subscription]
                         [--yes]

Examples

Delete app service environment.

az appservice ase delete -n MyAseName

Required Parameters

--name -n

Name of the app service environment.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--yes -y

Do not prompt for confirmation.

az appservice ase list

List app service environments.

az appservice ase list [--query-examples]
                       [--resource-group]
                       [--subscription]

Examples

List all app service environments in subscription.

az appservice ase list

List all app service environment in resource group.

az appservice ase list --resource-group MyResourceGroup

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az appservice ase list-addresses

List VIPs associated with an app service environment.

az appservice ase list-addresses --name
                                 [--resource-group]
                                 [--subscription]

Examples

List VIPs for an app service environments.

az appservice ase list-addresses --name MyAseName

Required Parameters

--name -n

Name of the app service environment.

Optional Parameters

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az appservice ase list-plans

List app service plans associated with an app service environment.

az appservice ase list-plans --name
                             [--resource-group]
                             [--subscription]

Examples

List app service plans for an app service environments.

az appservice ase list-plans --name MyAseName

Required Parameters

--name -n

Name of the app service environment.

Optional Parameters

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az appservice ase show

Show details of an app service environment.

az appservice ase show --name
                       [--query-examples]
                       [--resource-group]
                       [--subscription]

Examples

Show app service environment.

az appservice ase show --name MyAseName

Required Parameters

--name -n

Name of the app service environment.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az appservice ase update

Update app service environment.

az appservice ase update --name
                         [--front-end-scale-factor]
                         [--front-end-sku {I1, I2, I3}]
                         [--no-wait]
                         [--resource-group]
                         [--subscription]

Examples

Update app service environment with medium front-ends and scale factor of 10.

az appservice ase update -n MyAseName -g MyResourceGroup --front-end-sku I2 \
  --front-end-scale-factor 10

Required Parameters

--name -n

Name of the app service environment.

Optional Parameters

--front-end-scale-factor

Scale of front ends to app service plan instance ratio between 5 and 15.

--front-end-sku

Size of front end servers.

accepted values: I1, I2, I3
--no-wait

Do not wait for the long-running operation to finish.

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.