在 Azure 门户中为 Windows VM 创建完全限定的域名Create a fully qualified domain name in the Azure portal for a Windows VM

Azure 门户中创建虚拟机 (VM) 时,此门户会自动为虚拟机创建公共 IP 资源。When you create a virtual machine (VM) in the Azure portal, a public IP resource for the virtual machine is automatically created. 可以使用此 IP 地址远程访问 VM。You use this IP address to remotely access the VM. 虽然门户不会创建完全限定的域名(简称 FQDN),但可以在创建 VM 后创建一个完全限定的域名。Although the portal does not create a fully qualified domain name, or FQDN, you can create one once the VM is created. 本文演示了创建 DNS 名称或 FQDN 的步骤。This article demonstrates the steps to create a DNS name or FQDN.

创建 FQDNCreate a FQDN

阅读本文的前提是已创建 VM。This article assumes that you have already created a VM. 如果需要,可以在门户中创建 VM通过 Azure PowerShell 创建 VMIf needed, you can create a VM in the portal or with Azure PowerShell. 在启动和运行 VM 后,请执行下列步骤:Follow these steps once your VM is up and running:

  1. 在门户中选择 VM。Select your VM in the portal. 在“DNS 名称”下,单击“配置”。Under DNS name, click Configure.

    单击“DNS 名称”下的“配置”

  2. 输入所需的 DNS 名称,并选择“保存”。Enter the desired DNS name and then select Save.

    输入公共 IP 资源的 DNS 名称标签

  3. 若要返回到 VM 概览边栏选项卡,请关闭“公共 IP 地址”边栏选项卡。To return to the VM overview blade, close the Public IP address blade. 验证现在是否显示“DNS 名称”。Verify that the DNS name is now shown.

现在可以使用此 DNS 名称(例如远程桌面协议 (RDP))远程连接至 VM。You can now connect remotely to the VM using this DNS name such as for Remote Desktop Protocol (RDP).

后续步骤Next steps

你的 VM 已经有公共 IP 和 DNS 名称,现在可以部署常用应用程序框架或服务,例如 IIS、SQL 或 SharePoint。Now that your VM has a public IP and DNS name, you can deploy common application frameworks or services such as IIS, SQL, or SharePoint.

也可以深入了解如何使用 Resource Manager,以获取生成 Azure 部署的相关提示。You can also read more about using Resource Manager for tips on building your Azure deployments.