如何额外的IP添加到蔚蓝的VM这是运行 [英] How to add additional IP to an azure VM which is running

查看:119
本文介绍了如何额外的IP添加到蔚蓝的VM这是运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在运行的虚拟机。我需要添加一个额外的IP分发流量。虚拟机正式版,我要找添加IP这需要最​​少的时间。按我的知识,我不能用蔚蓝色的门户一样。这怎么可以用PS来完成。它是实现零宕机?

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 ?

推荐答案

有是做它没有直接的PS命令。一个可能的解决方案是导出虚拟机配置文件。建立在XML文件中的第二个IP的新节点/属性。寻找其patttern多网卡的虚拟机,创建相同的图案,然后设置子网和知识产权的价值。

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]

这篇关于如何额外的IP添加到蔚蓝的VM这是运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆