你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az containerapp ingress

用于管理入口和流量拆分的命令。

命令

名称 说明 类型 Status
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

显示容器应用的相关性。

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

可选参数

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

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--name -n

Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。

属性
Parameter group: Resource Id Arguments
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
全局参数
--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/

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

可选参数

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

--allow-insecure

允许入口流量的不安全连接。

属性
默认值: False
接受的值: false, true
--exposed-port

其他公开端口。 仅受 tcp 传输协议支持。 如果应用入口为外部,则每个环境必须是唯一的。

属性
Parameter group: Ingress Arguments
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--name -n

Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。

属性
Parameter group: Resource Id Arguments
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
--target-port

用于入口流量的应用程序端口。

属性
Parameter group: Ingress Arguments
--transport

用于入口流量的传输协议。

属性
Parameter group: Ingress Arguments
默认值: auto
接受的值: auto, http, http2, tcp
全局参数
--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/

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

可选参数

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

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--name -n

Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。

属性
Parameter group: Resource Id Arguments
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
全局参数
--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/

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

可选参数

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

--allow-insecure

允许入口流量的不安全连接。

属性
默认值: False
接受的值: false, true
--exposed-port

其他公开端口。 仅受 tcp 传输协议支持。 如果应用入口为外部,则每个环境必须是唯一的。

属性
Parameter group: Ingress Arguments
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--name -n

Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。

属性
Parameter group: Resource Id Arguments
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
--target-port

用于入口流量的应用程序端口。

属性
Parameter group: Ingress Arguments
--transport

用于入口流量的传输协议。

属性
Parameter group: Ingress Arguments
接受的值: auto, http, http2, tcp
--type

入口类型。

属性
接受的值: external, internal
全局参数
--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/

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False