Azure 顾问入门Get started with Azure Advisor

了解如何通过 Azure 门户访问顾问,以及如何获取和实现建议。Learn how to access Advisor through the Azure portal, get recommendations, and implement recommendations.

Note

Azure 顾问自动在后台运行,以查找新创建的资源。Azure Advisor automatically runs in the background to find newly created resources. 最多可能需要 24 小时才能提供有关这些资源的建议。It can take up to 24 hours to provide recommendations on those resources.

获取建议Get recommendations

  1. 登录到 Azure 门户Sign in to the Azure portal.

  2. 在左窗格中,单击“顾问” 。In the left pane, click Advisor. 如果左窗格中未显示“顾问”,请单击“所有服务” 。If you do not see Advisor in the left pane, click All services. 在服务菜单窗格中,在“监视和管理”下,单击“顾问” 。In the service menu pane, under Monitoring and Management, click Advisor. 将显示顾问仪表板。The Advisor dashboard is displayed.

    使用 Azure 门户访问 Azure 顾问

  3. 顾问仪表板将显示针对所有所选订阅的建议的摘要。The Advisor dashboard will display a summary of your recommendations for all selected subscriptions. 可通过订阅筛选器下拉列表,选择要显示建议的订阅。You can choose the subscriptions that you want recommendations to be displayed for using the subscription filter dropdown.

  4. 若要获取特定类别的建议,请单击以下选项卡之一:“高可用性”、“安全”、“性能”或“成本”。To get recommendations for a specific category, click one of the tabs: High Availability, Security, Performance, or Cost.

    Azure 顾问仪表板

获取顾问建议详细信息并实现解决方案Get Advisor recommendation details, and implement a solution

可以在顾问中选择建议以查看详细信息 - 例如建议操作和受影响的资源 - 并实现针对建议的解决方案。You can select a recommendation in Advisor to view additional details – such as the recommendation actions and impacted resources – and to implement the solution to the recommendation.

  1. 登录 Azure 门户,并打开顾问Sign in to the Azure portal, and then open Advisor.

  2. 选择一个建议类别并显示该类别下的建议列表,或选择“全部”选项卡来查看所有建议。Select a recommendation category to display the list of recommendations within that category, or select the All tab to view all your recommendations.

  3. 单击要详细查看的建议。Click a recommendation that you want to review in detail.

  4. 查看建议的相关信息,以及建议适用的资源。Review the information about the recommendation and the resources that the recommendation applies to.

  5. 单击“推荐操作”以实现该建议。Click on the Recommended Action to implement the recommendation.

筛选顾问建议Filter Advisor recommendations

可以通过筛选建议,深度获取最重要的信息。You can filter recommendations to drill down to what is most important to you. 可按订阅、资源类型或建议状态进行筛选。You can filter by subscription, resource type, or recommendation status.

  1. 登录 Azure 门户,并打开顾问Sign in to the Azure portal, and then open Advisor.

  2. 使用顾问仪表板上的下拉列表,按订阅、资源类型或建议状态进行筛选。Use the dropdowns on the Advisor dashboard to filter by subscription, resource type, or recommendation status.

    顾问搜索筛选条件

推迟或消除建议Postpone or dismiss recommendations

  1. 登录 Azure 门户,并打开顾问Sign in to the Azure portal, and then open Advisor.

  2. 导航至要推迟或消除的建议。Navigate to the recommendation you want to postpone or dismiss.

  3. 单击建议。Click the recommendation.

  4. 单击“推迟”。Click Postpone.

  5. 指定推迟时间段,或选择“从不”以消除该建议。Specify a postpone time period, or select Never to dismiss the recommendation.

排除订阅或资源组Exclude subscriptions or resource groups

对于某些资源组或订阅,你可能不希望接收与其相关的顾问建议 - 例如“测试”资源。You may have resource groups or subscriptions for which you do not want to receive Advisor recommendations – such as ‘test’ resources. 可以将顾问配置为仅为特定订阅或资源组生成建议。You can configure Advisor to only generate recommendations for specific subscriptions and resource groups.

Note

只有订阅所有者可以向顾问添加或从中排除订阅或资源组。To include or exclude a subscription or resource group from Advisor, you must be a subscription Owner. 如果不具有所需的订阅或资源组权限,则用户界面中的添加或排除选项为禁用状态。If you do not have the required permissions for a subscription or resource group, the option to include or exclude it is disabled in the user interface.

  1. 登录 Azure 门户,并打开顾问Sign in to the Azure portal, and then open Advisor.

  2. 单击操作栏中的“配置”。Click Configure in the action bar.

  3. 如果不想接收有关某个订阅或资源组的顾问建议,可取消选中它。Uncheck any subscriptions or resource groups you do not want to receive Advisor recommendations for.

    顾问配置资源示例

  4. 单击“应用”按钮。Click the Apply button.

配置低使用率 VM 建议Configure low usage VM recommendation

此过程针对低使用率虚拟机建议,配置平均 CPU 使用率规则。This procedure configures the average CPU utilization rule for the low usage virtual machine recommendation.

顾问可监视虚拟机 7 天的使用情况,并识别出利用率较低的虚拟机。Advisor monitors your virtual machine usage for 7 days and then identifies low-utilization virtual machines. 以下情况可以将虚拟机视为使用率低:其 CPU 使用率为 5% 或更低且其网络使用率低于 2%,或者更小的虚拟机大小可以容纳当前工作负荷。Virtual machines are considered low-utilization if their CPU utilization is 5% or less and their network utilization is less than 2% or if the current workload can be accommodated by a smaller virtual machine size.

若要加强对低使用率虚拟机的标识,可在每个订阅的基础上调整平均 CPU 使用率。If you would like to be more aggressive at identifying low usage virtual machines, you can adjust the average CPU utilization rule on a per subscription basis. 可将平均 CPU 使用率规则设置为 5%、10%、15% 或 20%。The average CPU utilization rule can be set to 5%, 10%, 15%, or 20%.

Note

要调整用于标识低使用率虚拟机的平均 CPU 使用率规则,操作者必须是订阅所有者。To adjust the average CPU utilization rule for identifying low usage virtual machines, you must be a subscription Owner. 如果缺少订阅或资源组所需的相关权限,则用户界面中的添加或排除选项是禁用的。If you do not have the required permissions for a subscription or resource group, the option to include or exclude it will be disabled in the user interface.

  1. 登录 Azure 门户,并打开顾问Sign in to the Azure portal, and then open Advisor.

  2. 单击操作栏中的“配置”。Click Configure in the action bar.

  3. 单击“规则”选项卡。Click the Rules tab.

  4. 选择要为其调整平均 CPU 使用率规则的订阅,然后单击“编辑”。Select the subscriptions you’d like to adjust the average CPU utilization rule for, and then click Edit.

  5. 选择所需的平均 CPU 使用率值,然后单击“应用”。Select the desired average CPU utilization value, and click Apply.

  6. 单击“刷新建议”来更新现有建议,以便使用新平均 CPU 使用率规则。Click Refresh recommendations to update your existing recommendations to use the new average CPU utilization rule.

    顾问配置建议规则示例

下载建议Download recommendations

可使用顾问下载建议摘要。Advisor enables you to download a summary of your recommendations. 可下载 PDF 文件或 CSV 文件格式的建议。You can download your recommendations as a PDF file or a CSV file. 通过下载建议,可轻松与同事共享建议数据,或根据建议数据执行自己的分析。Downloading your recommendations enables you to easily share with your colleagues or perform your own analysis on top of the recommendation data.

  1. 登录 Azure 门户,并打开顾问Sign in to the Azure portal, and then open Advisor.

  2. 在操作栏中,单击“以 CSV 格式下载”或“以 PDF 格式下载”。Click Download as CSV or Download as PDF on the action bar.

下载选项与在顾问仪表板中应用的筛选器密切相关。The download option respects any filters you have applied to the Advisor dashboard. 如果在选择下载选项的同时,正在查看某个特定的建议类别或建议,则所下载的摘要将仅包括该类别或建议的相关信息。If you select the download option while viewing a specific recommendation category or recommendation, the downloaded summary only includes information for that category or recommendation.

后续步骤Next steps

若要详细了解顾问,请参阅以下资源:To learn more about Advisor, see: