How to add additional IP to an azure VM which is running

半城伤御伤魂 提交于 2019-12-24 13:12:03

问题


I have a running VM. I need to add one additional IP for distributing traffic. VM is in Prod, I am looking for adding IP which takes least time. As per my knowledge I can't use azure portal for the same. How this could be done using PS. Is it achievable with zero downtime ?


回答1:


There is no direct PS command for doing it. One possible solution is to export the vm config file. Create a new node/attribute for the second ip in the xml file. Look for its patttern for multi nic vm, create the same pattern and then set the value of subnet and ip.

Next, import the config file and create a new vm out of it. [edited]



来源:https://stackoverflow.com/questions/29902528/how-to-add-additional-ip-to-an-azure-vm-which-is-running

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