Sunday, 10 May 2015

Assigning Static ip address to VM in Azure

We can assign static ip address to VM in Azure through new management portal which wasn’t possible in older Azure management portal.

Static IP address doesn't mean that TCP/IP configuration inside a VM will have "static ip" as ticked mark (no it will be dynamic in TCP/IP configuration), but azure will make sure the VM gets same IP address always.

Before assigning static ip address to VM, we should first create the Virtual Network and subnet so that we can assign one ip address from Virtual Network Subnet to VM.

As we are assigning static ip address through new Azure management portal, I have created Virtual Network in new Azure management portal named as “SQUONS-VNET” and subnet named as “SQUONS-SUBNET1”.



Now, while deploying the VM in new Azure management portal you get the option to assign static ip address as depicted below:



Note: We can also assign static ip address to the VM which is already deployed in Virtual Network by going to VM “All settings” as depicted below:


 

No comments:

Post a Comment