使用 Azure 顾问降低服务成本Reduce service costs using Azure Advisor

通过识别闲置和未充分利用的资源,顾问有助于优化和降低 Azure 总支出。Advisor helps you optimize and reduce your overall Azure spend by identifying idle and underutilized resources. 可在顾问仪表板的“成本”选项卡获取成本建议。 You can get cost recommendations from the Cost tab on the Advisor dashboard.

通过调整或关闭未充分利用的实例来优化虚拟机花费Optimize virtual machine spend by resizing or shutting down underutilized instances

虽然某些应用程序方案有意使虚拟机利用率较低,但通过管理虚拟机大小和数量通常可降低成本。Although certain application scenarios can result in low utilization by design, you can often save money by managing the size and number of your virtual machines. 如果过去 7 天内 CPU 使用率的最大值不到 3%,网络使用率的最大值不到 2%(在 95% 的情况下),则顾问的高级评估模型会考虑关闭虚拟机。Advisor advanced evaluation models considers virtual machines for shut-down when P95th of the max of max value of CPU utilization is less than 3% and network utilization is less than 2% over a 7 day period. 如果可以在较小的 SKU 中(在同一 SKU 系列中)适应当前负荷,或者可以在减少实例数的情况下这样做,使得当前的负荷在不是面向用户的工作负荷的情况下不超出 80% 的使用率,在是面向用户的工作负荷的情况下不超出 40% 的使用率,则可认为虚拟机的大小合适。Virtual machines are considered for right size when it is possible to fit the current load in a smaller SKU (within the same SKU family) or a smaller number # of instance such that the current load doesn’t go over 80% utilization when non-user facing workloads and not above 40% when user-facing workload. 在这里,可以通过分析工作负荷的 CPU 使用率特征来确定工作负荷的类型。Here, the type of workload is determined by analyzing the CPU utilization characteristics of the workload.

建议的操作是关机或重设大小,具体取决于这种情况下建议使用的资源。The recommended actions are shut-down or resize, specific to resource being recommended for. 顾问显示了与建议的操作(重设大小或关机)相对应的成本节省估算值。Advisor shows you the estimated cost savings for either recommended actions - resize or shut-down. 另外,对于重设大小这种建议的操作,顾问提供了当前 SKU 信息和目标 SKU 信息。Also, for resize recommended action, Advisor provides current and target SKU information.

若要加强对低使用率虚拟机的标识,可在每个订阅的基础上调整 CPU 使用率。If you want to be more aggressive at identifying underutilized virtual machines, you can adjust the CPU utilization rule on a per subscription basis.

通过适当调整大小优化 MariaDB、MySQL 和 PostgreSQL 服务器的支出Optimize spend for MariaDB, MySQL and PostgreSQL servers by right sizing

若 MariaDB/MySQL/PostgreSQL 数据库服务器资源在过去 7 天内长时间未被充分利用,顾问将分析使用情况并提出建议。Advisor analyses your usage and recommends if your MariaDB/MySQL/PostgreSQL database server resources have been underutilized for an extended period of time over the last 7 days. 资源利用率低会导致不必要的支出,这个问题可以在不显著影响性能的情况下得到修复。Low resource utilization results in unwanted expenditure which can be fixed without significant performance impact. 为了降低成本并高效管理资源,我们建议将计算大小 (vCore) 减少一半。To reduce your costs and efficiently manage your resources, we recommend reducing the compute size (vCores) by half.

通过消除未设置的 ExpressRoute 线路来降低成本Reduce costs by eliminating unprovisioned ExpressRoute circuits

顾问将识别提供程序状态为“未设置”长达一个月以上的 ExpressRoute 线路将被顾问标识,如果没有使用连接性提供程序配置该线路的计划,顾问将建议删除它。Advisor identifies ExpressRoute circuits that have been in the provider status of Not Provisioned for more than one month, and recommends deleting the circuit if you aren't planning to provision the circuit with your connectivity provider.

通过删除或重新配置空闲虚拟网络网关来降低成本Reduce costs by deleting or reconfiguring idle virtual network gateways

顾问会识别已闲置超过 90 天的虚拟网关。Advisor identifies virtual network gateways that have been idle for over 90 days. 由于这些网关按小时计费,因此如果不打算再使用它们,则应考虑重新配置或删除它们。Since these gateways are billed hourly, you should consider reconfiguring or deleting them if you don't intend to use them anymore.

购买虚拟机预留实例可节省即用即付成本Buy reserved virtual machine instances to save money over pay-as-you-go costs

顾问将查看过去 30 天的虚拟机使用情况,并确定是否可以通过购买 Azure 预留来节省资金。Advisor will review your virtual machine usage over the last 30 days and determine if you could save money by purchasing an Azure reservation. 顾问将展示可能在其中最大程度节省资金的区域和大小,并展示通过购买预留节约下来的估算费用。Advisor will show you the regions and sizes where you potentially have the most savings and will show you the estimated savings from purchasing reservations.

顾问还会向你通知在接下来的 30 天内将过期的预留实例。Advisor will also notify you of reserved instances that you have that will expire in the next 30 days. 它将建议你购买新的预留实例来避免即用即付定价。It will recommend that you purchase new reserved instances to avoid paying pay-as-you-go pricing.

购买多个资源类型的预留实例,以节省预付费成本Buy reserved instances for several resource types to save over your pay-for-advance costs

我们分析了过去 30 天内以下资源列表的使用模式,并推荐可以最大限度节省成本的预留容量购买方式。We analyze usage pattern for below list of resources, over last 30 days and recommend reserved capacity purchase that maximizes your savings.

Cosmos DB 保留容量Cosmos DB reserved capacity

我们分析了过去 30 天的 Cosmos DB 使用模式,并建议购买保留容量以优化成本。We analyzed your Cosmos DB usage pattern over last 30 days and recommend reserved capacity purchase to optimize costs. 使用预留容量,你可以按小时预购买 Cosmos DB,从而节省预付费成本。With reserved capacity you can pre-purchase Cosmos DB hourly usage and save over your pay-for-advance costs. 预留容量是一项计费权益,它将自动应用于新部署或现有部署。Reserved capacity is a billing benefit and will automatically apply to new or existing deployments. 基于 3 年期预留定价并根据过去 30 天内观察到的使用模式进行推测,从而计算各订阅成本节省的预估值。Saving estimates are calculated for individual subscriptions using 3-year reservation pricing and by extrapolating the usage pattern observed over last 30 days. 通过购买预留可以获得共享范围建议,并且可以进一步增加节省额。Shared scope recommendations are available in reservation purchase experience and can increase savings even more.

SQL PaaS 预留容量SQL PaaS reserved capacity

我们分析了过去 30 天内的 SQL PaaS 弹性池和托管实例使用模式,建议你购买预留容量,以最大限度地节省成本。We analyze SQL PaaS elastic pools and managed instance usage pattern over last 30 days and recommend reserved capacity purchase that maximizes your savings. 通过使用预留容量,可以预购买 SQL DB 按小时计的使用量,从而节省 SQL 计算成本。With reserved capacity you can pre-purchase SQL DB hourly usage and save over your SQL compute costs. SQL 许可证单独收费,不会因预留而打折。SQL license is charged separately and is not discounted by the reservation. 预留容量是一项计费权益,它将自动应用于新部署或现有部署。Reserved capacity is a billing benefit and will automatically apply to new or existing deployments. 基于 3 年期预留定价并根据过去 30 天内观察到的使用模式进行推测,从而计算各订阅成本节省的预估值。Saving estimates are calculated for individual subscriptions using 3-year reservation pricing and by extrapolating the usage pattern observed over last 30 days. 通过购买预留可以获得共享范围建议,并且可以进一步提高成本节省。Shared scope recommendations are available in reservation purchase experience and can increase savings further.

应用服务印花费预留容量App service stamp fee reserved capacity

我们会分析你在过去 30 天内的应用服务独立环境印花费使用模式,建议你购买可最大限度地节省成本的预留容量。We analyze your App Service isolated environment stamp fees usage pattern over last 30 days and recommend reserved capacity purchase that maximizes your savings. 通过预留容量,可以为独立环境印花费预购买按小时计的使用量,比预付费方式节省更多成本。With reserved capacity you can pre-purchase hourly usage for the isolated environment stamp fee and save over your Pay-for-advance costs. 请注意,预留容量仅适用于印花费,不适用于应用服务实例。Note that reserved capacity only applies to the stamp fee and not to the App Service instances. 预留容量是一项计费权益,它将自动应用于新部署或现有部署。Reserved capacity is a billing benefit and will automatically apply to new or existing deployments. 基于 3 年期预留定价并根据过去 30 天内的使用模式,计算各订阅成本节省的预估值。Saving estimates are calculated for individual subscriptions using 3-year reservation pricing based on usage pattern over last 30 days.

Blob 存储预留容量Blob storage reserved capacity

我们分析了你在过去 30 天内的 Azure Blob 和 Datalake 存储使用情况,并计算出了可最大限度节省成本的预留容量购买量。We analyzed you Azure Blob and Datalake storage usage over last 30 days and calculated reserved capacity purchase that would maximize your savings. 通过预留容量,可以预购买按小时计的使用量,比当前的按需方式节省更多成本。With reserved capacity you can pre-purchase hourly usage and save over your current on-demand costs. Blob 存储预留容量仅适用于存储在 Azure Blob (GPv2)和 Azure Data Lake Storage (Gen 2) 上的数据。Blob storage reserved capacity applies only to data stored on Azure Blob (GPv2) and Azure Data Lake Storage (Gen 2). 预留容量是一项计费权益,它将自动应用于新部署或现有部署。Reserved capacity is a billing benefit and will automatically apply to new or existing deployments. 基于 3 年期预留定价并根据过去 30 天内观察到的使用模式,计算各订阅成本节省的预估值。Saving estimates are calculated for individual subscriptions using 3-year reservation pricing and the usage pattern observed over last 30 days. 通过购买预留可以获得共享范围建议,并且可以进一步提高成本节省。Shared scope recommendations are available in reservation purchase experience and can increase savings further.

MariaDB、MySQL 和 PostgreSQL 预留容量MariaDB, MySQL and PostgreSQL reserved capacity

我们会分析你在过去 30 天内的 Azure Database for MariaDB、Azure Database for MySQL 和 Azure Database for PostgreSQL 使用模式,建议你购买可最大限度地节省成本的预留容量。We analyze your Azure Database for MariaDB, MySQL and PostgreSQL usage pattern over last 30 days and recommend reserved capacity purchase that maximizes your savings. 通过预留容量,可以预购买按小时计的 MariaDB、MySQL 和 PostgreSQL 使用量,节省更多成本。With reserved capacity you can pre-purchase MariaDB, MySQL and PostgreSQL hourly usage and save over your costs. 预留容量是一项计费权益,它将自动应用于新部署或现有部署。Reserved capacity is a billing benefit and will automatically apply to new or existing deployments. 基于 3 年期预留定价并根据过去 30 天内的使用模式,计算各订阅成本节省的预估值。Saving estimates are calculated for individual subscriptions using 3-year reservation pricing and the usage pattern over last 30 days. 通过购买预留可以获得共享范围建议,并且可以进一步提高成本节省。Shared scope recommendations are available in reservation purchase experience and can increase savings further.

Synapse Analytics(以前称为 SQL DW)预留容量Synapse analytics (formerly SQL DW) reserved capacity

我们会分析你在过去 30 天内的 Azure Synapse Analytics 使用模式,建议你购买可以最大限度节省成本的预留容量。We analyze your Azure Synapse Analytics usage pattern over last 30 days and recommend reserved capacity purchase that maximizes your savings. 通过使用预留容量,可以预购买 Synapse Analytics 按小时计的使用量,与按需成本相比节省更多成本。With reserved capacity you can pre-purchase Synapse Analytics hourly usage and save over your on-demand costs. 预留容量是一项计费权益,它将自动应用于新部署或现有部署。Reserved capacity is a billing benefit and will automatically apply to new or existing deployments. 基于 3 年期预留定价并根据过去 30 天内观察到的使用模式,计算各订阅成本节省的预估值。Saving estimates are calculated for individual subscriptions using 3-year reservation pricing and the usage pattern observed over last 30 days. 通过购买预留可以获得共享范围建议,并且可以进一步提高成本节省。Shared scope recommendations are available in reservation purchase experience and can increase savings further.

删除未关联的公共 IP 地址可节省资金Delete unassociated public IP addresses to save money

顾问可以标识目前未关联到 Azure 资源(例如负载均衡器或 VM)的公共 IP 地址。Advisor identifies public IP addresses that are not currently associated to Azure resources such as Load Balancers or VMs. 这些公共 IP 地址会产生少许费用。These public IP addresses come with a nominal charge. 如果不打算使用它们,删除它们可以节省成本。If you do not plan to use them, deleting them can result in cost savings.

删除将要发生故障的 Azure 数据工厂管道Delete Azure Data Factory pipelines that are failing

Azure 顾问会检测到反复发生故障的 Azure 数据工厂管道,并建议你解决问题,或者在不需要这些故障管道的情况下将其删除。Azure Advisor will detect Azure Data Factory pipelines that repeatedly fail and recommend that you resolve the issues or delete the failing pipelines if they are no longer needed. 即使这些管道在发生故障时未为你提供服务,我们也会向你收取相关费用。You will be billed for these pipelines even if though they are not serving you while they are failing.

创建临时 OS 磁盘的建议Create an Ephemeral OS Disk recommendation

使用临时 OS 磁盘,客户可获得以下好处:节省 OS 磁盘的存储成本。With Ephemeral OS Disk, Customers get these benefits: Save on storage cost for OS disk. 降低 OS 磁盘的读取/写入延迟。Get lower read/write latency to OS disk. 通过将 OS(和临时磁盘)重置为其原始状态,加速 VM 重置映像操作。Faster VM Reimage operation by resetting OS (and Temporary disk) to its original state. 对于生存期较短的 IaaS VM 或具有无状态工作负载的 VM,最好使用临时 OS 磁盘。It is more preferable to use Ephemeral OS Disk for short-lived IaaS VMs or VMs with stateless workloads. 顾问对可利用临时 OS 磁盘的资源提出了建议。Advisor has recommendation for resources which can take benefits with Ephemeral OS Disk.

如何访问 Azure 顾问中的成本建议How to access Cost recommendations in Azure Advisor

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

  2. 在任意页面中搜索并选择顾问Search for and select Advisor from any page.

  3. 在顾问仪表板中,选择“成本”选项卡 。On the Advisor dashboard, select the Cost tab.

后续步骤Next steps

若要了解有关顾问建议的详细信息,请参阅以下资源:To learn more about Advisor recommendations, see: