5 min,  ARM,  azure

5 min Azure vnet, vm and dynamic/static ip

Microsoft Azure by default has a dynamic assignment of a public IP address to a newly-created VM unless we change it to be static. Public IP enables communication to Azure VM from the internet. Assigning a static public IP address ensures that the address never changes as opposed to the dynamic public IP address. The dynamic IP address changes every time we restart the Azure VM

Assign Static Public IP address to VM during the creation

You could do this when you create the vm under

  1. Login to MS Azure portal
  2. Click “Virtual Machines” from the left menu.
  3. Click “Add”.
  4. Add the basic information about the virtual machine to be set up.
  5. In the Networking tab, for Public IP click “Create new”.
  6. Under assign, select Static.
  7. Click OK.

Add Static Public IP to an existing Azure VM

If you already have a Public IP, here is how to alter it to either static or dynamic on the NIC.

If not

Click IP configuration (e.g. ipconfig1).
Under Public IP address settings, for Public IP address click Enabled.
Click “IP address”.
Click “Create New”.
Under Assignment, select Static

Comments Off on 5 min Azure vnet, vm and dynamic/static ip