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

虚拟机预留实例的虚拟机大小灵活性Virtual machine size flexibility with 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_DS5_v2, 则预订折扣适用于同一实例大小灵活性组中列出的其他四种大小:For example, if you buy a reservation for a VM size that's listed in the DSv2 Series, like Standard_DS5_v2, the reservation discount can apply to the other four 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 的虚拟机预留实例,其中的比率或相对于该系列中其他大小的占用量为 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:运行 8 个比率为 1 的 Standard_DS1_v2 大小的 VM。Scenario 1: Run eight Standard_DS1_v2 sized VMs with a ratio of 1. 预留折扣适用于这所有 8 个 VM。Your reservation discount applies to all eight of those VMs.
  • 方案 2:运行 2 个 Standard_DS2_v2 大小的 VM,每个的比率为 2。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. 因此,预留折扣适用于这所有 3 个 VM。So your reservation discount applies to all three of those VMs.
  • 方案 3:运行 1 个比率为 16 的 Standard_DS5_v2 大小的 VM。Scenario 3: Run one Standard_DS5_v2 with a ratio of 16. 预留折扣适用于该 VM 的半数计算费用。Your reservation discount applies to half that VM's compute cost.

以下部分介绍了在购买优化的可以灵活调整实例大小的虚拟机预留实例时,同一大小系列组中有哪些大小。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

我们会保持文件 URL 和架构是固定的, 以便可以通过编程方式使用此文件。We will keep the file URL and the schema fixed so you can consume this file programmatically. 此外, 还可以通过 API 获取数据。The data will also be available through API soon.