保留折扣套用至 Azure SQL Database 的方式How a reservation discount is applied to Azure SQL Database

購買 Azure SQL Database 保留容量之後,保留折扣就會自動套用至符合保留屬性和數量的 SQL Database。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 Database 的計算成本,包括主要複本和任何可計費的次要複本。A reservation applies to the compute costs of your SQL Database, including the primary replica and any billable secondary replicas. 您必須依標準費率支付軟體、儲存體和網路的費用。You're charged for software, storage, and networking at the normal rates. 您可以利用 Azure Hybrid Benefit 來涵蓋 SQL Database 的授權成本。You can cover the licensing costs for SQL Database with Azure Hybrid Benefit.

請注意,保留折扣並不適用於 Azure SQL Database 無伺服器。Note that reservation discounts do not apply to Azure SQL Database serverless.

若要了解保留的虛擬機器執行個體,請參閱了解 Azure 保留的 VM 執行個體折扣For Reserved Virtual Machine Instances, see Understand Azure Reserved VM Instances discount.

保留折扣的套用方式How reservation discount is applied

保留折扣採「不用則作廢」的原則。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 Database 的折扣Discount applied to running SQL databases

SQL Database 保留容量折扣會套用至執行中的 SQL Database (以小時計算)。The SQL Database reserved capacity discount is applied to running SQL databases on an hourly basis. 您所購買的保留會與對應到執行中 SQL Database 所發出的計算使用量進行比對。The reservation that you buy is matched to the compute usage emitted by the running SQL databases. 對於未執行滿一個小時的 SQL Database,此保留會自動套用至其他與保留屬性相符的 SQL Database。For SQL databases that don't run the full hour, the reservation is automatically applied to other SQL databases matching the reservation attributes. 此折扣可以同時套用至各個執行中的 SQL Database。The discount can apply to SQL databases that are running concurrently. 如果沒有既符合保留屬性又執行滿一個小時的 SQL Database,您就無法獲得該小時的完整保留折扣權益。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 Database 保留容量折扣的套用方式。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 Database 購買 SQL Database 保留容量。Scenario 1: You buy a SQL Database reserved capacity for an 8 core SQL Database. 您所執行的 16 核心 SQL Database 符合保留的其餘屬性。You run a 16 core SQL Database that matches the rest of the attributes of the reservation. 您需要就 8 核心 SQL Database 計算使用量的隨用隨付價格支付費用。You're charged the pay-as-you-go price for 8 cores of SQL Database compute usage. 您會就一小時的 8 核心 SQL Database 計算使用量獲得保留折扣。You get the reservation discount for one hour of 8 core SQL Database compute usage.

針對下列其餘範例,假設您所購買的 SQL Database 保留容量適用於 16 核心的 SQL Database,而且其餘保留屬性符合執行中的 SQL Database。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 Database 達一小時。Scenario 2: You run two SQL databases with 8 cores each for an hour. 16 核心的保留折扣會套用至這兩個 8 核心 SQL Database 的計算使用量。The 16 core reservation discount is applied to compute usage for both the 8 cores SQL databases.
  • 案例 3:您執行了一個 16 核心的 SQL Database,時間從下午 1 點到下午 1:30。Scenario 3: You run one 16 core SQL Database from 1 pm to 1:30 pm. 您執行了另一個 16 核心的 SQL Database,時間從下午 1:30 到下午 2 點。You run another 16 core SQL Database from 1:30 to 2 pm. 兩者都在保留折扣的涵蓋範圍內。Both are covered by the reservation discount.
  • 案例 4:您執行了一個 16 核心的 SQL Database,時間從下午 1 點到下午 1:45。Scenario 4: You run one 16 core SQL Database from 1 pm to 1:45 pm. 您執行了另一個 16 核心的 SQL Database,時間從下午 1:30 到下午 2 點。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.
  • 案例 5:您執行一個 4 核心的 SQL 超大規模資料庫資料庫,具有三個次要複本,每個複本各有 4 個核心。Scenario 5: You run one 4 core SQL Hyperscale database with three secondary replicas, each having 4 cores. 保留會套用至主要複本和所有次要複本的計算使用量。The reservation applies to compute usage for the primary and for all secondary replicas.

若要在計費使用量報告中了解及檢視 Azure Reservations 的應用,請參閱了解 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: