I rented a VM on Azure from someone for a couple of months while I was still setting up my own account. I discontinued the service two months ago, and now that I have my own Azure account, I'm wondering if there's any way to get back the static IP I was using. This IP was whitelisted for a government service, and when I ping it, it seems to be unused. Any advice?
3 Answers
One option is to contact the person you rented from and see if they can add you as a guest to their account and move the static IP to your new setup. But if they've deleted the VM and the IP, it might be a no-go.
Unfortunately, you can't recover the static IP once the resource has been deleted. It's gone for good. As a side note, directly assigning a public IP to a VM is generally a bad idea; if the VM goes down, so does the IP. It's best to treat VMs like cattle—not pets—and set up static resources to avoid this issue in the future.
According to Azure's guidelines, once a static IP is released after deleting a VM, it cannot be recovered. If you set it up as static, Azure will assign an IP from their pool, and if that resource is deleted, the IP is lost forever. You might want to seek a new IP for your new setup.
Unfortunately, he has deleted the VM and the IP since you stopped the rental, so that won't work.