问题
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