title: Add local hostname to azure cloud shell
body: <p>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 <code>/etc/hosts</code> like so.</p>
  
  <p><code>52.123.12.23 name-to-resolve</code></p>
  
  <p>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.</p>
  
  <blockquote>
    <p>A pragmatic solution would be to create a simpel script to ssh into the vm.</p>
  </blockquote>