Skip to content
Advertisement

How to find the FQDN of an Azure VM

I just spun up a new Azure VM from the portal. I want to find the FQDN of the said portal so that I can connect to it via SSH, using this scheme: ssh username@FQDN -p 22 Can anyone tell me where to look? I’ve spent many hours trying to do this, but to no avail.

Advertisement

Answer

For you to get your FQDN on azure you should execute on Linux:

hostname -f

this will give you the name of the machine to see how you connect to the machine you need to be inside the same network. or if you are outside the network you need to look at the IP of the machine, not the machine FQDN and on the IP of the machine, you can see the DNS settings. to verify what are the IPs that you have if you are using version 2 you can go to this URL: https://portal.azure.com/?l=en#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Network%2FPublicIpAddresses/scope/

Advertisement