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

利用保留容量节省资源成本-Azure SQL 数据库 & SQL 托管实例Save costs for resources with reserved capacity - Azure SQL Database & SQL Managed Instance

适用于: Azure SQL 数据库 Azure SQL 托管实例

与即用即付价格相比,将 Azure SQL 数据库和 SQL 托管实例与即用即付价格相比,为计算资源节省资金。Save money with Azure SQL Database and SQL Managed Instance by committing to a reservation for compute resources compared to pay-as-you-go prices. 利用预留容量,你可以对 SQL 数据库和/或 SQL 托管实例使用一年或三年的时间,以获得有关计算成本的重要折扣。With reserved capacity, you make a commitment for SQL Database and/or SQL Managed Instance use for a period of one or three years to get a significant discount on the compute costs. 若要购买保留容量,需要指定 Azure 区域、部署类型、性能层和术语。To purchase reserved capacity, you need to specify the Azure region, deployment type, performance tier, and term.

不需要将保留分配给特定的数据库或托管实例。You do not need to assign the reservation to a specific database or managed instance. 匹配已在运行的现有部署或新部署的部署会自动获得权益。Matching existing deployments that are already running or ones that are newly deployed automatically get the benefit. 购买预订后,可在一年或三年的时间内承诺计算成本。By purchasing a reservation, you commit to usage for the compute costs for a period of one or three years. 一旦购买了预订,就不再按即用即付费率对与预订属性匹配的计算费用收费。As soon as you buy a reservation, the compute charges that match the reservation attributes are no longer charged at the pay-as-you go rates.

预订同时适用于主要和计费辅助计算副本,但不包括与服务相关联的软件、网络或存储费用。A reservation applies to both primary and billable secondary compute replicas, but does not cover software, networking, or storage charges associated with the service. 在保留期结束时,计费权益过期,数据库或托管实例按即用即付价格计费。At the end of the reservation term, the billing benefit expires and the database or managed instance is billed at the pay-as-you go price. 保留不自动续订。Reservations do not automatically renew. 有关定价信息,请参阅 保留容量产品For pricing information, see the reserved capacity offering.

可以在 Azure 门户中购买保留容量。You can buy reserved capacity in the Azure portal. 通过提前付款或按月付款的方式为预留付款。Pay for the reservation up front or with monthly payments. 购买预留容量:To buy 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. 保留容量。Reserved capacity.

有关企业客户和即用即付客户如何针对预订购买付费的详细信息,请参阅 了解企业注册的 azure 保留使用情况了解即用即付订阅的 azure 保留使用情况For more information about 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.

备注

购买保留容量并不会为你使用) (虚拟机或节点预分配或保留特定的基础结构资源。Purchasing reserved capacity does not pre-allocate or reserve specific infrastructure resources (virtual machines or nodes) for your use.

在购买之前确定正确的大小Determine correct 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 database or managed instance within a specific region and using the same performance tier and hardware generation.

例如,假设你正在运行一个通用的 Gen5 – 16 vCore 弹性池和两个业务关键 Gen5 – 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. 接下来,假设你计划在下个月中部署一个额外的常规用途 Gen5 – 16 vCore 弹性池和一个业务关键 Gen5 – 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 年保留,适用于单一数据库/弹性池常规用途-Gen5 和 40 (2x4 + 32) vCore 1 年保留用于单数据库/弹性池业务关键-Gen5。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.

购买预留容量Buy 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. SQL 数据库中的现有数据库和与选择的属性相匹配的 SQL 托管实例都有资格获取预留容量折扣。Existing databases in SQL Database and SQL Managed Instance that match the attributes you select qualify to get the reserved capacity discount. 获取折扣的数据库或托管实例的实际数目取决于所选的范围和数量。The actual number of databases or managed instances that get the discount depends on the scope and quantity selected.

    提交保留容量购买之前的屏幕截图

    下表描述了必填字段。The following table describes required fields.

    字段Field 说明Description
    订阅Subscription 用于支付产能预留的订阅。The subscription used to pay for the capacity reservation. 将向订阅的付款方式收取预订的预付费用。The payment method on the subscription is charged the upfront costs for the reservation. 订阅类型必须是企业协议 (产品/服务的 Ms-azr-0017p 或 BC-OP-NT-AZR-Ms-azr-0148p) ,或具有即用即付定价的单个协议 (产品编号为 MS-BC-OP-NT-AZR 或 bc-op-nt-azr-ms-azr-0003p) 。The subscription type must be an enterprise agreement (offer number MS-AZR-0017P or MS-AZR-0148P) or an individual agreement with pay-as-you-go pricing (offer number MS-AZR-0003P or MS-AZR-0023P). 对于企业订阅,将从注册的 Azure 预付款 (之前称为货币承诺) 余额或按超额支付收费。For an enterprise subscription, the charges are deducted from the enrollment's Azure Prepayment (previously called 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 预订折扣应用于计费上下文内任何订阅中运行的数据库或托管实例。Shared, the vCore reservation discount is applied to the database or managed instance 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 预订折扣将应用到此订阅中的数据库或托管实例。Single subscription, the vCore reservation discount is applied to the databases or managed instances in this subscription.

    单个资源组,预订折扣应用于所选订阅中的数据库实例或托管实例,以及该订阅内的所选资源组。Single resource group, the reservation discount is applied to the instances of databases or managed instances in the selected subscription and the selected resource group within that subscription.
    区域Region 容量保留所涵盖的 Azure 区域。The Azure region that's covered by the capacity reservation.
    部署类型Deployment Type 要为其购买预留容量的 SQL 资源类型。The SQL resource type that you want to buy the reservation for.
    性能层Performance Tier 数据库或托管实例的服务层。The service tier for the databases or managed instances.
    术语Term 一年或三年。One year or three years.
    数量Quantity 在容量保留内购买的计算资源量。The amount of compute resources being purchased within the capacity reservation. 该数量是所选 Azure 区域和正在保留的性能层中的 Vcore 数,将获得计费折扣。The quantity is a number of vCores in the selected Azure region and Performance tier that are being reserved and will get the billing discount. 例如,如果运行或计划运行的多个数据库的总计算能力为 "美国东部" 区域的 Gen5 16 Vcore,则可将数量指定为16,以最大程度地提高所有数据库的权益。For example, if you run or plan to run multiple databases with the total compute capacity of Gen5 16 vCores in the East US region, then you would specify the quantity as 16 to maximize the benefit for all the databases.
  5. 在 " 成本 " 部分中查看容量预留的成本。Review the cost of the capacity reservation in the Costs section.

  6. 选择“购买”。Select Purchase.

  7. 选择“查看此预订”以查看购买的状态。Select View this Reservation to see the status of your purchase.

对预留执行取消、交换或退款操作Cancel, exchange, or refund reservations

可以在一定的限制下对预留执行取消、交换或退款操作。You can cancel, exchange, or refund reservations with certain limitations. 有关详细信息,请参阅 Azure 预留的自助交换和退款For more information, see Self-service exchanges and refunds for Azure Reservations.

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. 保留容量还能让你灵活地将热数据库移入和移出弹性池 (在同一区域和性能层中,) 作为正常操作的一部分,而不会丢失保留容量权益。Reserved capacity also provides you with the flexibility to temporarily move your hot databases in and out of elastic pools (within the same region and performance tier) as part of your normal operations without losing the reserved capacity benefit. 通过保留保留中未使用的缓冲区,可以有效地管理性能峰值,而不会超出预算。By keeping an unapplied buffer in your reservation, you can effectively manage the performance spikes without exceeding your budget.

限制Limitation

不能在 SQL 数据库中保留基于 DTU 的 (基本、标准或高级) 的数据库。You cannot reserve DTU-based (basic, standard, or premium) databases in SQL Database.

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

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

后续步骤Next steps

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

若要了解如何管理容量预留,请参阅 管理预留容量To learn how to manage the capacity reservation, see manage reserved capacity.

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