Windows Azure Platform 系列文章目录》 

  默认情况下,通过Azure Management Portal创建的Public IP和Private IP都是随机分配的。

  用户可以通过Azure PowerShell来设置固定Public IP和Private IP,请参考笔者的文档:

  Windows Azure Virtual Network (5) 设置Azure Virtual Machine固定Private IP

Windows Azure Virtual Network (6) 设置Azure Virtual Machine固定公网IP (Virtual IP Address, VIP) (1)

Windows Azure Virtual Network (7) 设置Azure Virtual Machine固定公网IP (Virtual IP Address, VIP) (2)

  感谢网友blchen指出的错误,我之前做的DEMO都没有考虑Windows Azure Fabric Controller再分配资源的问题。

  对于固定IP来说,必须对Azure VM指定Virtual Network才可以

  本章笔者将向大家介绍的场景如下:2台Azure VM在共享同一个DNS地址。

  在2台Azure VM的情况下,我们有以下2种方式安全停止Azure VM。

  1)关闭其中一台Azure VM(使用Azure Management Portal, RDP或者PowerShell,三种方式)

  2)同时关闭2台Azure VM(同上三种方式)

  

  先看看笔者已经在Azure Management Portal中创建的VM,如下图:

  

  -上图中,有2台Azure VM,分别为LeiZhangVMOne和LeiZhangVMTwo。

  -这2台 Azure VM 共享同一个DNS地址:http://leizhangvm.cloudapp.net

  有关这2台Azure VM的VIP Address和Internal IP Address情况,我们可以观察下图:

  

  -这2台Azure VM的VIP Address相同,Internal IP Address不同

  1.使用Azure Management Portal关闭其中一台VM

  我们选择第一台LeiZhangVMOne,并选择SHUT DOWN。关闭后我们再选择START:

  

  我们观察LeiZhangVMOne的IP Address变化情况:

  

  结论:使用Azure Management Portal关闭其中一台VM,这台VM的VIP Address不会改变,Internal IP Address会改变。

  

  2.使用远程桌面连接RDP或者Azure PowerShell,关闭其中一台VM。

  过程截图略。

  结论:桌面连接RDP或者Azure PowerShell with -StayProvisioned参数,关闭其中一台VM。这台VM的VIP Address和Internal IP Address都不会改变。

  3.使用Azure Management Portal,同时关闭2台Azure VM。

  

   关闭后,我们再点击START。比较IP Address前后变化:

  

  结论:在使用Azure Management Portal,同时关闭2台Azure VM后,VIP Address和Internal IP Address都改变了。

  

  总结:

  1)使用Azure Management Portal或Azure PowerShell without -StayProvisioned,关闭一台Azure VM

  VIP Address是否改变:

  Internal IP Address是否改变:

  2)使用Azure Management Portal或Azure PowerShell without -StayProvisioned,关闭所有Azure VM

  VIP Address是否改变:

  Internal IP Address是否改变:

  

  3)使用RDP或Azure PowerShell with -StayProvisioned,关闭一台多台Azure VM

  VIP Address是否改变:

  Internal IP Address是否改变:

  

  OK,刚刚看到网友回复了。如何才能够得到一个固定IP呢?

  尽量不要随意关闭VM,如果必须关闭VM,必须遵循以下2点:

  1)如果是采用是single vm,那这台VM 绝对不能使用Azure Management Portal STOP VM,否则VIP和Internal IP都会改变。

  必须采用RPD或者PowerShell with -StayProvisioned 来关闭VM。VIP和Internal IP都不会改变。

  2)如果采用的是Multi VM,那要保证至少一台机器不被STOP,这样能够保证整个Azure Cloud Service的VIP不会改变。

[New Portal]Windows Azure Virtual Machine (20) 关闭Azure Virtual Machine与VIP Address,Internal IP Address的关系(2)的更多相关文章

  1. [New Portal]Windows Azure Virtual Machine (19) 关闭Azure Virtual Machine与VIP Address,Internal IP Address的关系(1)

    <Windows Azure Platform 系列文章目录> 默认情况下,通过Azure Management Portal创建的Public IP和Private IP都是随机分配的. ...

  2. [New Portal]Windows Azure Virtual Machine (18) Azure Virtual Machine内部IP和外部IP

    <Windows Azure Platform 系列文章目录> 在开始本章内容之前,请读者熟悉以下2篇博文:       [New Portal]Windows Azure Virtual ...

  3. [New Portal]Windows Azure Virtual Machine (11) 在本地使用Hyper-V制作虚拟机模板,并上传至Azure (1)

    <Windows Azure Platform 系列文章目录> 本章介绍的内容是将本地Hyper-V的VHD,上传到Azure数据中心,作为自定义的虚拟机模板. 注意:因为在制作VHD的最 ...

  4. [New Portal]Windows Azure Virtual Machine (16) 使用Azure PowerShell创建Azure Virtual Machine

    <Windows Azure Platform 系列文章目录> 注:本章内容和之前的[New Portal]Windows Azure Virtual Machine (12) 在本地制作 ...

  5. [New Portal]Windows Azure Virtual Machine (10) 自定义Windows Azure Virtual Machine模板

    <Windows Azure Platform 系列文章目录> 通过之前的文章,我相信大家对微软Windows Azure Virtual Machine有一定的了解了. 虽然微软提供了非 ...

  6. [New Portal]Windows Azure Virtual Machine (12) 在本地使用Hyper-V制作虚拟机模板,并上传至Azure (2)

    <Windows Azure Platform 系列文章目录> 本章介绍的内容是将本地Hyper-V的VHD,上传到Azure数据中心,作为自定义的虚拟机模板. 注意:因为在制作VHD的最 ...

  7. [New Portal]Windows Azure Virtual Machine (13) 在本地使用Hyper-V制作虚拟机模板,并上传至Azure (3)

    <Windows Azure Platform 系列文章目录> 本章介绍的内容是将本地Hyper-V的VHD,上传到Azure数据中心,作为自定义的虚拟机模板. 注意:因为在制作VHD的最 ...

  8. [New Portal]Windows Azure Virtual Machine (14) 在本地制作数据文件VHD并上传至Azure(1)

    <Windows Azure Platform 系列文章目录> 之前的内容里,我介绍了如何将本地的Server 2012中文版 VHD上传至Windows Azure,并创建基于该Serv ...

  9. [New Portal]Windows Azure Virtual Machine (21) 将本地Hyper-V的VM上传至Windows Azure Virtual Machine

    <Windows Azure Platform 系列文章目录> 本章介绍的内容是将本地Hyper-V的VHD,上传到Azure数据中心,并且保留OS中的内容. 注意:笔者没有执行Syspr ...

随机推荐

  1. Django的virtualenv环境搭建

    安装virtualenv好处多多,可以让当前的项目使用单独的类库,实现系统类库的隔离,所以能够自由地控制当前项目类库的版本,不受系统类库的影响:还有其他N多好处. 下面是安装说明和使用示例: 首先安装 ...

  2. innodb 锁分裂继承与迁移

    innodb行锁简介 行锁类型 LOCK_S:共享锁 LOCK_X: 排他锁 GAP类型 LOCK_GAP:只锁间隙 LOCK_REC_NO_GAP:只锁记录 LOCK_ORDINARY: 锁记录和记 ...

  3. Caused by: java.lang.UnsatisfiedLinkError...解决经历

    Caused by: java.lang.UnsatisfiedLinkError: Couldn't load BaiduMapVOS_v2_1_3: findLibrary returned nu ...

  4. ENode 1.0 - Staged Event-Driven Architecture思想的运用

    开源地址:https://github.com/tangxuehua/enode 上一篇文章,简单介绍了enode框架的command service api设计思路.本文介绍一下enode框架对St ...

  5. note of introduction of Algorithms(Lecture 3 - Part1)

    Lecture 3(part 1) Divide and conquer 1. the general paradim of algrithm as bellow: 1. divide the pro ...

  6. Hadoop开发第4期---分布式安装

    一.复制虚拟机 由于Hadoop的集群安装需要多台机器,由于条件有限,我是用虚拟机通过克隆来模拟多台机器,克隆方式如下图所示

  7. SQL SERVER--DBA 常用到的一些脚本

    自己整理了一些常用到的脚本,希望对各位有用 下载地址 --================================== 妹子不能少,是吧 BTW, 妹子是我辛苦百度来的,请不要求种求介绍各种求 ...

  8. Comet实现的网页聊天程序

    “上一篇”介绍了我在c/s程序中用了那些技术,如今只谈c/s不谈b/s那未免out了,势必要写一写b/s的程序与大家共勉. 回忆做技术这些年,06年每天盯着“天轰穿”的视频不亦乐乎,估计那是一代程序员 ...

  9. [异常解决] android studio检测不到手机的解决办法——ADB驱动自己安装

    用android studio搭建安卓开发环境比eclipse简单的多,仅仅下载一个1个G左右的安装包安装即可. 安装好之后随便建一个hello world工程,想用实体手机调试要点: 选择USB设备 ...

  10. Linux下安装SVN服务端小白教程

    安装 使用yum安装非常简单: yum install subversion 配置 创建仓库 我们这里在/home下建立一个名为svn的仓库(repository),以后所有代码都放在这个下面,创建成 ...