共用方式為


az appservice ase

管理 App Service 環境。

命令

名稱 Description 類型 狀態
az appservice ase create

建立 App Service 環境。

Core GA
az appservice ase create-inbound-services

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

Core Preview
az appservice ase delete

刪除 App Service 環境。

Core GA
az appservice ase list

列出 App Service 環境。

Core GA
az appservice ase list-addresses

列出與 App Service 環境相關聯的 IP 位址。

Core GA
az appservice ase list-plans

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

Core GA
az appservice ase send-test-notification

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

Core GA
az appservice ase show

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

Core GA
az appservice ase update

更新 App Service 環境。

Core GA
az appservice ase upgrade

升級 App Service 環境。

Core GA

az appservice ase create

建立 App Service 環境。

az appservice ase create --name
                         --resource-group
                         --subnet
                         [--ignore-subnet-size-validation {false, true}]
                         [--kind {ASEv3}]
                         [--location]
                         [--no-wait]
                         [--virtual-ip-type {External, Internal}]
                         [--vnet-name]
                         [--zone-redundant {false, true}]

範例

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

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

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

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

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

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

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

az appservice ase create -n MyASEName -g ASEResourceGroup \
  --vnet-name MyASEVirtualNetwork --subnet MyASESubnet \
  --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

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ignore-subnet-size-validation

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

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

指定 App Service 環境版本。

屬性
預設值: ASEv3
接受的值: ASEv3
--location -l

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

--no-wait

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

屬性
預設值: False
--virtual-ip-type

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

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

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

--zone-redundant

將 App Service 環境設定為區域備援。

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

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az appservice ase create-inbound-services

預覽

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

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

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

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--skip-dns
已被取代

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

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

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

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

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

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 環境的名稱。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--no-wait

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

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

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

--yes -y

請勿提示確認。

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

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az appservice ase list

列出 App Service 環境。

az appservice ase list [--resource-group]

範例

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

az appservice ase list

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

az appservice ase list --resource-group MyResourceGroup

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

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

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az appservice ase list-addresses

列出與 App Service 環境相關聯的 IP 位址。

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

範例

列出 App Service 環境的 IP。

az appservice ase list-addresses --name MyAseName

必要參數

--name -n

App Service 環境的名稱。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

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

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

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 環境的名稱。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

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

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az appservice ase send-test-notification

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

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

範例

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

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

必要參數

--name -n

App Service 環境的名稱。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

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

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

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 環境的名稱。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

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

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

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}]
                         [--no-wait]
                         [--resource-group]

範例

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

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

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

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

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

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

必要參數

--name -n

App Service 環境的名稱。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--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
--no-wait

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

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

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

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az appservice ase upgrade

升級 App Service 環境。

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

範例

升級 App Service 環境。

az appservice ase upgrade -n MyAseName -g MyResourceGroup

必要參數

--name -n

App Service 環境的名稱。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--no-wait

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

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

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

--yes -y

請勿提示確認。

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

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False