az containerapp ingress
用于管理入口和流量拆分的命令。
命令
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.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --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
必需参数
入口类型。
属性 | 值 |
---|---|
接受的值: | external, internal |
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
允许入口流量的不安全连接。
属性 | 值 |
---|---|
默认值: | False |
接受的值: | false, true |
其他公开端口。 仅受 tcp 传输协议支持。 如果应用入口为外部,则每个环境必须是唯一的。
属性 | 值 |
---|---|
Parameter group: | Ingress Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
用于入口流量的应用程序端口。
属性 | 值 |
---|---|
Parameter group: | Ingress Arguments |
用于入口流量的传输协议。
属性 | 值 |
---|---|
Parameter group: | Ingress Arguments |
默认值: | auto |
接受的值: | auto, http, http2, tcp |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --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.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --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.
允许入口流量的不安全连接。
属性 | 值 |
---|---|
默认值: | False |
接受的值: | false, true |
其他公开端口。 仅受 tcp 传输协议支持。 如果应用入口为外部,则每个环境必须是唯一的。
属性 | 值 |
---|---|
Parameter group: | Ingress Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
用于入口流量的应用程序端口。
属性 | 值 |
---|---|
Parameter group: | Ingress Arguments |
用于入口流量的传输协议。
属性 | 值 |
---|---|
Parameter group: | Ingress Arguments |
接受的值: | auto, http, http2, tcp |
入口类型。
属性 | 值 |
---|---|
接受的值: | external, internal |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |