Assigning a DNS name label to an Azure VM

I look back not that long ago and I was managing development virtual machines that were running locally on a powerful laptop for development purposes. Now I am utilizing Azure. It is easier to spin up a virtual machine and I no longer need to carry around a laptop the size of a small desktop.

Cost is always a factor in any environment and even more so when it comes to development environments. I have my development virtual machines set to shutdown automatically at the end of the day to reduce costs. Why have a server running 24 /7 that doesn’t need to be. With the default settings of a Dynamic IP this means that I end up with a different public IP each time I restart the virtual machine. To make it easier to connect to virtual machines that do not have a static public IP set Azure has the ability to add a DNS name label. This gives you a name that resolves to the dynamic IP that gets assigned on startup. Once this is configured you can then RDP to your virtual machine using that name rather than the IP address.

Steps

  1. Login to you subscription at portal.azure.com
  2. Click Virtual Machines link on current navigation
  3. Click the VM you want to set the DNS name label on from your list
  4. The Overview panel will be presented. In the upper section you will see the Public IP address / DNS name label. Click the link
  5. Enter DNS name label
  6. Click Save
 dnsname

Now you can open a remote desktop session and use the full DNS name label to connect, you no longer need to check the IP after each startup.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑