共用方式為


az containerapp ingress

用來管理輸入和流量分割的命令。

命令

名稱 Description 類型 狀態
az containerapp ingress access-restriction

管理IP存取限制的命令。

Core GA
az containerapp ingress access-restriction list

列出容器應用程式的IP存取限制。

Core GA
az containerapp ingress access-restriction remove

從容器應用程式移除IP存取限制。

Core GA
az containerapp ingress access-restriction set

設定容器應用程式的IP存取限制。

Core GA
az containerapp ingress cors

管理容器應用程式的 CORS 原則命令。

Core GA
az containerapp ingress cors disable

停用容器應用程式的 CORS 原則。

Core GA
az containerapp ingress cors enable

啟用容器應用程式的 CORS 原則。

Core GA
az containerapp ingress cors show

顯示容器應用程式的 CORS 原則。

Core GA
az containerapp ingress cors update

更新容器應用程式的 CORS 原則。

Core GA
az containerapp ingress disable

停用容器應用程式的輸入。

Core GA
az containerapp ingress enable

啟用或更新容器應用程式的輸入。

Core GA
az containerapp ingress show

顯示容器應用程式輸入的詳細數據。

Core GA
az containerapp ingress sticky-sessions

設定容器應用程式的黏性會話親和性的命令。

Core GA
az containerapp ingress sticky-sessions set

設定容器應用程式的黏性會話。

Core GA
az containerapp ingress sticky-sessions show

顯示容器應用程式的 Affinity。

Core GA
az containerapp ingress traffic

管理流量分割的命令。

Core GA
az containerapp ingress traffic set

設定容器應用程式的流量分割。

Core GA
az containerapp ingress traffic show

顯示容器應用程式的流量分割組態。

Core GA
az containerapp ingress update

更新容器應用程式的輸入。

Core GA

az containerapp ingress disable

停用容器應用程式的輸入。

az containerapp ingress disable [--ids]
                                [--name]
                                [--resource-group]
                                [--subscription]

範例

停用容器應用程式的輸入。

az containerapp ingress disable -n my-containerapp -g MyResourceGroup

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性
參數群組: Resource Id Arguments
--name -n

Containerapp 的名稱。 名稱必須包含小寫英數位元或 '-'、以字母開頭、以英數位元結尾、不能有 '--' 且必須小於 32 個字元。

屬性
參數群組: Resource Id Arguments
--resource-group -g

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

屬性
參數群組: Resource Id Arguments
--subscription

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

屬性
參數群組: Resource Id Arguments
全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

輸出格式。

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

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

--verbose

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

屬性
預設值: False

az containerapp ingress enable

啟用或更新容器應用程式的輸入。

az containerapp ingress enable --type {external, internal}
                               [--allow-insecure {false, true}]
                               [--exposed-port]
                               [--ids]
                               [--name]
                               [--resource-group]
                               [--subscription]
                               [--target-port]
                               [--transport {auto, http, http2, tcp}]

範例

啟用或更新容器應用程式的輸入。

az containerapp ingress enable -n my-containerapp -g MyResourceGroup \
    --type external --allow-insecure --target-port 80 --transport auto

必要參數

--type

輸入類型。

屬性
接受的值: external, internal

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--allow-insecure

允許輸入流量不安全的連線。

屬性
預設值: False
接受的值: false, true
--exposed-port

其他公開的埠。 僅支援 tcp 傳輸通訊協定。 如果應用程式輸入為外部,則每個環境必須是唯一的。

屬性
參數群組: Ingress Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性
參數群組: Resource Id Arguments
--name -n

Containerapp 的名稱。 名稱必須包含小寫英數位元或 '-'、以字母開頭、以英數位元結尾、不能有 '--' 且必須小於 32 個字元。

屬性
參數群組: Resource Id Arguments
--resource-group -g

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

屬性
參數群組: Resource Id Arguments
--subscription

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

屬性
參數群組: Resource Id Arguments
--target-port

用於輸入流量的應用程式埠。

屬性
參數群組: Ingress Arguments
--transport

用於輸入流量的傳輸通訊協定。

屬性
參數群組: Ingress Arguments
預設值: auto
接受的值: auto, http, http2, tcp
全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

輸出格式。

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

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

--verbose

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

屬性
預設值: False

az containerapp ingress show

顯示容器應用程式輸入的詳細數據。

az containerapp ingress show [--ids]
                             [--name]
                             [--resource-group]
                             [--subscription]

範例

顯示容器應用程式輸入的詳細數據。

az containerapp ingress show -n my-containerapp -g MyResourceGroup

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性
參數群組: Resource Id Arguments
--name -n

Containerapp 的名稱。 名稱必須包含小寫英數位元或 '-'、以字母開頭、以英數位元結尾、不能有 '--' 且必須小於 32 個字元。

屬性
參數群組: Resource Id Arguments
--resource-group -g

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

屬性
參數群組: Resource Id Arguments
--subscription

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

屬性
參數群組: Resource Id Arguments
全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

輸出格式。

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

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

--verbose

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

屬性
預設值: False

az containerapp ingress update

更新容器應用程式的輸入。

az containerapp ingress update [--allow-insecure {false, true}]
                               [--exposed-port]
                               [--ids]
                               [--name]
                               [--resource-group]
                               [--subscription]
                               [--target-port]
                               [--transport {auto, http, http2, tcp}]
                               [--type {external, internal}]

範例

更新容器應用程式的輸入。

az containerapp ingress update -n my-containerapp -g MyResourceGroup \
    --target-port 8080

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--allow-insecure

允許輸入流量不安全的連線。

屬性
預設值: False
接受的值: false, true
--exposed-port

其他公開的埠。 僅支援 tcp 傳輸通訊協定。 如果應用程式輸入為外部,則每個環境必須是唯一的。

屬性
參數群組: Ingress Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性
參數群組: Resource Id Arguments
--name -n

Containerapp 的名稱。 名稱必須包含小寫英數位元或 '-'、以字母開頭、以英數位元結尾、不能有 '--' 且必須小於 32 個字元。

屬性
參數群組: Resource Id Arguments
--resource-group -g

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

屬性
參數群組: Resource Id Arguments
--subscription

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

屬性
參數群組: Resource Id Arguments
--target-port

用於輸入流量的應用程式埠。

屬性
參數群組: Ingress Arguments
--transport

用於輸入流量的傳輸通訊協定。

屬性
參數群組: Ingress Arguments
接受的值: auto, http, http2, tcp
--type

輸入類型。

屬性
接受的值: external, internal
全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

輸出格式。

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

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

--verbose

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

屬性
預設值: False