获取Azure虚拟机的DNS名称 – 列出所有API?

huangapple go评论72阅读模式
英文:

How to get DNS Name in azure Virtual Machines - List All api?

问题

我想在Azure虚拟机中获取DNS名称 - 列出所有API的Node.js代码部分。
请帮助我。

我检查了这个网址Virtual Machines - List All,但响应中没有DNS名称。

英文:

I want to get the DNS Name in azure Virtual Machines - List All api in nodejs.
Please help me.

I checked this url Virtual Machines - List All
But DNS Name not availble in the response.

答案1

得分: 1

如果您想在Azure门户中获取Azure虚拟机的FQDN。在Azure门户中创建虚拟机(VM)时,将自动创建虚拟机的公共IP资源。实际上,FQDN附加到用于外部访问的公共IP资源上。因此,您将查找DNS名称的公共IP。

您可以查找API Public IP Addresses - List All

 "dnsSettings": {
          "domainNameLabel": "testlbl",
          "fqdn": "testlbl.westus.cloudapp.azure.com"
        },
英文:

If you want to get the FQDN for Azure VMs in the Azure portal. When you create a virtual machine (VM) in the Azure portal, a public IP resource for the virtual machine is automatically created. The FQDN actually is attached to the public IP resource for external accessing. So you will look for the public IP for the DNS name.

You can look up the API Public IP Addresses - List All

 "dnsSettings": {
          "domainNameLabel": "testlbl",
          "fqdn": "testlbl.westus.cloudapp.azure.com"
        },

huangapple
  • 本文由 发表于 2020年1月6日 22:00:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/59613444.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定