利用保留 VM 執行個體獲得虛擬機器大小彈性Virtual machine size flexibility with Reserved VM Instances

當您購買保留的 VM 實例時,您可以選擇針對實例大小彈性或容量優先順序進行優化。When you buy a Reserved VM Instance, you can choose to optimize for instance size flexibility or capacity priority. 如需有關為保留的 VM 實例設定或變更 [優化] 設定的詳細資訊,請參閱 變更保留的 vm 實例的優化設定For more information about setting or changing the optimize setting for reserved VM instances, see Change the optimize setting for reserved VM instances.

使用已針對實例大小彈性進行優化的保留虛擬機器實例,您購買的保留可套用至虛擬機器 (Vm) 大小調整為相同的實例大小彈性群組。With a reserved virtual machine instance that's optimized for instance size flexibility, the reservation you buy can apply to the virtual machines (VMs) sizes in the same instance size flexibility group. 例如,如果您針對 DSv2 系列所列的 VM 大小(例如 Standard_DS3_v2)購買保留,保留折扣可以套用至相同實例大小彈性群組中列出的其他大小:For example, if you buy a reservation for a VM size that's listed in the DSv2 Series, like Standard_DS3_v2, the reservation discount can apply to the other sizes that are listed in that same instance size flexibility group:

  • Standard_DS1_v2Standard_DS1_v2
  • Standard_DS2_v2Standard_DS2_v2
  • Standard_DS3_v2Standard_DS3_v2
  • Standard_DS4_v2Standard_DS4_v2

但保留折扣不適用於不同實例大小彈性群組中所列的 Vm 大小,例如 DSv2 系列中的 Sku 高記憶體: Standard_DS11_v2、Standard_DS12_v2 等等。But that reservation discount doesn't apply to VMs sizes that are listed in different instance size flexibility groups, like SKUs in DSv2 Series High Memory: Standard_DS11_v2, Standard_DS12_v2, and so on.

在 [實例大小彈性] 群組中,保留折扣適用的 Vm 數目取決於您購買保留時所選擇的 VM 大小。Within the instance size flexibility group, the number of VMs the reservation discount applies to depends on the VM size you pick when you buy a reservation. 此外,也取決於您執行中 VM 的大小。It also depends on the sizes of the VMs that you have running. 比率資料行會比較該實例大小彈性群組中每個 VM 大小的相對使用量。The ratio column compares the relative footprint for each VM size in that instance size flexibility group. 請使用比例值來計算保留項目折扣適用於您執行中 VM 的程度。Use the ratio value to calculate how the reservation discount applies to the VMs you have running.

範例Examples

下列範例使用 DSv2 系列資料表中的大小和比例。The following examples use the sizes and ratios in the DSv2-series table.

您購買大小為 Standard_DS4_v2 的保留 VM 執行個體,其相較於該系列中其他大小的比例 (相對使用量) 為 8。You buy a reserved VM instance with the size Standard_DS4_v2 where the ratio or relative footprint compared to the other sizes in that series is 8.

  • 案例 1:以 1 的比例執行八個 Standard_DS1_v2 大小的 VM。Scenario 1: Run eight Standard_DS1_v2 sized VMs with a ratio of 1. 保留項目折扣適用於這八個 VM 全部。Your reservation discount applies to all eight of those VMs.
  • 案例 2:以各為 2 的比例執行兩個 Standard_DS2_v2 大小的 VM。Scenario 2: Run two Standard_DS2_v2 sized VMs with a ratio of 2 each. 此外,以 4 的比例執行一個 Standard_DS3_v2 大小的 VM。Also run a Standard_DS3_v2 sized VM with a ratio of 4. 總使用量是 2+2+4=8。The total footprint is 2+2+4=8. 因此,保留項目折扣適用於這三個 VM 全部。So your reservation discount applies to all three of those VMs.
  • 案例 3:以 16 的比例執行一個 Standard_DS5_v2。Scenario 3: Run one Standard_DS5_v2 with a ratio of 16. 保留項目折扣適用於該 VM 計算費用的一半。Your reservation discount applies to half that VM's compute cost.
  • 案例4:執行一個比例為16的 Standard_DS5_v2,並購買比例為8的額外 Standard_DS4_v2 保留。Scenario 4: Run one Standard_DS5_v2 with a ratio of 16 and purchase an additional Standard_DS4_v2 reservation with a ratio of 8. 這兩個保留都會合並並將折扣套用至整個 VM。Both reservations combine and apply the discount to entire VM.

下列各節說明在購買已針對執行個體大小彈性進行最佳化的保留 VM 執行個體時,相同大小系列群組中有哪些大小。The following sections show what sizes are in the same size series group when you buy a reserved VM instance optimized for instance size flexibility.

Vm 的實例大小彈性比率Instance size flexibility ratio for VMs

下列 CSV 具有實例大小彈性群組、ArmSkuName 和比例。CSV below has the instance size flexibility groups, ArmSkuName and the ratios.

實例大小彈性比例Instance size flexibility ratios

Azure 會保持連結與架構的更新,讓您能夠以程式設計方式使用檔案。Azure keeps link and schema updated so that you can use the file programmatically.

查看 VM 大小建議View VM size recommendations

Azure 會在購買體驗中顯示 VM 大小建議。Azure shows VM size recommendations in the purchase experience. 若要查看最小的大小建議,請選取 [ 依最小大小分組]。To view the smallest size recommendations, select Group by smallest size.

顯示建議數量的螢幕擷取畫面。

下一步Next steps

如需詳細資訊,請參閱 什麼是 Azure 保留專案。For more information, see What are Azure Reservations.