Azure Lei Zhang的博客

weibo: LeiZhang的微博/QQ: 185165016/QQ群:319036205/邮箱:leizhang1984@outlook.com/TeL:139-161-22926

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

  《Windows Azure Platform 系列文章目录

 

  本文介绍的是国内使用世纪互联运维的Azure China

 

  在笔者之前的文章中,我们知道现在微软官方不建议使用Affinity Group地缘组了。

  如果用户基于某个地缘组,创建了虚拟机网络。那么加入这个虚拟网络的所有虚拟机,都不支持Reserved Virtual IP Address(固定公网IP)。

  At this moment, Microsoft Azure doesn’t support deploying a Cloud Service or Virtual Machine associated with a Reserved IP into an ‘Affinity Group based Virtual Network’. The following snippet shows a sample error message that you will get when to try to deploy a Virtual Machine deployment with Reserved IP into an ‘Affinity Group based VNET’.

  New-AzureVM : BadRequest : The deployment containsVirtualNetwork DemoVNET that belongs to an Affinity Group andReservedIP that belongs to a region. This combination is not allowed.

  http://azure.microsoft.com/blog/2014/05/14/reserved-ip-addresses/

 

  这会产生一个问题,如果我们已经使用了Azure地缘组,应该如何修改配置呢?

 

  这里我们模拟一个场景:

  1.假设笔者有一个Azure订阅,名称为"Internal Billing"

  2.在这个订阅中,笔者已经在上海东部的数据中心,使用了地缘组ChinaEastAffinityGroup

  

  3.然后我们基于这个地缘组,创建了虚拟机网络,名称为MyVNet

  4.然后在这个虚拟机网络中,创建了新的虚拟机MyVM

 

  

  我们按照以下的步骤进行修改:

  1.首先找到这个虚拟机网络MyVNet,点击导出

  

 

  2.我们将这个导出的文件保存在C盘的根目录下。然后用记事本打开。

  找到MyVNet这个节点,观察Location的值是:

  

  

  我们修改为China East中国东部:

  

 

  3.修改完毕后,我们用Azure管理界面,导入更新后的虚拟网络配置文件NetworkConfig.xml

  

 

  4.在弹出的界面中,导入我们保存在C盘根目录的配置文件NetworkConfig.xml

  

 

  5.这样修改就成功了。

 

 

  

  

posted on 2015-11-09 21:02  Lei Zhang的博客  阅读(970)  评论(0编辑  收藏  举报