Removing a static IP from an Azure VM

2017-12-08T15:07:48+00:00 February 27th, 2015|Azure|0 Comments

Last time I went through how to set a static IP on an Azure VM, how about removing it?

Well after connecting Azure (as as the previous blog) we need to grab the info for setting the variable so we need to do Get-AzureVM and note down the cloud (service name) and VM name then we need to set the variable:

$staticVM = Get-AzureVM –ServiceName <cloudname> -Name <nameofVM>

Now we can remove the static IP:

Remove-AzureStaticVNetIP -VM $staticVM -IPAddress <IPyouwishtoremove> | Update-AzureVM

*NOTE* This will restart the VM! I found that out the hard way.

 

Hope this helps!

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
SUBSCRIBE!
Give it a try, you can unsubscribe anytime.