az aks command
请参阅“az aks command invoke”、“az aks command result”中的详细信息用法。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az aks command invoke |
在 aks 群集上运行 shell 命令(使用 kubectl、helm),同时支持附加文件。 |
Core | GA |
| az aks command result |
从之前触发的“aks 命令调用”中提取结果。 |
Core | GA |
az aks command invoke
在 aks 群集上运行 shell 命令(使用 kubectl、helm),同时支持附加文件。
az aks command invoke --name
--resource-group
[--command]
[--file]
[--no-wait]
必需参数
托管群集的名称。
资源组的名称。 可以使用 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.
要运行的命令或 shell 脚本。
命令要使用的文件,使用“.”附加当前文件夹。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az aks command result
从之前触发的“aks 命令调用”中提取结果。
az aks command result --name
--resource-group
[--command-id]
必需参数
托管群集的名称。
资源组的名称。 可以使用 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.
从“aks 命令调用”返回的 CommandId。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |