使用保留容量來節省資源成本-Azure SQL Database & SQL 受控執行個體Save costs for resources with reserved capacity - Azure SQL Database & SQL Managed Instance

適用於: Azure SQL Database Azure SQL 受控執行個體

藉由承諾與隨用隨付價格相較的計算資源保留,來節省 Azure SQL Database 和 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 Database 及/或 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.

例如,假設您執行的是一個一般用途第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) 虛擬核心1年的保留,以及針對單一資料庫/彈性集區商務關鍵第5代) vCore 1 年保留的 40 (2x4 + 32 1 年的保留。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 Database 購買 SQL Database 的新保留。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 Database 和 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. 訂用帳戶類型必須是 enterprise 合約 (供應專案號碼 MS-AZR-0003P->ms-azr-0017p 或 MS-AZR-0003P-Ms-azr-0148p) 或具有隨用隨付定價的個別合約 (供應專案號碼: MS-MS-AZR-0003P-Ms-azr-0003p 或 MS-MS-AZR-0003P-Ms-azr-0023p) 。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). 針對企業訂用帳戶,費用會從註冊的承諾用量金額餘額扣除或作為超額部分收費。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 保留折扣會套用至在帳單內容內的任何訂用帳戶中執行的資料庫或受控實例。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 區域和效能層級中所保留的虛擬核心數,將會取得帳單折扣。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. 例如,如果您執行或計畫在美國東部區域中執行多個資料庫,且其計算容量總計為第5代16虛擬核心,則您會將數量指定為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 Database 中保留以 DTU 為基礎的 (basic、standard 或 premium) 資料庫。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: