Setting static IP on azure vm via Portal UI

柔情痞子 提交于 2020-02-07 05:14:05

问题


I'm having a really weird situation. I'm trying to set the IP for a network interface attached to a VM to static via the UI. I hit the static button, whack in a valid IP and click save, no errors at all.

If I then flick off that tab and back to it, it has reverted to dynamic again.

The VM is shutdown and newly created yesterday

I know I can do it via powershell but just trying to figure out if I'm doing something wrong or its the UI being crappy.

Just as a caveat, I'm pretty familiar with server admin etc but reasonably new with Azure and what not, so be gentle :)

Thanks in advance


回答1:


I have just tested on one of my VM and I think that you need to remove the association between the network interface and the IP address before making it static.

So, first, go in the Network Interface of your VM. Go into the IP Addresses settings and disable the Public IP address.

Then go in your Public IP address settings, click Configuration, choose to make it static. Wait for the confirmation.

Then go back in the Network Interface settings of your VM and re associate the IP address.

It should work now.



来源:https://stackoverflow.com/questions/36885977/setting-static-ip-on-azure-vm-via-portal-ui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!