zoukankan      html  css  js  c++  java
  • Windows Azure Affinity Groups (3) 修改虚拟网络地缘组(Affinity Group)的配置

      《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.这样修改就成功了。

      

      

  • 相关阅读:
    理解Java中字符流与字节流的区别
    程序员常见面试问题(不定期更新)
    软链接 硬链接
    《大数据时代》读后的思考
    mysql——int(size) 中的size表示什么意思
    Access denied for user ''@'localhost' to
    Effective c++——条款03:尽可能使用const
    http——wireshark抓包分析
    vim——vim配置步骤
    正则表达式和通配符
  • 原文地址:https://www.cnblogs.com/threestone/p/4951119.html
Copyright © 2011-2022 走看看