az containerapp hostname
Note
此命令组具有在 Azure CLI 和至少一个扩展中定义的命令。 安装每个扩展,使其受益于其扩展功能。 Learn more about extensions.
用于管理容器应用的主机名的命令。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az containerapp hostname add |
将主机名添加到容器应用而不绑定。 |
Core | GA |
az containerapp hostname bind |
使用证书添加或更新主机名和绑定。 |
Core | GA |
az containerapp hostname bind (containerapp 扩展) |
使用证书添加或更新主机名和绑定。 |
Extension | GA |
az containerapp hostname delete |
从容器应用中删除主机名。 |
Core | GA |
az containerapp hostname list |
列出容器应用的主机名。 |
Core | GA |
az containerapp hostname add
将主机名添加到容器应用而不绑定。
az containerapp hostname add --hostname
[--ids]
[--location]
[--name]
[--resource-group]
[--subscription]
示例
添加主机名而不绑定。
az containerapp hostname add -n my-containerapp -g MyResourceGroup --hostname MyHostname
必需参数
自定义域名。
可选参数
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 |
Location.
az account list-locations
中的值。 可以使用 az configure --defaults location=<location>
配置默认位置。
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 hostname bind
使用证书添加或更新主机名和绑定。
az containerapp hostname bind --hostname
[--certificate]
[--environment]
[--ids]
[--location]
[--name]
[--resource-group]
[--subscription]
[--thumbprint]
[--validation-method]
示例
使用提供的证书添加或更新主机名和绑定。
az containerapp hostname bind -n my-containerapp -g MyResourceGroup --hostname MyHostname --certificate MyCertificateId
查找或创建托管证书,如果未提供证书或指纹,则与主机名绑定。
az containerapp hostname bind -n my-containerapp -g MyResourceGroup --hostname MyHostname
必需参数
自定义域名。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
证书的名称或资源 ID。
容器应用环境的名称或资源 ID。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Location.
az account list-locations
中的值。 可以使用 az configure --defaults location=<location>
配置默认位置。
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 hostname bind (containerapp 扩展)
使用证书添加或更新主机名和绑定。
az containerapp hostname bind --hostname
[--certificate]
[--environment]
[--ids]
[--location]
[--name]
[--resource-group]
[--subscription]
[--thumbprint]
[--validation-method]
示例
使用提供的证书添加或更新主机名和绑定。
az containerapp hostname bind -n my-containerapp -g MyResourceGroup --hostname MyHostname --certificate MyCertificateId
查找或创建托管证书,如果未提供证书或指纹,则与主机名绑定。
az containerapp hostname bind -n my-containerapp -g MyResourceGroup --hostname MyHostname
必需参数
自定义域名。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
证书的名称或资源 ID。
容器应用环境的名称或资源 ID。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Location.
az account list-locations
中的值。 可以使用 az configure --defaults location=<location>
配置默认位置。
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 hostname delete
从容器应用中删除主机名。
az containerapp hostname delete --hostname
[--ids]
[--location]
[--name]
[--resource-group]
[--subscription]
[--yes]
示例
从容器应用中删除机密。
az containerapp hostname delete -n my-containerapp -g MyResourceGroup --hostname MyHostname
必需参数
自定义域名。
可选参数
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 |
Location.
az account list-locations
中的值。 可以使用 az configure --defaults location=<location>
配置默认位置。
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 |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az containerapp hostname list
列出容器应用的主机名。
az containerapp hostname list --name
--resource-group
[--location]
示例
列出容器应用的主机名。
az containerapp hostname list -n my-containerapp -g MyResourceGroup
必需参数
Containerapp 的名称。 名称必须包含小写字母数字字符或“-”,以字母开头,以字母数字字符结尾,不能有“--”,并且必须小于 32 个字符。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Location.
az account list-locations
中的值。 可以使用 az configure --defaults location=<location>
配置默认位置。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |