首页 > 解决方案 > 如何在 azure cli 上启用 az 安全评估

问题描述

我正在尝试使用此处所述的 az 安全评估,Azure 安全模块

当我尝试使用它时,我看到:

~$ az security assessment
az security: 'assessment' is not in the 'az security' command group. See 'az security --help'. If the command is from an extension, please make sure the corresponding extension is installed. To learn more about extensions, please visit https://docs.micro
soft.com/en-us/cli/azure/azure-cli-extensions-overview

我查看了该页面,虽然它告诉我如何通常安装扩展,但我无法找到如何安装评估模块可能包含的任何扩展。

有没有人使用过这个并且可以指出我安装它的正确方向?我查看了可用的列表,没有什么能作为安全评估脱颖而出。

标签: azureazure-cli

解决方案


我能够运行az security assessment list命令并得到如下结果:

在此处输入图像描述

在此处输入图像描述

我安装了以下软件:

  1. 微软 Azure CLI - 2.10.1
  2. 微软 Azure Powershell - 5.7.0.18831

正如上面提到的 Ian Kemp,您也可以尝试安装Az.Security.


推荐阅读