az healthbot
Note
This reference is part of the healthbot extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az healthbot command. Learn more about extensions.
此命令组是试验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
使用 healthbot 管理机器人。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az healthbot create |
创建新的 HealthBot。 |
Extension | Experimental |
| az healthbot delete |
删除 HealthBot。 |
Extension | Experimental |
| az healthbot list |
返回属于资源组的特定类型的所有资源,并返回属于订阅的特定类型的所有资源。 |
Extension | Experimental |
| az healthbot show |
获取 HealthBot。 |
Extension | Experimental |
| az healthbot update |
修补 HealthBot。 |
Extension | Experimental |
| az healthbot wait |
将 CLI 置于等待状态,直到满足运行状况机器人的条件。 |
Extension | Experimental |
az healthbot create
命令组“healthbot”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
创建新的 HealthBot。
az healthbot create --bot-name --name
--resource-group
--sku {C0, F0, S1}
[--location]
[--no-wait]
[--tags]
示例
BotCreate
az healthbot create --name "samplebotname" --location "East US" --sku "F0" --resource-group "healthbotClient"
必需参数
机器人资源的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
HealthBot SKU 的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Sku Arguments |
| 接受的值: | C0, F0, S1 |
可选参数
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 |
空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 healthbot delete
命令组“healthbot”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
删除 HealthBot。
az healthbot delete [--bot-name --name]
[--ids]
[--no-wait]
[--resource-group]
[--subscription]
[--yes]
示例
BotDelete
az healthbot delete --name "samplebotname" --resource-group "healthbotClient"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
机器人资源的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
资源组的名称。 可以使用 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 healthbot list
命令组“healthbot”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
返回属于资源组的特定类型的所有资源,并返回属于订阅的特定类型的所有资源。
az healthbot list [--resource-group]
示例
按资源组列出机器人
az healthbot list --resource-group "OneResourceGroupName"
按订阅列出机器人
az healthbot list
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 healthbot show
命令组“healthbot”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
获取 HealthBot。
az healthbot show [--bot-name --name]
[--ids]
[--resource-group]
[--subscription]
示例
ResourceInfoGet
az healthbot show --name "samplebotname" --resource-group "healthbotClient"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
机器人资源的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 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 healthbot update
命令组“healthbot”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
修补 HealthBot。
az healthbot update [--bot-name --name]
[--ids]
[--resource-group]
[--sku {C0, F0, S1}]
[--subscription]
[--tags]
示例
BotUpdate
az healthbot update --bot-name "samplebotname" --name "F0" --resource-group "healthbotClient"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
机器人资源的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
HealthBot SKU 的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Sku Arguments |
| 接受的值: | C0, F0, S1 |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
Output format.
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az healthbot wait
命令组“healthbot”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
将 CLI 置于等待状态,直到满足运行状况机器人的条件。
az healthbot wait [--bot-name --name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
示例
暂停执行下一行 CLI 脚本,直到运行状况机器人成功创建。
az healthbot wait --name "samplebotname" --resource-group "healthbotClient" --created
暂停执行下一行 CLI 脚本,直到成功删除 healthbot。
az healthbot wait --name "samplebotname" --resource-group "healthbotClient" --deleted
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
机器人资源的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
等待在“Succeeded”中使用“provisioningState”创建。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
等到删除为止。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
等待资源存在。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
轮询间隔(以秒为单位)。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | 30 |
资源组的名称。 可以使用 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: | Wait Condition Arguments |
| 默认值: | 3600 |
等到 provisioningState 更新为“Succeeded”。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
Output format.
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |