你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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"

必需参数

--bot-name --name -n

机器人资源的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

--sku

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 -l

Location. az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--no-wait

不等待长时间运行的操作完成。

属性
默认值: False
--tags

空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --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.

--bot-name --name -n

机器人资源的名称。

属性
Parameter group: Resource Id Arguments
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--no-wait

不等待长时间运行的操作完成。

属性
默认值: False
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
--yes -y

不要提示确认。

属性
默认值: False
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--verbose

增加日志记录详细程度。 使用 --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.

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --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.

--bot-name --name -n

机器人资源的名称。

属性
Parameter group: Resource Id Arguments
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--verbose

增加日志记录详细程度。 使用 --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.

--bot-name --name -n

机器人资源的名称。

属性
Parameter group: Resource Id Arguments
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--sku

HealthBot SKU 的名称。

属性
Parameter group: Sku Arguments
接受的值: C0, F0, S1
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
--tags

空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--verbose

增加日志记录详细程度。 使用 --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.

--bot-name --name -n

机器人资源的名称。

属性
Parameter group: Resource Id Arguments
--created

等待在“Succeeded”中使用“provisioningState”创建。

属性
Parameter group: Wait Condition Arguments
默认值: False
--custom

等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

属性
Parameter group: Wait Condition Arguments
--deleted

等到删除为止。

属性
Parameter group: Wait Condition Arguments
默认值: False
--exists

等待资源存在。

属性
Parameter group: Wait Condition Arguments
默认值: False
--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。

属性
Parameter group: Resource Id Arguments
--interval

轮询间隔(以秒为单位)。

属性
Parameter group: Wait Condition Arguments
默认值: 30
--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。

属性
Parameter group: Resource Id Arguments
--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

属性
Parameter group: Resource Id Arguments
--timeout

最大等待(以秒为单位)。

属性
Parameter group: Wait Condition Arguments
默认值: 3600
--updated

等到 provisioningState 更新为“Succeeded”。

属性
Parameter group: Wait Condition Arguments
默认值: False
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False