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

预览版:使用门户将 Vm 部署到专用主机Preview: Deploy VMs to dedicated hosts using the portal

本文介绍如何创建 Azure专用主机来托管虚拟机 (vm)。This article guides you through how to create an Azure dedicated host to host your virtual machines (VMs).


Azure 专用主机目前为公共预览版。Azure Dedicated Hosts is currently in public preview. 此预览版在提供时没有附带服务级别协议,不建议将其用于生产工作负荷。This preview version is provided without a service level agreement, and it's not recommended for production workloads. 某些功能可能不受支持或者受限。Certain features might not be supported or might have constrained capabilities. 有关详细信息,请参阅 Microsoft Azure 预览版补充使用条款For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

已知预览版限制Known preview limitations

  • 虚拟机规模集目前在专用主机上不受支持。Virtual machine scale sets are not currently supported on dedicated hosts.
  • 预览版初始版本支持以下 VM 系列:DSv3 和 ESv3。The preview initial release supports the following VM series: DSv3 and ESv3.

创建主机组Create a host group

主机组是表示一组专用主机的新资源。A host group is a new resource that represents a collection of dedicated hosts. 在区域和可用性区域中创建主机组, 并向其添加主机。You create a host group in a region and an availability zone, and add hosts to it. 规划高可用性时, 有其他选项可供选择。When planning for high availability, there are additional options. 你可以将以下一个或两个选项与专用主机一起使用:You can use one or both of the following options with your dedicated hosts:

  • 跨多个可用性区域。Span across multiple availability zones. 在这种情况下, 你需要在要使用的每个区域中都有一个主机组。In this case, you are required to have a host group in each of the zones you wish to use.
  • 跨多个容错域, 这些容错域映射到物理机架。Span across multiple fault domains which are mapped to physical racks.

在任一情况下, 都需要提供主机组的容错域计数。In either case, you are need to provide the fault domain count for your host group. 如果你不希望跨组中的容错域, 请使用容错域计数1。If you do not want to span fault domains in your group, use a fault domain count of 1.

您还可以决定使用可用性区域和容错域。You can also decide to use both availability zones and fault domains.

在此示例中, 我们将使用1个可用性区域和2个容错域创建一个主机组。In this example, we will create a host group using 1 availability zone and 2 fault domains.

  1. 打开 Azure门户Open the Azure portal.

  2. 选择左上角的 "创建资源"。Select Create a resource in the upper left corner.

  3. 搜索 "主机组", 然后从结果中选择 "主机组 (预览版) "。Search for Host group and then select Host Groups (preview) from the results.


  4. 在 "主机组 (预览) " 页中, 选择 "创建"。In the Host Groups (preview) page, select Create.

  5. 选择要使用的订阅, 然后选择 "新建" 以创建新的资源组。Select the subscription you would like to use, and then select Create new to create a new resource group.

  6. 键入myDedicatedHostsRG作为名称, 然后选择 "确定"Type myDedicatedHostsRG as the Name and then select OK.

  7. 对于 "主机组名称", 请键入myHostGroupFor Host group name, type myHostGroup.

  8. 对于 "位置", 请选择 "美国东部"。For Location, select East US.

  9. 对于 "可用性区域", 选择 " 1"。For Availability Zone, select 1.

  10. 对于 "容错域计数", 请选择2For Fault domain count, select 2.

  11. 选择 "查看 + 创建", 然后等待验证。Select Review + create and then wait for validation.


  12. 看到 "验证通过" 消息后, 选择 "创建" 以创建主机组。Once you see the Validation passed message, select Create to create the host group.

只需几分钟即可创建主机组。It should only take a few moments to create the host group.

创建专用主机Create a dedicated host

现在, 在主机组中创建专用主机。Now create a dedicated host in the host group. 除了主机名称外, 还需要提供主机的 SKU。In addition to a name for the host, you are required to provide the SKU for the host. 主机 SKU 捕获受支持的 VM 系列以及专用主机的硬件生成。Host SKU captures the supported VM series as well as the hardware generation for your dedicated host. 在预览期间, 我们将支持以下主机 SKU 值:DSv3_Type1 和 ESv3_Type1。During the preview, we will support the following host SKU values: DSv3_Type1 and ESv3_Type1.

有关主机 Sku 和定价的详细信息, 请参阅Azure 专用主机定价For more information about the host SKUs and pricing, see Azure Dedicated Host pricing.

如果为主机组设置了容错域计数, 系统会要求你为主机指定容错域。If you set a fault domain count for your host group, you will be asked to specify the fault domain for your host.

  1. 选择左上角的 "创建资源"。Select Create a resource in the upper left corner.

  2. 搜索 "专用主机", 然后从结果中选择 "专用主机 (预览) "。Search for Dedicated host and then select Dedicated hosts (preview) from the results.


  3. 在 "专用主机 (预览) " 页中, 选择 "创建"。In the Dedicated Hosts (preview) page, select Create.

  4. 选择要使用的订阅。Select the subscription you would like to use.

  5. 选择myDedicatedHostsRG作为资源组Select myDedicatedHostsRG as the Resource group.

  6. 在 "实例详细信息" 中, 键入myhost 代表作为名称, 然后选择 "美国东部" 作为位置。In Instance details, type myHost for the Name and select East US for the location.

  7. 在 "硬件配置文件" 中, 选择 "标准 Es3 " "系列" "系列", 为 "主机组" 选择 " myHostGrup ", 然后选择 " 1 " 作为 "容错域"。In Hardware profile, select Standard Es3 family - Type 1 for the Size family, select myHostGrup for the Host group and then select 1 for the Fault domain. 保留其余字段的默认值。Leave the defaults for the rest of the fields.

  8. 完成后, 请选择 "查看 + 创建并等待验证"。When you are done, select Review + create and wait for validation.


  9. 看到 "验证通过" 消息后, 选择 "创建" 以创建主机。Once you see the Validation passed message, select Create to create the host.

创建 VMCreate a VM

  1. 在 Azure 门户的左上角选择“创建资源”。Choose Create a resource in the upper left-hand corner of the Azure portal.
  2. 在“新建”页的“常用”下,选择“Windows Server 2016 Datacenter”。In the New page, under Popular, select Windows Server 2016 Datacenter.
  3. 在 "基本信息" 选项卡中的 "项目详细信息" 下, 确保选择了正确的订阅, 然后选择 " myDedicatedHostsRG " 作为资源组In the Basics tab, under Project details, make sure the correct subscription is selected and then select myDedicatedHostsRG as the Resource group.
  4. 在“实例详细信息”下,对于“虚拟机名称”键入 myVM,对于“位置”选择“美国东部”。Under Instance details, type myVM for the Virtual machine name and choose East US for your Location.
  5. 在 "可用性选项" 中, 选择 "可用性区域", 然后从下拉范围中选择1In Availability options select Availability zone, select 1 from the drop-down.
  6. 对于 "大小", 请选择 "更改大小"。For the size, select Change size. 在可用大小列表中, 选择 Esv3 系列中的一个, 如标准 E2s v3In the list of available sizes, choose one from the Esv3 series, like Standard E2s v3. 您可能需要清除筛选器才能查看所有可用大小。You may need to clear the filter in order to see all of the available sizes.
  7. 在“管理员帐户”下,提供用户名(例如 azureuser)和密码。Under Administrator account, provide a username, such as azureuser and a password. 密码必须至少 12 个字符长,且符合定义的复杂性要求The password must be at least 12 characters long and meet the defined complexity requirements.
  8. 在“入站端口规则”下,选择“允许所选端口”,然后从下拉列表中选择“RDP (3389)”。Under Inbound port rules, choose Allow selected ports and then select RDP (3389) from the drop-down.
  9. 在页面顶部, 选择 "高级" 选项卡, 然后在 "主机" 部分中, 选择 " myHostGroup "作为 " 主机组" 和 " myhost 代表"。At the top of the page, select the Advanced tab and in the Host section, select myHostGroup for Host group and myHost for the Host. 选择主机组和主机Select host group and host
  10. 保留其余默认值,然后选择页面底部的“查看 + 创建”按钮。Leave the remaining defaults and then select the Review + create button at the bottom of the page.
  11. 看到验证已通过的消息后, 选择 "创建"。When you see the message that validation has passed, select Create.

后续步骤Next steps

  • 有关详细信息, 请参阅专用主机概述。For more information, see the Dedicated hosts overview.

  • 这里有一个示例模板, 它使用区域和容错域实现了区域中的最大复原能力。There is sample template, found here, that uses both zones and fault domains for maximum resiliency in a region.

  • 你还可以使用Azure PowerShell部署专用主机。You can also deploy a dedicated host using Azure PowerShell.