az appservice ase

管理 App Service 環境。

命令

名稱 Description 類型 狀態
az appservice ase create

建立 App Service 環境。

核心 GA
az appservice ase create-inbound-services

私用 DNS 內部區域 (ILB) App Service 環境。

核心 預覽版
az appservice ase delete

刪除 App Service 環境。

核心 GA
az appservice ase list

列出應用程式服務環境。

核心 GA
az appservice ase list-addresses

列出與 App Service 環境 v2 相關聯的 VIP。

核心 GA
az appservice ase list-plans

列出與 App Service 環境相關聯的 App Service 方案。

核心 GA
az appservice ase send-test-notification

在 App Service 環境 v3 中傳送測試升級通知。

核心 預覽版
az appservice ase show

顯示 App Service 環境的詳細數據。

核心 GA
az appservice ase update

更新 App Service 環境。

核心 GA
az appservice ase upgrade

升級 App Service 環境 v3。

核心 預覽版

az appservice ase create

建立 App Service 環境。

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}]
                         [--kind {ASEv2, ASEv3}]
                         [--location]
                         [--no-wait]
                         [--os-preference {Linux, Windows}]
                         [--virtual-ip-type {External, Internal}]
                         [--vnet-name]
                         [--zone-redundant {false, true}]

範例

使用預設值建立資源群組、虛擬網絡 和 App Service 環境 v3。

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 --kind asev3

在現有的資源群組和 虛擬網絡 中建立外部 App Service 環境 v3。

az appservice ase create -n MyAseName -g MyResourceGroup --vnet-name MyVirtualNetwork \
  --subnet MyAseSubnet --virtual-ip-type External --kind asev3

在小於現有資源群組的建議子網中,建立 虛擬網絡 和 App Service 環境 v3。

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 --kind asev3

使用預設值建立外部區域備援 App Service 環境 v3。

az appservice ase create -n MyASEv3Name -g ASEv3ResourceGroup \
  --vnet-name MyASEv3VirtualNetwork --subnet MyASEv3Subnet --kind asev3 \
  --zone-redundant --virtual-ip-type External

必要參數

--name -n

App Service 環境的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subnet

現有子網的名稱或標識碼。 若要建立 vnet 和/或子網,請使用 az network vnet [subnet] create

選擇性參數

--force-network-security-group

覆寫子網的網路安全組。 僅適用於 ASEv2。

接受的值: false, true
預設值: False
--force-route-table

覆寫子網的路由表。 僅適用於 ASEv2。

接受的值: false, true
預設值: False
--front-end-scale-factor

前端調整為App Service方案實例比例。 僅適用於 ASEv2。

預設值: 15
--front-end-sku

前端伺服器的大小。 僅適用於 ASEv2。

接受的值: I1, I2, I3
預設值: I1
--ignore-network-security-group

手動設定網路安全組。 僅適用於 ASEv2。

接受的值: false, true
預設值: False
--ignore-route-table

手動設定路由表。 僅適用於 ASEv2。

接受的值: false, true
預設值: False
--ignore-subnet-size-validation

請勿根據建議檢查子網的大小。

接受的值: false, true
預設值: False
--kind -k

指定 App Service 環境 版本。

接受的值: ASEv2, ASEv3
預設值: ASEv3
--location -l

位置。 來自的值: az account list-locations。 您可以使用 az configure --defaults location=<location> 設定預設位置。

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--os-preference

判斷 App Service 環境是否應該從 Linux 背景工作角色開始。 僅適用於 ASEv2。

接受的值: Linux, Windows
--virtual-ip-type

指定是否應該從因特網存取App Service環境。

接受的值: External, Internal
預設值: Internal
--vnet-name

vNet 的名稱。 如果只指定子網名稱,則為必要。

--zone-redundant

將 App Service 環境 設定為區域備援。 僅適用於 ASEv3。

接受的值: false, true
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az appservice ase create-inbound-services

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

私用 DNS 內部區域 (ILB) App Service 環境。

az appservice ase create-inbound-services --name
                                          --resource-group
                                          --subnet
                                          [--skip-dns {false, true}]
                                          [--vnet-name]

範例

建立 私用 DNS 區域和 A 記錄。

az appservice ase create-inbound-services -n MyASEName -g ASEResourceGroup \
  --vnet-name MyASEVirtualNetwork --subnet MyAseSubnet

必要參數

--name -n

App Service 環境的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--subnet

DNS 區域連結之現有子網的名稱或標識碼。 若要建立 vnet 和/或子網,請使用 az network vnet [subnet] create

選擇性參數

--skip-dns
已被取代

自變數 'skip_dns' 已被取代,並將在 '3.0.0' 版中移除。

請勿建立 私用 DNS 區域和 DNS 記錄。

接受的值: false, true
預設值: False
--vnet-name

vNet 的名稱。 如果只指定子網名稱,則為必要。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az appservice ase delete

刪除 App Service 環境。

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

範例

刪除 App Service 環境。

az appservice ase delete -n MyAseName

必要參數

--name -n

App Service 環境的名稱。

選擇性參數

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--yes -y

不提示確認。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az appservice ase list

列出應用程式服務環境。

az appservice ase list [--resource-group]

範例

列出訂用帳戶中的所有App Service環境。

az appservice ase list

列出資源群組中的所有App Service環境。

az appservice ase list --resource-group MyResourceGroup

選擇性參數

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az appservice ase list-addresses

列出與 App Service 環境 v2 相關聯的 VIP。

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

範例

列出 App Service 環境的 VIP。

az appservice ase list-addresses --name MyAseName

必要參數

--name -n

App Service 環境的名稱。

選擇性參數

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az appservice ase list-plans

列出與 App Service 環境相關聯的 App Service 方案。

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

範例

列出 App Service 環境的 App Service 方案。

az appservice ase list-plans --name MyAseName

必要參數

--name -n

App Service 環境的名稱。

選擇性參數

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az appservice ase send-test-notification

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

在 App Service 環境 v3 中傳送測試升級通知。

az appservice ase send-test-notification --name
                                         [--resource-group]

範例

在 App Service 環境 v3 中傳送測試升級通知。

az appservice ase send-test-notification -n MyAseV3Name -g MyResourceGroup

必要參數

--name -n

App Service 環境的名稱。

選擇性參數

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az appservice ase show

顯示 App Service 環境的詳細數據。

az appservice ase show --name
                       [--resource-group]

範例

顯示 App Service 環境。

az appservice ase show --name MyAseName

必要參數

--name -n

App Service 環境的名稱。

選擇性參數

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az appservice ase update

更新 App Service 環境。

az appservice ase update --name
                         [--allow-incoming-ftp-connections {false, true}]
                         [--allow-new-private-endpoint-connections {false, true}]
                         [--allow-remote-debugging {false, true}]
                         [--front-end-scale-factor]
                         [--front-end-sku {I1, I2, I3}]
                         [--no-wait]
                         [--resource-group]

範例

使用中型前端和縮放比例 10 更新 App Service 環境 v2。

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

更新 App Service 環境 v3 以允許新的私人端點連線。

az appservice ase update -n MyAseV3Name -g MyResourceGroup --allow-new-private-endpoint-connections

更新 App Service 環境 v3 以允許連入 ftp 連線。

az appservice ase update -n MyAseV3Name -g MyResourceGroup --allow-incoming-ftp-connections

更新 App Service 環境 v3 以允許遠端偵錯。

az appservice ase update -n MyAseV3Name -g MyResourceGroup --allow-remote-debugging

必要參數

--name -n

App Service 環境的名稱。

選擇性參數

--allow-incoming-ftp-connections -f

(僅限 ASEv3)設定 App Service 環境 以允許 FTP 存取。 這個 ftpEnabled 設定可讓您允許或拒絕 App Service 環境 層級上的 FTP 連線。 個別應用程式仍然需要設定 FTP 存取。

接受的值: false, true
--allow-new-private-endpoint-connections -p

(僅限 ASEv3)在 App Service 環境 中設定應用程式,以允許新的私人端點連線。

接受的值: false, true
--allow-remote-debugging -r

(僅限 ASEv3)設定 App Service 環境 以允許遠端偵錯。 您仍然需要在個別應用程式層級設定遠程偵錯。

接受的值: false, true
--front-end-scale-factor

(僅限 ASEv2)前端調整為 5 到 15 之間的 App Service 方案實例比率。

--front-end-sku

(僅限 ASEv2)前端伺服器的大小。

接受的值: I1, I2, I3
--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az appservice ase upgrade

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

升級 App Service 環境 v3。

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

範例

升級 App Service 環境 v3。

az appservice ase upgrade -n MyAseV3Name -g MyResourceGroup

必要參數

--name -n

App Service 環境的名稱。

選擇性參數

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--yes -y

不提示確認。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。