Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, August 3, 2017 6:19 AM
Is there any ways to retain the previous Public IP of Azure VM..??
All replies (1)
Thursday, August 3, 2017 8:55 AM
If you have selected dynamic IP addresses it will not retain once you shut down the VM, if you selected static you can retain IP address until you delete the resource.
There are two methods in which an IP address is allocated to a public IP resource - dynamic or static. The default allocation method is dynamic, where an IP address is not allocated at the time of its creation. Instead, the public IP address is allocated when you start (or create) the associated resource (like a VM or load balancer). The IP address is released when you stop (or delete) the resource. This causes the IP address to change when you stop and start a resource.
To ensure the IP address for the associated resource remains the same, you can set the allocation method explicitly to static. In this case an IP address is assigned immediately. It is released only when you delete the resource or change its allocation method to dynamic.
You can select Public IP resource - dynamic or static while creating the VM.
For more details, “IP address types and allocation methods in Azure”.
Do click on "Mark as Answer" and “Vote as Helpful” on the post that helps you, this can be beneficial to other community members.