使用 Power BI 连接到 Azure 审核日志Connect to Azure Audit Logs with Power BI

借助 Azure 审核日志内容包,你可以分析和可视化审核日志中存储的信息。With the Azure Audit Logs content pack you can analyze and visualize the information stored in the audit logs. Power BI 会检索数据,生成现成的仪表板,并基于该数据创建报表。Power BI retrieves your data, builds an out-of-the box dashboard, and creates reports based on that data.

连接到 Azure 审核日志内容包,或阅读有关使用 Power BI 进行 Azure 审核日志集成的详细信息。Connect to the Azure Audit Logs content pack or read more about the Azure Audit Logs integration with Power BI.

如何连接How to connect

  1. 选择左侧导航窗格底部的获取数据Select Get Data at the bottom of the left navigation pane.

  2. 服务框中,选择获取In the Services box, select Get.

  3. 选择 Azure 审核日志 > 获取Select Azure Audit Logs > Get.

  4. 出现提示时,输入你的Azure 订阅 IDWhen prompted, enter your Azure Subscription ID. 请参阅下面有关查找订阅 ID 的详细信息。See details on finding your subscription ID below.

  5. 对于身份验证方法,选择oAuth2>登录For Authentication Method, select oAuth2 > Sign In.

  6. 输入你的帐户凭据以完成登录过程。Enter your account credentials to finish the sign in process.

  7. Power BI 会检索 Azure 审核日志数据,并创建随时可用的仪表板和报表。Power BI will retrieve your Azure Audit Log data and create a ready-to-use dashboard and report.

下一步?What now?

系统要求System requirements

Azure 审核日志内容包需要可以在 Azure 门户中访问审核日志。The Azure Audit logs content pack requires access to Audit Logs in the Azure Portal. 此处提供了详细信息。More details here.

查找参数Finding parameters

可通过两种简单的方法来查找订阅 ID。There are two easy ways to find your Subscription Id.

  1. https://portal.azure.com -> 浏览 -> 订阅 -> 订阅 IDFrom https://portal.azure.com -> Browse -> Subscriptions -> Subscription Id
  2. https://manage.windowsazure.com -> 设置 -> 订阅 IDFrom https://manage.windowsazure.com -> Settings -> Subscription Id

订阅 ID 会是一组较长的数字和字符,类似于上面步骤 #4 中的示例。Your subscription ID will be long set of numbers and characters, similar to the example in Step #4 above.

故障排除Troubleshooting

如果你遇到凭据错误或是在尝试刷新时由于凭据无效而出现的错误,请尝试删除 Azure 审核日志内容包的所有实例并重新连接。If you're seeing a credentials error or an error trying to refresh due to invalid credentials, please try deleting all instances of the Azure Audit logs content pack and reconnecting.

后续步骤Next steps

Power BI 入门Get started with Power BI
Power BI - 基本概念Power BI - Basic Concepts