Public IP address o a VM in Azure changed. Can we go back to the previous IP address?

João Vilela 0 Reputation points
2023-04-21T13:23:55.4633333+00:00

We have a VM in Azure running Linux. Our VM public IP address changed (it was not defined as static), and now we have external resources that cannot establish connections to the VM. Can we obtain the previous IP address again to our VM? Thanks in advance! Deniz Martins

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,035 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2023-04-21T15:32:14.2766667+00:00

    @João Vilela Unfortunately, it is not possible to recover a deleted or released public IP address. Once an IP address is released, it goes back to the pool of available IP addresses and can be assigned to other resources. The customer or Azure Support does not have the ability to assign this back to the customer account.

    To prevent this issue from happening in the future, you can assign a static public IP address to your VM. This will ensure that the IP address remains constant even if the VM is stopped or restarted.

    I'm sorry for any difficulties this may cause, and I'm here to help if you have any further questions or need assistance.


    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.