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

az self-help troubleshooter

注意

此参考是 Azure CLI(版本 2.57.0 或更高版本)的自助扩展的一部分。 该扩展将在首次运行 az self-help troubleshooter 命令时自动安装。 详细了解扩展。

命令组“az self-help”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

疑难解答命令将帮助你为 Azure 资源创建疑难解答。

命令

名称 说明 类型 Status
az self-help troubleshooter continue

使用 stepId 和响应作为触发器,以继续相应的故障排除程序资源名称的故障排除步骤。

扩展 预览
az self-help troubleshooter create

在资源或订阅下创建特定的疑难解答操作。

扩展 预览
az self-help troubleshooter end

结束疑难解答操作。

扩展 预览
az self-help troubleshooter restart

使用适用的疑难解答资源名称作为输入重启疑难解答 API。

扩展 预览
az self-help troubleshooter show

获取疑难解答实例结果,其中包括正在执行的疑难解答资源名称的步骤状态/结果。

扩展 预览

az self-help troubleshooter continue

预览

命令组“az self-help troubleshooter”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

使用 stepId 和响应作为触发器,以继续相应的故障排除程序资源名称的故障排除步骤。

az self-help troubleshooter continue --scope
                                     --troubleshooter-name
                                     [--responses]
                                     [--step-id]

示例

在资源级别继续故障排除

az self-help troubleshooter continue --troubleshooter-name 12345678-BBBb-cCCCC-0000-123456789123 --step-id step-id --responses [] --scope 'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'

必需参数

--scope

这是扩展资源提供程序,目前仅支持资源级别扩展。

--troubleshooter-name

疑难解答资源名称。

可选参数

--responses

支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

--step-id

结果的唯一 ID。

全局参数
--debug

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

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

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

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

--subscription

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

--verbose

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

az self-help troubleshooter create

预览

命令组“az self-help troubleshooter”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

在资源或订阅下创建特定的疑难解答操作。

az self-help troubleshooter create --scope
                                   --troubleshooter-name
                                   [--parameters]
                                   [--solution-id]

示例

在资源级别创建疑难解答

az self-help troubleshooter create --troubleshooter-name 12345678-BBBb-cCCCC-0000-123456789123 --solution-id e104dbdf-9e14-4c9f-bc78-21ac90382231 --parameters {ResourceUri:'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'} --scope 'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'

必需参数

--scope

这是扩展资源提供程序,目前仅支持资源级别扩展。

--troubleshooter-name

疑难解答资源名称。

可选参数

--parameters

用于运行疑难解答资源支持速记语法、json-file 和 yaml-file 的客户端输入参数。 请尝试“??” 以显示更多内容。

--solution-id

用于标识单个故障排除程序的解决方案 ID。

全局参数
--debug

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

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

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

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

--subscription

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

--verbose

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

az self-help troubleshooter end

预览

命令组“az self-help troubleshooter”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

结束疑难解答操作。

az self-help troubleshooter end --scope
                                --troubleshooter-name

示例

资源级别的结束疑难解答

az self-help troubleshooter end --troubleshooter-name 12345678-BBBb-cCCCC-0000-123456789123 --scope 'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'

必需参数

--scope

这是扩展资源提供程序,目前仅支持资源级别扩展。

--troubleshooter-name

疑难解答资源名称。

全局参数
--debug

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

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

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

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

--subscription

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

--verbose

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

az self-help troubleshooter restart

预览

命令组“az self-help troubleshooter”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

使用适用的疑难解答资源名称作为输入重启疑难解答 API。

az self-help troubleshooter restart --scope
                                    --troubleshooter-name

示例

在资源级别重启疑难解答

az self-help troubleshooter restart --troubleshooter-name 12345678-BBBb-cCCCC-0000-123456789123 --scope 'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'

必需参数

--scope

这是扩展资源提供程序,目前仅支持资源级别扩展。

--troubleshooter-name

疑难解答资源名称。

全局参数
--debug

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

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

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

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

--subscription

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

--verbose

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

az self-help troubleshooter show

预览

命令组“az self-help troubleshooter”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

获取疑难解答实例结果,其中包括正在执行的疑难解答资源名称的步骤状态/结果。

az self-help troubleshooter show --scope
                                 --troubleshooter-name

示例

在资源级别显示疑难解答

az self-help troubleshooter show --troubleshooter-name 12345678-BBBb-cCCCC-0000-123456789123 --scope 'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'

必需参数

--scope

这是扩展资源提供程序,目前仅支持资源级别扩展。

--troubleshooter-name

疑难解答资源名称。

全局参数
--debug

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

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

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

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

--subscription

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

--verbose

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