您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

如何将预订折扣应用于 Azure SQL 数据库How a reservation discount is applied to Azure SQL Databases

购买 Azure SQL 数据库预留容量后,预留折扣会自动应用到与预留属性和数量匹配的 SQL 数据库。After you buy an Azure SQL Database reserved capacity, the reservation discount is automatically applied to SQL Databases that match the attributes and quantity of the reservation. 预留涵盖 SQL 数据库的计算成本。A reservation covers the compute costs of your SQL Database. 将按标准费率收取软件、存储和网络费用。You're charged for software, storage, and networking at the normal rates. 可以通过 Azure 混合权益来包含 SQL 数据库的许可成本。You can cover the licensing costs for SQL Databases with Azure Hybrid Benefit.

对于虚拟机预留实例,请参阅了解 Azure 虚拟机预留实例折扣For Reserved Virtual Machine Instances, see Understand Azure Reserved VM Instances discount.

如何应用预订折扣How reservation discount is applied

预订折扣是"使用-it-或-丢失-it"。A reservation discount is "use-it-or-lose-it". 因此,如果任何小时内没有匹配的资源,然后您丢失预订数量的该小时。So, if you don't have matching resources for any hour, then you lose a reservation quantity for that hour. 不能执行将转发未使用保留的小时数。You can't carry forward unused reserved hours.

在关闭资源时,将预订折扣将自动应用于指定范围内的另一个匹配的资源。When you shut down a resource, the reservation discount automatically applies to another matching resource in the specified scope. 如果没有匹配找到资源在指定范围内,则保留的时间为丢失If no matching resources are found in the specified scope, then the reserved hours are lost.

折扣应用于 SQL 数据库Discount applied to SQL Databases

SQL 数据库预留容量折扣按小时应用到正在运行的 SQL 数据库。The SQL Database reserved capacity discount is applied to running SQL Databases on an hourly basis. 购买的预留容量将与运行中 SQL 数据库产生的计算用量进行匹配。The reservation that you buy is matched to the compute usage emitted by the running SQL Databases. 对于不是整小时运行的 SQL 数据库,预留将自动应用到与预留属性匹配其他 SQL 数据库。For SQL Databases that don't run the full hour, the reservation is automatically applied to other SQL Databases matching the reservation attributes. 折扣可以应用到同时运行的 SQL 数据库。The discount can apply to SQL Databases that are running concurrently. 如果与预留属性匹配的 SQL 数据库不是整小时运行,则无法获得该小时的完整预留折扣权益。If you don't have SQL Databases that run for the full hour that match the reservation attributes, you don't get the full benefit of the reservation discount for that hour.

以下示例演示如何根据购买的核心数目以及 SQL 数据库的运行时间,来应用 SQL 数据库预留容量折扣。The following examples show how the SQL Database reserved capacity discount applies depending on the number of cores you bought, and when they're running.

  • 方案 1:为 8 核 SQL 数据库购买了 SQL 数据库预留容量。Scenario 1: You buy a SQL Database reserved capacity for an 8 core SQL Database. 运行一个与剩余预留属性匹配的 16 核 SQL 数据库。You run a 16 core SQL Database that match the rest of the attributes of the reservation. 将按 8 个核心的 SQL 数据库计算用量收取即用即付费用。You're charged the pay-as-you-go price for 8 cores of SQL Database compute usage. 将获得 8 核 SQL 数据库计算用量的一小时预留折扣。You get the reservation discount for one hour of 8 core SQL Database compute usage.

剩余的示例假设购买的 SQL 数据库预留容量用于 16 核 SQL 数据库,并且剩余的预留属性与正在运行的 SQL 数据库相匹配。For the rest of these examples, assume that the SQL Database reserved capacity you buy is for a 16 core SQL Database and the rest of the reservation attributes match the running SQL Databases.

  • 方案 2:运行两个 8 核 SQL 数据库,各运行一小时。Scenario 2: You run two SQL Databases with 8 cores each for an hour. 将对 8 核 SQL 数据库的计算用量应用 16 核预留折扣。The 16 core reservation discount is applied to compute usage for both the 8 cores SQL Databases.
  • 方案 3:从下午 1 点到下午 1:30 运行一个 16 核 SQL 数据库。Scenario 3: You run one 16 core SQL Database from 1 pm to 1:30 pm. 从下午 1:30 到下午 2 点运行另一个 16 核 SQL 数据库。You run another 16 core SQL Database from 1:30 to 2 pm. 预留折扣同时涵盖这两个数据库。Both are covered by the reservation discount.
  • 情景 4:从下午 1 点到下午 1:45 运行一个 16 核 SQL 数据库。Scenario 4: You run one 16 core SQL Database from 1 pm to 1:45 pm. 从下午 1:30 到下午 2 点运行另一个 16 核 SQL 数据库。You run another 16 core SQL Database from 1:30 to 2 pm. 将收取 15 分钟重叠期的即用即付费用。You're charged the pay-as-you-go price for the 15-minute overlap. 预留折扣将应用到剩余时间的计算用量。The reservation discount applies to the compute usage for the rest of the time.

若要了解 Azure 预留的应用情况并在计费使用情况报告中查看该信息,请参阅了解 Azure 预留使用情况To understand and view the application of your Azure Reservations in billing usage reports, see Understand Azure reservation usage.

需要帮助?Need help? 联系我们Contact us

如果有疑问或需要帮助,请创建支持请求If you have questions or need help, create a support request.

后续步骤Next steps

若要了解有关 Azure 预订的详细信息,请参阅以下文章:To learn more about Azure Reservations, see the following articles: