I want to map a public IP address of a vm to a hostname. On a regular linux distribution I would add the ip to hostname mapping to /etc/hosts
like so.
52.123.12.23 name-to-resolve
The question is how to achieve the same on a azure cloud shell(bash). So that if I want to ssh into a vm I don't need to remember or query the public IP.
A pragmatic solution would be to create a simpel script to ssh into the vm.