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

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

本文帮助你了解在一般情况下如何应用预留实例折扣。This article helps you understand how reserved instance discounts are generally applied. 预留折扣适用于与购买预留时选择的属性相匹配的资源使用情况。The reservation discount applies to the resource usage matching the attributes you select when you buy the reservation. 属性包括匹配的 VM、SQL 数据库、Azure Cosmos DB 或其他资源的运行范围。Attributes include the scope where the matching VMs, SQL databases, Azure Cosmos DB, or other resources run. 例如,如果需要“美国西部”区域四个标准 D2 虚拟机的预留折扣,请选择正在运行的 VM 所在的订阅。For example, if you want a reservation discount for four Standard D2 virtual machines in the West US region, then select the subscription where the VMs are running.

预留折扣的性质是“不用就会失效” 。A reservation discount is "use-it-or-lose-it". 如果你在任何小时内没有匹配资源,那么你将丢失该小时的预留数量。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.

例如,你可能会在以后创建一个资源,并包含一个利用不足的匹配预留项。For example, you might later create a resource and have a matching reservation that is underutilized. 预留折扣将自动应用到新的匹配资源。The reservation discount automatically applies to the new matching resource.

如果虚拟机是在注册/帐户的不同订阅中运行,则请选择作为共享的范围。If the virtual machines are running in different subscriptions within your enrollment/account, then select the scope as shared. 共享范围允许跨订阅应用预留折扣。Shared scope allows the reservation discount to be applied across subscriptions. 可在购买预留后更改范围。You can change the scope after you buy a reservation. 有关详细信息,请参阅管理 Azure 预订For more information, see Manage Azure Reservations.

预留折扣仅适用于与企业、Microsoft 客户协议、CSP 或采用即用即付费率的订阅相关联的资源。A reservation discount only applies to resources associated with Enterprise, Microsoft Customer Agreement, CSP, or subscriptions with pay-as-you go rates. 订阅中运行的其他产品/服务类型的资源无法获得预订折扣。Resources that run in a subscription with other offer types don't receive the reservation discount.

当预留期限过期时When the reservation term expires

预留期限结束时,计费折扣随即过期,资源将按即用即付价格计费。At the end of the reservation term, the billing discount expires, and the resources are billed at the pay-as-you go price. 默认情况下,预留未设置为自动续订。By default, the reservations are not set to renew automatically. 可以通过在续订设置中选择相应的选项来选择启用预留的自动续订。You can choose to enable automatic renewal of a reservation by selecting the option in the renewal settings. 如果使用自动续订,则在现有预留到期后,将购买替换预留。With automatic renewal, a replacement reservation will be purchased upon expiry of the existing reservation. 默认情况下,替换预留具有与过期预留相同的属性,你可以选择更改续订设置中的计费频率、期限或数量。By default, the replacement reservation has the same attributes as the expiring reservation, optionally you change the billing frequency, term, or quantity in the renewal settings. 对用于计费的预留和订阅拥有所有者访问权限的任何用户都可以设置续订。Any user with owner access on the reservation and the subscription used for billing can set up renewal.

折扣适用于不同的大小Discount applies to different sizes

购买预订时,折扣可以应用于具有同一大小组中属性的其他实例。When you buy a reservation, the discount can apply to other instances with attributes that are within the same size group. 此功能称为“实例大小灵活性”。This feature is known as instance size flexibility. 折扣覆盖范围的灵活性取决于预订的类型以及购买预订时选择的特性。The flexibility of the discount coverage depends on the type of reservation and the attributes you pick when you buy the reservation.

服务计划:Service plans:

  • 虚拟机预留实例:购买预留项时,如果选择“针对实例大小灵活性进行优化” ,则折扣覆盖范围将取决于所选的 VM 大小。Reserved VM Instances: When you buy the reservation and select Optimized for instance size flexibility, the discount coverage depends on the VM size you select. 预订可以应用于同一大小系列组中的虚拟机 (VM) 大小。The reservation can apply to the virtual machines (VMs) sizes in the same size series group. 有关详细信息,请参阅预订 VM 实例的虚拟机大小灵活性For more information, see Virtual machine size flexibility with Reserved VM Instances.
  • Azure 存储预留容量:你可以购买标准 Azure 存储帐户的预留容量(单位为每月 100 TiB 或 1 PiB)。Azure Storage reserved capacity: You can purchase reserved capacity for standard Azure Storage accounts in units of 100 TiB or 1 PiB per month. 若要了解哪些区域支持 Azure 存储预留容量,请参阅块 blob 定价For information about which regions support Azure Storage reserved capacity, see Block blob pricing. Azure 存储预留容量可用于所有访问层(热、冷、存档)和任何复制配置(LRS、GRS 或 ZRS)。Azure Storage reserved capacity is available for all access tiers (hot, cool, and archive) and for any replication configuration (LRS, GRS, or ZRS).
  • SQL 数据库预留容量:折扣覆盖范围取决于所选的性能层。SQL Database reserved capacity: The discount coverage depends on the performance tier you pick. 有关详细信息,请参阅了解如何应用 Azure 预订折扣For more information, see Understand how an Azure reservation discount is applied.
  • Azure Cosmos DB 预留容量:折扣覆盖范围取决于预配的吞吐量。Azure Cosmos DB reserved capacity: The discount coverage depends on the provisioned throughput. 有关详细信息,请参阅了解如何应用 Azure Cosmos DB 预订折扣For more information, see Understand how an Azure Cosmos DB reservation discount is applied.

对特定 Azure 服务应用折扣的方式How discounts apply to specific Azure services

请阅读以下适用于自己的文章,了解如何对特定的 Azure 服务应用折扣:Read the following articles that apply to you to learn how discounts apply to a specific Azure service:

后续步骤Next steps