Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retain Public Virtual IP Address?

When you reboot an Azure Virtual Machine, its public virtual IP address does not change. However, if you shutdown the VM and then start it back up, it will receive a different public virtual IP address.

This VM server is hosting a service which end users may need to create a firewall rule for. This may require them to have the public IP address of the server.

Is there a method to keep the same public virtual IP address? Can Microsoft allow this on a per account / per VM / per subscription basis?

Thanks

like image 847
Bob Avatar asked Dec 06 '13 19:12

Bob


People also ask

Can you assign a public IP to a virtual machine?

Yes, you can assign a public IP to a virtual machine, you will need to ensure two things You have an IP address in the public IP address ranges. Your VM is configured with a bridged network adapter. Does a virtual machine have its own IP? Originally Answered: Does a virtual machine have an IP address?

Does Azure retain public virtual IP address when rebooted?

Retain Public Virtual IP Address? Bookmark this question. Show activity on this post. When you reboot an Azure Virtual Machine, its public virtual IP address does not change. However, if you shutdown the VM and then start it back up, it will receive a different public virtual IP address.

How do I get the public IP address of a VM?

A public IP address is associated to an IP configuration of a network interface attached to a VM. Use the Get-AzVirtualNetwork and Get-AzVirtualNetworkSubnetConfig commands to get the virtual network and subnet that the network interface is in.

Is there a way to keep the same public IP address?

Is there a method to keep the same public virtual IP address? Can Microsoft allow this on a per account / per VM / per subscription basis? Show activity on this post. Yes, there is a way for you to do this, but you will still be charged compute charges.


1 Answers

Yes, there is a way for you to do this, but you will still be charged compute charges. The Public IP is linked to the cloud service container the VM runs in and as long as something is running (or appears to be running) in that container than the VIP will stay assigned to you. You can shutdown the VM from within the VM itself.

Check out the following post by Keith Mayer for more info on this: http://blogs.technet.com/b/keithmayer/archive/2013/06/19/windows-azure-virtual-machines-there-s-more-than-1-way-to-shutdown-a-vm.aspx#.UqInbRwo5aQ

Currently leasing a VIP or having a fully assigned VIP that is just for you across deployments and such is not an option. They have been hearing this feedback for quite some time and from many people.

like image 163
MikeWo Avatar answered Sep 18 '22 19:09

MikeWo