Is there a way to get back my public IP-address?

Ole Henrik Oftedal 1 Reputation point
2022-01-23T12:20:03.943+00:00

When I created my VM I selected Dynamic IP and not Static IP on the VM.

We (a Microsoft Support Engineer and I) tried to make it Static. But we didn't succeed 100% and he said that the system would anyway ask me if address was in the process of being released.

After many tries, we finally got the Static radio button selected, but we didn't get rid of this information message:

This public IP address can't be updated because it is associated to the IP configuration 'ipconfig1', in the network interface 'nnnnnnXXXX'.
IP address assignment
Static

Today I have a new IP address:-( Will it be possible to get back the one I had last week?

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

3 answers

Sort by: Most helpful
  1. Ronen Ariely 15,096 Reputation points
    2022-01-23T13:25:24.07+00:00

    Today I have a new IP address:-( Will it be possible to get back the one I had last week?

    Probably Not. I am pretty sure that no one will manually configure the DHCP for you

    but you can make your current IP static to make sure it will not be changed next time

    Simply use the portal -> navigate to the VM -> Click on the IP address

    167533-image.png

    and select static IP

    167497-image.png


  2. srbhatta-MSFT 8,546 Reputation points Microsoft Employee
    2022-01-24T17:38:33.03+00:00

    Hi @Ole Henrik Oftedal ,

    Thank you for reaching out to Microsoft QnA.

    I see @Ronen Ariely has already answered your query, and yes unfortunately it is not possible to get back the previous ip. I would like to add in to @Ronen Ariely 's answer.
    If you want to change your Public IP address assignment from dynamic to static, first note down the public ip name and then disassociate the public IP from the IP configurations of the network interface (NIC).

    After disassociating, search for the public ip name under the Public IP address service. Select the public IP that you just disassociated from the NIC, and now you will no longer see the IP address assignment as greyed out, you can then change it to Static.

    In short, you cannot change the IP address assignment method (Static or Dynamic) for a Public IP while the IP is still associated or attached to a NIC. It needs to be first disassociated, only then can the assignment type change, post which you will have to re-associate the IP to the NIC via IP configurations.

    I hope this answers your question.

    Please refer to the snippets below.

    167984-2022-01-24-22-53-44-clipboard.png

    168002-2022-01-24-22-56-05-clipboard.png

    167879-2022-01-24-22-57-58-clipboard.png

    167967-2022-01-24-22-22-46-clipboard.png

    Please 'Accept as answer' if the provided information is helpful to help others in the community.

    0 comments No comments

  3. Ole Henrik Oftedal 1 Reputation point
    2022-01-25T10:36:25.227+00:00

    Thanks to both of you:-) I did as described and had no problems doing Disassociate and Associate. When I go into VM and on Overview I click on my Public IP address I still get this warning:

    "This public IP address can't be updated because it is associated to the IP configuration 'ipconfig1', in the network interface 'xxxxNNNN'."

    But then I guess this is just an information message? On other VMs (they have today mostly dynamic assignments) there are no info/warning message when I click the same place.

    IP address assignment is
    Static
    (and greyed out)