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

使用 Azure 门户在可用性区域中创建 Windows 虚拟机Create a Windows virtual machine in an availability zone with the Azure portal

本文逐步说明如何使用 Azure 门户在 Azure 可用性区域中创建虚拟机。This article steps through using the Azure portal to create a virtual machine in an Azure availability zone. 可用性区域是 Azure 区域中物理上独立的区域。An availability zone is a physically separate zone in an Azure region. 使用可用性区域可以在整个数据中心发生故障或服务中断(这种情况很少见)时保护应用和数据。Use availability zones to protect your apps and data from an unlikely failure or loss of an entire datacenter.

若要使用可用性区域,请在受支持的 Azure 区域中创建虚拟机。To use an availability zone, create your virtual machine in a supported Azure region.

登录 AzureLog in to Azure

通过 https://portal.azure.com 登录到 Azure 门户。Log in to the Azure portal at https://portal.azure.com.

创建虚拟机Create virtual machine

  1. 在 Azure 门户的左上角单击“创建资源”。Click Create a resource in the upper left-hand corner of the Azure portal.

  2. 选择“计算”,然后选择“Windows Server 2016 Datacenter”。Select Compute, and then select Windows Server 2016 Datacenter.

  3. 输入虚拟机信息。Enter the virtual machine information. 在此处输入的用户名和密码用于登录到虚拟机。The user name and password entered here is used to log in to the virtual machine. 密码必须至少 12 个字符长,且符合定义的复杂性要求The password must be at least 12 characters long and meet the defined complexity requirements. 选择一个位置,例如支持可用性区域的美国东部 2。Choose a Location such as East US 2 that supports availability zones. 完成后,单击“确定”。When complete, click OK.

    在门户边栏选项卡中输入 VM 的基本信息

  4. 为 VM 选择大小。Choose a size for the VM. 选择一个建议的大小,或根据功能进行筛选。Select a recommended size, or filter based on features. 确认该大小在要使用的区域中可用。Confirm the size is available in the zone you want to use.

    选择 VM 大小

  5. 在“设置” > “高可用性”下,从“可用性区域”下拉列表中选择一个带编号的区域,保留其余默认值,并单击“确定”。Under Settings > High availability, select one of the numbered zones from the Availability zone dropdown, keep the remaining defaults, and click OK.

    选择可用性区域

  6. 在摘要页上,单击“创建”以启动虚拟机部署。On the summary page, click Create to start the virtual machine deployment.

  7. VM 将固定到 Azure 门户仪表板。The VM will be pinned to the Azure portal dashboard. 完成部署后,会自动打开 VM 摘要。Once the deployment has completed, the VM summary automatically opens.

为托管磁盘和 IP 地址确认区域Confirm zone for managed disk and IP address

当 VM 部署在可用性区域中时,将在同一可用性区域中创建 VM 的托管磁盘。When the VM is deployed in an availability zone, a managed disk for the VM is created in the same availability zone. 默认情况下,还会在该区域中创建一个公用 IP 地址。By default, a public IP address is also created in that zone.

可以在门户中确认这些资源的区域设置。You can confirm the zone settings for these resources in the portal.

  1. 单击“资源组”,然后单击 VM 的资源组的名称,例如 myResourceGroupClick Resource groups and then the name of the resource group for the VM, such as myResourceGroup.

  2. 单击磁盘资源的名称。Click the name of the Disk resource. “概述”页包含有关资源的位置和可用性区域的详细信息。The Overview page includes details about the location and availability zone of the resource.

    托管磁盘的可用性区域

  3. 单击公用 IP 地址资源的名称。Click the name of the Public IP address resource. “概述”页包含有关资源的位置和可用性区域的详细信息。The Overview page includes details about the location and availability zone of the resource.

    IP 地址的可用性区域

后续步骤Next steps

在本文中,你已学习了如何在可用性区域中创建 VM。In this article, you learned how to create a VM in an availability zone. 详细了解 Azure VM 的区域和可用性Learn more about regions and availability for Azure VMs.