az containerapp replica
Note
此命令组具有在 Azure CLI 和至少一个扩展中定义的命令。 安装每个扩展,使其受益于其扩展功能。 Learn more about extensions.
管理容器应用副本。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az containerapp replica count |
容器应用的副本计数。 |
Extension | Preview |
| az containerapp replica list |
列出容器应用修订的副本。 |
Core | GA |
| az containerapp replica list (containerapp 扩展) |
列出容器应用修订的副本。 |
Extension | GA |
| az containerapp replica show |
显示容器应用副本。 |
Core | GA |
| az containerapp replica show (containerapp 扩展) |
显示容器应用副本。 |
Extension | GA |
az containerapp replica count
此命令处于预览阶段,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
容器应用的副本计数。
az containerapp replica count --name
--resource-group
[--revision]
示例
统计特定修订的副本
az containerapp replica count -n my-containerapp -g MyResourceGroup --revision MyRevision
对最新修订的副本进行计数
az containerapp replica count -n my-containerapp -g MyResourceGroup
必需参数
Containerapp 的名称。
资源组的名称。 可以使用 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.
容器应用修订版的名称。 默认为最新修订。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 |
az containerapp replica list
列出容器应用修订的副本。
az containerapp replica list --name
--resource-group
[--revision]
示例
在最新修订中列出容器应用的副本
az containerapp replica list -n my-containerapp -g MyResourceGroup
在特定修订中列出容器应用的副本
az containerapp replica list -n my-containerapp -g MyResourceGroup --revision MyRevision
必需参数
Containerapp 的名称。
资源组的名称。 可以使用 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.
容器应用修订版的名称。 默认为最新修订。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 |
az containerapp replica list (containerapp 扩展)
列出容器应用修订的副本。
az containerapp replica list --name
--resource-group
[--revision]
示例
在最新修订中列出容器应用的副本
az containerapp replica list -n my-containerapp -g MyResourceGroup
在特定修订中列出容器应用的副本
az containerapp replica list -n my-containerapp -g MyResourceGroup --revision MyRevision
必需参数
Containerapp 的名称。
资源组的名称。 可以使用 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.
容器应用修订版的名称。 默认为最新修订。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 |
az containerapp replica show
显示容器应用副本。
az containerapp replica show --name
--replica
--resource-group
[--revision]
示例
显示最新修订的副本
az containerapp replica show -n my-containerapp -g MyResourceGroup --replica MyReplica
显示特定修订的副本
az containerapp replica show -n my-containerapp -g MyResourceGroup --replica MyReplica --revision MyRevision
必需参数
Containerapp 的名称。
副本的名称。
资源组的名称。 可以使用 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.
容器应用修订版的名称。 默认为最新修订。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 |
az containerapp replica show (containerapp 扩展)
显示容器应用副本。
az containerapp replica show --name
--replica
--resource-group
[--revision]
示例
显示最新修订的副本
az containerapp replica show -n my-containerapp -g MyResourceGroup --replica MyReplica
显示特定修订的副本
az containerapp replica show -n my-containerapp -g MyResourceGroup --replica MyReplica --revision MyRevision
必需参数
Containerapp 的名称。
副本的名称。
资源组的名称。 可以使用 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.
容器应用修订版的名称。 默认为最新修订。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 |