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

通过 Azure SQL 数据库预留容量预付 SQL 数据库计算资源费用Prepay for SQL Database compute resources with Azure SQL Database reserved capacity

与即用即付相比,预付计算资源费用可以节省 Azure SQL 数据库的成本。Save money with Azure SQL Database by prepaying for compute resources compared to pay-as-you-go prices. 通过 Azure SQL 数据库预留容量,可以提前承诺为期一年或三年的 SQL 数据库购买量,以获得可观的计算资源价格折扣。With Azure SQL Database reserved capacity, you make an upfront commitment on SQL Database for a period of one or three years to get a significant discount on the compute costs. 若要购买 SQL 数据库预留容量,需要指定 Azure 区域、部署类型、性能层和期限。To purchase SQL Database reserved capacity, you need to specify the Azure region, deployment type, performance tier, and term.

不需要将预留容量分配给特定的 SQL 数据库实例(单一数据库、弹性池或托管实例)。You do not need to assign the reservation to specific SQL Database instances (single databases, elastic pools, or managed instances). 已在运行或者新部署的匹配 SQL 数据库实例将自动获得此权益。Matching SQL Database instances, that are already running or ones that are newly deployed, will automatically get the benefit. 购买预留容量便会预付为期一年或三年的计算资源费用。By purchasing a reservation, you are pre-paying for the compute costs for a period of one or three years. 购买预留容量后,与预留属性匹配的 SQL 数据库计算资源费用不再按照即用即付的费率计收。As soon as you buy a reservation, the SQL Database compute charges that match the reservation attributes are no longer charged at the pay-as-you go rates. 预留容量不包括与 SQL 数据库实例关联的软件、网络或存储费用。A reservation does not cover software, networking, or storage charges associated with the SQL Database instance. 预留期限结束时,计费权益随即过期,SQL 数据库将按即用即付价格计费。At the end of the reservation term, the billing benefit expires and the SQL Databases are billed at the pay-as-you go price. 虚拟机预留实例不自动续订。Reservations do not auto-renew. 有关定价信息,请参阅 SQL 数据库预留容量套餐For pricing information, see the SQL Database reserved capacity offering.

可在 Azure 门户中购买 Azure SQL 数据库预留容量。You can buy Azure SQL Database reserved capacity in the Azure portal. 购买 SQL 数据库预留容量:To buy SQL Database reserved capacity:

  • 您必须至少一个企业或即用即付费率使用单独的订阅的所有者角色。You must be in the owner role for at least one Enterprise or individual subscription with pay-as-you-go rates.
  • 对于企业订阅,必须在 EA 门户中启用“添加预留实例” 。For Enterprise subscriptions, Add Reserved Instances must be enabled in the EA portal. 或者,如果禁用了该设置,则必须是订阅的 EA 管理员。Or, if that setting is disabled, you must be an EA Admin on the subscription.
  • 对于云解决方案提供商 (CSP) 计划,只有管理员代理或销售代理可以购买 SQL 数据库预留容量。For Cloud Solution Provider (CSP) program, only the admin agents or sales agents can purchase SQL Database reserved capacity.

有关预留购买如何针对企业客户和即用即付客户进行计费的详细信息,请参阅了解适用于企业合约的 Azure 预留使用情况了解即用即付订阅的 Azure 预留使用情况The details on how enterprise customers and Pay-As-You-Go customers are charged for reservation purchases, see understand Azure reservation usage for your Enterprise enrollment and understand Azure reservation usage for your Pay-As-You-Go subscription.

购买之前确定正确的 SQL 大小Determine the right SQL size before purchase

预留容量的大小应基于特定区域中使用相同性能层和硬件代次的现有或即将部署的单一数据库、弹性池或托管实例所用的计算资源总量。The size of reservation should be based on the total amount of compute used by the existing or soon-to-be-deployed single databases, elastic pools, or managed instances within a specific region and using the same performance tier and hardware generation.

例如,假设你要运行一个常规用途的第 5 代 16 vCore 弹性池,以及两个业务关键型的第 5 代 4 vCore 单一数据库。For example, let's suppose that you are running one general purpose, Gen5 – 16 vCore elastic pool, and two business critical, Gen5 – 4 vCore single databases. 此外,假设你打算在下个月额外部署一个常规用途的第 5 代 16 vCore 弹性池,以及一个业务关键型的第 5 代 32 vCore 弹性池。Further, let's supposed that you plan to deploy within the next month an additional general purpose, Gen5 – 16 vCore elastic pool, and one business critical, Gen5 – 32 vCore elastic pool. 我们还假设你知道在至少 1 年的时间内,都需要这些资源。Also, let's suppose that you know that you will need these resources for at least 1 year. 在这种情况下,应该购买 32 (2x16) 个 vCore、1 年的“常规用途 - 第 5 代”单一数据库/弹性池的预留容量,以及 40 (2x4 + 32) 个 vCore、1 年的“业务关键 - 第 5 代”单一数据库/弹性池的预留容量。In this case, you should purchase a 32 (2x16) vCores, 1 year reservation for single database/elastic pool general purpose - Gen5 and a 40 (2x4 + 32) vCore 1 year reservation for single database/elastic pool business critical - Gen5.

购买 SQL 数据库预留容量Buy SQL Database reserved capacity

  1. 登录到 Azure 门户Sign in to the Azure portal.
  2. 选择“所有服务” > “预订” 。Select All services > Reservations.
  3. 选择,然后在购买预订窗格中,选择SQL 数据库以购买新的保留的 SQL 数据库。Select Add and then in the Purchase reservations pane, select SQL Database to purchase a new reservation for SQL Database.
  4. 填写必填的字段。Fill-in the required fields. 与所选属性匹配的现有或新的单一数据库、弹性池或托管实例符合享受预留容量折扣的条件。Existing or new single databases, elastic pools, or managed instances that match the attributes you select qualify to get the reserved capacity discount. 获得折扣的 SQL 数据库实例的实际数目取决于所选范围和数量。The actual number of your SQL Database instances that get the discount depend on the scope and quantity selected. 提交 SQL 数据库之前的屏幕快照保留的容量购买Screenshot before submitting the SQL Database reserved capacity purchase

下表介绍必填的字段。The following table describes required fields.

字段Field 描述Description
订阅Subscription 用于支付 SQL 数据库预留容量预订费用的订阅。The subscription used to pay for the SQL Database reserved capacity reservation. 订阅付款方式是收取 SQL 数据库预留容量的预付费用。The payment method on the subscription is charged the upfront costs for the SQL Database reserved capacity reservation. 订阅类型必须是企业协议(产品/服务编号:MS-AZR-0017P 或 MS-条-0148 P) 或与即用即付定价的单个协议 (产品/服务编号:MS-AZR-0003P 或 MS-AZR-0023P)。The subscription type must be an enterprise agreement (offer numbers: MS-AZR-0017P or MS-AZR-0148P) or an individual agreement with pay-as-you-go pricing (offer numbers: MS-AZR-0003P or MS-AZR-0023P). 对于企业订阅,从注册的货币承诺余额中扣除费用或作为超额收取费用。For an enterprise subscription, the charges are deducted from the enrollment's monetary commitment balance or charged as overage. 对于个人订阅即用即付定价,费用将信用卡或发票付款方式的订阅计费。For an individual subscription with pay-as-you-go pricing, the charges are billed to the credit card or invoice payment method on the subscription.
范围Scope vCore 预留范围可以包括一个订阅或多个订阅(共享范围)。The vCore reservation’s scope can cover one subscription or multiple subscriptions (shared scope). 如果选择:If you select:

共享,vCore 预订折扣应用到任何订阅计费上下文中运行的 SQL 数据库实例。Shared, the vCore reservation discount is applied to SQL Database instances running in any subscriptions within your billing context. 对于企业客户,共享范围是注册范围,包括注册中的所有订阅。For enterprise customers, the shared scope is the enrollment and includes all subscriptions within the enrollment. 对于即用即付客户,共享范围是由帐户管理员创建的所有即用即付订阅。For Pay-As-You-Go customers, the shared scope is all Pay-As-You-Go subscriptions created by the account administrator.

单一订阅,vCore 预订折扣应用于此订阅中的 SQL 数据库实例。Single subscription, the vCore reservation discount is applied to SQL Database instances in this subscription.

单个资源组,预订折扣应用于所选的订阅和该订阅中的所选的资源组中的 SQL 数据库实例。Single resource group, the reservation discount is applied to SQL Database instances in the selected subscription and the selected resource group within that subscription.
区域Region 预订的 SQL 数据库预留容量涵盖的 Azure 区域。The Azure region that’s covered by the SQL Database reserved capacity reservation.
部署类型Deployment Type 要为其购买预留容量的 SQL 资源类型。The SQL resource type that you want to buy the reservation for.
性能层Performance Tier SQL 数据库实例的服务层级。The service tier for the SQL Database instances.
术语Term 一年或三年。One year or three years.
数量Quantity 在 SQL 数据库预留容量预订中购买的实例数。The number of instances being purchased within the SQL Database reserved capacity reservation. 该数量是可以获得计费折扣的运行中 SQL 数据库实例数。The quantity is the number of running SQL Database instances that can get the billing discount. 例如,如果在美国东部运行 10 个 SQL 数据库实例,则将数量指定为 10,以将所有正在运行的虚拟机的权益最大化。For example, if you are running 10 SQL Database instances in the East US, then you would specify quantity as 10 to maximize the benefit for all running machines.
  1. 费用部分查看 SQL 数据库预留容量的预订费用。Review the cost of the SQL Database reserved capacity reservation in the Costs section.
  2. 选择“购买”。 Select Purchase.
  3. 选择“查看此预订” 以查看购买的状态。Select View this Reservation to see the status of your purchase.

取消和更换Cancellations and exchanges

如果需要取消你的 SQL 数据库预留容量预订,可能会产生 12% 的提前终止费。If you need to cancel your SQL Database reserved capacity reservation, there may be a 12% early termination fee. 退款根据购买价格和当前预留价格中的最低者计算。Refunds are based on the lowest price of either your purchase price or the current price of the reservation. 退款限制为每年 50,000 美元。Refunds are limited to $50,000 per year. 收到的退款为按比例计算出的余额减去 12% 的提前终止费。The refund you receive is the remaining pro-rated balance minus the 12% early termination fee. 若要请求取消,请在 Azure 门户中访问该预留,并选择“退款” 创建支持请求。To request a cancellation, go to the reservation in the Azure portal and select Refund to create a support request.

如果需要将 SQL 数据库预留容量预订更改为其他区域、部署类型、性能层或期限,可以将其更换为价值相等或更高的另一个预订。If you need to change your SQL Database reserved capacity reservation to another region, deployment type, performance tier, or term, you can exchange it for another reservation that's of equal or greater value. 新订购项目的期限开始日期不是从交换的订购项目延续。The term start date for the new reservation doesn't carry over from the exchanged reservation. 1 年或 3 年期限从创建新订购项目开始算起。The 1 or 3 year term starts from when you create the new reservation. 若要请求交换,请在 Azure 门户中访问该预留,并选择“交换” 创建支持请求。To request an exchange, go to the reservation in the Azure portal, and select Exchange to create a support request.

有关如何对 exchange 或退款保留的详细信息,请参阅保留交换和退款For more information about how to exchange or refund reservations, see Reservation exchanges and refunds.

vCore 大小灵活性vCore size flexibility

vCore 大小灵活性有助于在同一性能层和区域内纵向扩展或收缩,且不会丢失预留容量权益。vCore size flexibility helps you scale up or down within a performance tier and region, without losing the reserved capacity benefit. SQL 数据库预留容量还提供了灵活性,使用户可以在正常操作过程中临时在池和单一数据库之间移动正在使用的数据库(在同一区域和性能层内),而不会失去预留容量权益。SQL Database reserved capacity also provides you with the flexibility to temporarily move your hot databases between pools and single databases as part of your normal operations (within the same region and performance tier) without losing the reserved capacity benefit. 通过在预订中保留一个未应用的缓冲区,你可以在不超出预算的情况下有效地管理性能峰值。By keeping an un-applied buffer in your reservation, you can effectively manage the performance spikes without exceeding your budget.

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

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

后续步骤Next steps

vCore 预留折扣自动应用到与 SQL 数据库预留容量预订范围和属性匹配的 SQL 数据库实例数目。The vCore reservation discount is applied automatically to the number of SQL Database instances that match the SQL Database reserved capacity reservation scope and attributes. 可以通过 Azure 门户、PowerShell、CLI 或 API 更新 SQL 数据库预留容量的预订范围。You can update the scope of the SQL Database reserved capacity reservation through Azure portal, PowerShell, CLI or through the API.

若要了解如何管理 SQL 数据库预留容量的预订,请参阅管理 SQL 数据库预留容量To learn how to manage the SQL Database reserved capacity reservation, see manage SQL Database reserved capacity.

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