使用 Azure 门户创建邻近放置组Create a proximity placement group using the Azure portal

若要让 VM 尽可能靠近,将延迟尽可能降至最低,应将 VM 部署到一个邻近放置组中。To get VMs as close as possible, achieving the lowest possible latency, you should deploy them within a proximity placement group.

邻近放置组是一种逻辑分组,用于确保 Azure 计算资源在物理上彼此靠近。A proximity placement group is a logical grouping used to make sure that Azure compute resources are physically located close to each other. 邻近放置组用于要求低延迟的工作负荷。Proximity placement groups are useful for workloads where low latency is a requirement.

备注

邻近放置组不能与专用主机一起使用。Proximity placement groups cannot be used with dedicated hosts.

创建邻近放置组Create the proximity placement group

  1. 在搜索中键入“邻近放置组”。Type proximity placement group in the search.

  2. 在搜索结果中的“服务”下,选择“邻近放置组”。Under Services in the search results, select Proximity placement groups.

  3. 在“邻近放置组”页面中,选择“添加”。In the Proximity placement groups page, select Add.

  4. 在“基本信息”选项卡中的“项目详细信息”下,确保选择了正确的订阅。In the Basics tab, under Project details, make sure the correct subscription is selected.

  5. 在“资源组”中选择“新建”来创建新的资源组,或者从下拉列表中选择已存在的空资源组。In Resource group either select Create new to create a new group or select an empty resource group that already exists, from the drop-down.

  6. 在“区域”中,选择要在其中创建邻近放置组的位置。In Region select the location where you want the proximity placement group to be created.

  7. 在“邻近放置组名称”中键入一个名称,然后选择“查看 + 创建”。In Proximity placement group name type a name and then select Review + create.

  8. 在通过验证后,选择“创建”以创建邻近放置组。After validation passes, select Create to create the proximity placement group.

    创建邻近放置组的屏幕截图

创建 VMCreate a VM

  1. 在门户中创建 VM 时,转到“高级”选项卡。While creating a VM in the portal, go to the Advanced tab.

  2. 在“邻近放置组”部分,选择正确的邻近放置组。In the Proximity placement group selection, select the correct placement group.

    在门户中新建 VM 时“邻近放置组”部分的屏幕截图

  3. 在完成所有其他必需选择后,选择“查看 + 创建”。When you are done making all of the other required selections, select Review + create.

  4. 通过验证后,选择“创建”,在邻近放置组中部署 VM。After it passes validation, select Create to deploy the VM in the placement group.

将现有可用性集中的 VM 添加到到邻近放置组中Add VMs in an availability set to a proximity placement group

如果虚拟机是可用性集的一部分,则需要先将可用性集添加到放置组,然后再添加 VM。If the VM is part of the Availability set, you need to add the availability set into the the placement group, before adding the VMs.

  1. 门户中搜索“可用性集”并从结果中选择可用性集。In the portal search for Availability sets and select your availability set from the results.
  2. 选择 VM,并在 VM 所对应的页面上选择“停止”,然后选择“确定”来停止/解除分配可用性集中的每个 VM 。Stop\deallocate each VM in the availability set by selecting the VM, then selecting Stop on the page for the VM, and then select OK to stop the VM.
  3. 在可用性集的页面上,确保所有 VM 的“状态”列为“已停止(已解除分配)” 。On the page for your availability set, make sure all of the VMs have the Status listed as Stopped (deallocated).
  4. 在左侧菜单中选择“配置”。In the left menu, select Configuration.
  5. 在“邻近放置组”下,从下拉列表选择一个放置组,然后选择“保存” 。Under Proximity placement group, select a placement group from the drop-down, and then select Save.
  6. 从左侧菜单中选择“概述”以再次查看 VM 列表。Select Overview from the left menu to see the list of VMs again.
  7. 选择可用性集中的每个 VM,然后在每个 VM 的页面上选择“启动”。Select each VM in the availability set, and then select Start on the page for each VM.

将现有 VM 添加到放置组Add existing VM to placement group

  1. 在 VM 的页面上,选择“停止”。On the page for the VM, select Stop.
  2. 将 VM 的状态列为“已停止(已解除分配)”后,在左侧菜单中选择“配置” 。Once the status of the VM is listed as Stopped (deallocated), select Configuration on the left menu.
  3. 在“邻近放置组”下,从下拉列表选择一个放置组,然后选择“保存” 。Under Proximity placement group, select a placement group from the drop-down, and then select Save.
  4. 在左侧菜单中选择“概述”,然后选择“启动”以重启 VM 。Select Overview from the left menu, then select Start to restart the VM.

后续步骤Next steps

也可使用 Azure PowerShell 创建邻近放置组。You can also use the Azure PowerShell to create proximity placement groups.