[Windows Azure] Manage the Availability of Virtual Machines

2023-05-16

Manage the Availability of Virtual Machines

You can ensure the availability of your application by using multiple Windows Azure Virtual Machines. By using multiple virtual machines in your application, you can make sure that your application is available during local network failures, local disk hardware failures, and any planned downtime that the platform may require.

You manage the availability of your application that uses multiple virtual machines by adding the machines to an availability set. Availability sets are directly related to fault domains and update domains. A fault domain in Windows Azure is defined by avoiding single points of failure, like the network switch or power unit of a rack of servers. In fact, a fault domain is closely equivalent to a rack of physical servers. When multiple virtual machines are connected together in a cloud service, an availability set can be used to ensure that the machines are located in different fault domains. The following diagram shows two availability sets with two virtual machines in each set.

Update domains

Windows Azure periodically updates the operating system that hosts the instances of an application. A virtual machine is shut down when an update is applied. An update domain is used to ensure that not all of the virtual machine instances are updated at the same time. When you assign multiple virtual machines to an availability set, Windows Azure ensures that the machines are assigned to different update domains. The previous diagram shows two virtual machines running Internet Information Services (IIS) in separate update domains and two virtual machines running SQL Server also in separate update domains.

You should use a combination of availability sets and load-balancing endpoints to help ensure that your application is always available and running efficiently. For more information about using load-balanced endpoints, see Load Balancing Virtual Machines.

This task includes the following steps:

  • Step 1: Create a virtual machine and an availability set
  • Step 2: Add a virtual machine to the cloud service and assign it to the availability set during the creation process
  • Step 3: (Optional) Create an availability set for previously created virtual machines
  • Step 4: (Optional) Add a previously created virtual machine to an availability set

Step 1: Create a virtual machine and an availability set

To create an availability set that contains virtual machines, you can create the first virtual machine and the availability set at the same time, and then you can add virtual machines to the availability set as you create them. You can also create virtual machines, create an availability set, and then add all of the machines to the set.

To create a virtual machine and availability set

  1. If you have not already done so, sign in to the Windows Azure Management Portal.

  2. On the command bar, click New.

    Create a virtual machine

  3. Click Virtual Machine, and then click From Gallery.

    The Select the virtual machine operating system dialog box appears.

  4. From Platform Images, select an image and then click the arrow to continue.

    The Virtual machine configuration dialog box appears.

  5. In Virtual Machine Name, type the name that you want to use for the virtual machine.

  6. In New User Name, type a name for the administrative account that you want to use to manage the server.

  7. In New Password, type a strong password for the administrative account. In Confirm Password, retype the password that you previously entered.

  8. In Size, select the size that you want to use for the virtual machine. The size that you select depends on the number of cores that are needed for your application.

  9. Click the arrow to continue.

    The Virtual machine mode dialog box appears.

  10. Choose Stand-alone virtual machine.

  11. In DNS Name, type a name for the cloud service that is created for the machine. The name can contain from 3 through 24 lowercase letters and numbers.

  12. In Storage Account, select a storage account where the .vhd file is stored, or you can select to have a storage account automatically created. Only one storage account per region is automatically created. All other virtual machines that you create with this setting are located in this storage account. You are limited to 20 storage accounts.

  13. In Region/Affinity Group/Virtual Network, select region, affinity group, or virtual network that you want to contain the virtual machine. For more information about affinity groups, see About Affinity Groups for Virtual Network.

  14. Click the arrow to continue.

    The Virtual machine options dialog box appears.

  15. In Availability Set, select Create availability set.

  16. In Availability Set Name, enter the name for the availability set.

  17. Click the arrow to create the virtual machine and the availability set.

    From the dashboard of the new virtual machine, you can click Configure and see that the virtual machine is a member of the new availability set.

Step 2: Add a virtual machine to the cloud service and assign it to the availability set during the creation process

The previous step showed you how to create a virtual machine and availability set at the same time. You can now create a new virtual machine, connect it to the cloud service of the first virtual machine, and then add it to the availability set that you previously created.

To connect a new virtual machine and add it to the availability set

  1. If you have not already done so, sign in to the Windows Azure Management Portal.

  2. On the command bar, click New.

    Create a virtual machine

  3. Click Virtual Machine, and then click From Gallery.

    Create from gallery

    The Select the virtual machine operating system dialog box appears. You can now select an image from the Image Gallery.

  4. Click Platform Images, select the platform image that you want to use, and then click the arrow to continue.

    The Virtual machine configuration dialog box appears.

  5. In Virtual Machine Name, type the name that you want to use for the virtual machine.

  6. 6.In New User Name, type a name for the administrative account that you want to use to manage the server.

  7. In New Password, type a strong password for the administrative account on the virtual machine. In Confirm Password, retype the password.

  8. In Size, select the size that you want to use for the virtual machine. The size that you select depends on the number of cores that are needed for your application.

  9. For a virtual machine running the Linux operating system, you can select to secure the machine with an SSH Key.

  10. Click the arrow to continue.

    The Virtual machine mode dialog box appears.

  11. Select Connect to existing Virtual Machine to create a new virtual machine that will be connected with the first virtual machine in the availability set. Select the cloud service that contains the virtual machine in the availability set.

  12. In Storage Account, select a storage account where the VHD file is stored.

  13. In Region/Affinity Group/Virtual Network, select region that you want to contain the virtual machine.

  14. Click the arrow to continue.

    The Virtual machine options dialog box appears.

  15. Select the availability set that was created when you created the first virtual machine.

  16. Click the check mark to create the connected virtual machine and add it to the availability set.

    From the dashboard of the new virtual machine, you can click Configure and see that the virtual machine is a member of the new availability set.

Step 3: (Optional) Create an availability set for previously created virtual machines

You can create an availability set and add a virtual machine to it after you create the machine. After you create a virtual machine, you can configure the size of the machine and whether it is a member of an availability set.

To create a new availability set

  1. If you have not already done so, sign in to the Windows Azure Management Portal.

  2. Click Virtual Machines, and then select the virtual machine that you want to configure.

  3. Click Configure.

  4. In the Availability Set section, select Create Availability Set, and then enter a name for the set.

  5. Click Save.

    Note: This might result in the virtual machine being restarted to finalize the membership in the availability set.

Step 4: (Optional) Add a previously created virtual machine to an availability set

You can easily add an existing virtual machine to an availability set that was previously created. To add a virtual machine to an availability set, it must connected to the same cloud service as the other virtual machines in the set. For more information about connecting virtual machines, see How to Connect Virtual Machines in a Cloud Service.

To add an existing virtual machine to an availability set

  1. If you have not already done so, sign in to the Windows Azure Management Portal.

  2. Click Virtual Machines, and then select the virtual machine that you want to add to the availability set.

  3. Click Configure.

  4. In the Availability Set section, select the availability set that you previously created.

  5. Click Save.

    Note: This might result in the virtual machine being restarted to finalize the membership in the availability set.

转载于:https://www.cnblogs.com/licheng/p/3261899.html

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

[Windows Azure] Manage the Availability of Virtual Machines 的相关文章

  • Azure 中的 EUAP 区域是什么?

    Azure 中的某些区域被称为 EUAP 区域 但是我无法找到任何关于这意味着什么的定义 EUAP 代表什么 https learn microsoft com en us dotnet api microsoft azure docume
  • 哪里可以下载 Microsoft.Phone.WinJS.2.1?

    我正在尝试使用 WinJS 制作通用 Windows 应用程序 我已经下载了VS2013的最新更新 RC 版本 我已经安装了我能找到的所有 SDK 我还安装了 WinLibJS VSE exe 扩展 有趣的是 VS 更新一直说我没有 当我打
  • 想了解 Windows 剪贴板内部结构

    我有兴趣学习 Windows 系统内部结构及其工作原理 我倾向于学习windows上的系统编程 在这种背景下 我很想知道有关 Windows 剪贴板内部功能的一些事情 当我们选择一些文本 图像等并按下时会发生什么 Ctrl C 当我们在不同
  • Bitbucket 和 Azure DevOps 之间的集成

    我的要求是我想将我的 Bitbucket 存储库与 Azure DevOps CI 服务器集成 以便一旦我将代码推送到 bitbucket 存储库中 我的管道就会在 Azure DevOps CI 服务器中触发 因为我已经在 Bitbuck
  • 在 Azure Function App 中配置 Application Insights 的云角色名称

    我想设置从我的 Azure Function App v2 发送到应用程序洞察的遥测数据的 cloud rolename 我的 host json 中的 AI 配置如下所示 applicationInsights sampling isEn
  • 使用会话 ID 将消息添加到 IAsyncCollector 主题输出

    目前是否可以将消息推送到 Azure 函数的 IAsyncCollector 主题输出并设置会话 ID 我的主题实际上是关于 FIFO 排序的 所以我们必须设置会话 因此 我们设想只设置一个 Guid 作为唯一的会话 ID 我知道如何通过此
  • Java更改系统换行符

    在 Windows 上 使用System out println 打印出来 n r而在 Unix 系统上你会得到 n 有没有办法告诉java你想使用什么换行符 正如其他人已经说过的 系统属性line separator包含实际的行分隔符 奇
  • Web 配置转换不适用于 Visual Studio Online、VS2013 和 Azure

    我有一个 MVC5 网站 使用 Visual Studio Online TFS 的持续集成成功地将暂存和生产版本部署到 Azure 我已经关注了这篇博文 使用自定义部署脚本通过 git 持续交付到 Azure 网站 http chrisk
  • 设置 Azure 中 BLOB 存储的保留期

    我想手动设置保留期 以便在保留期结束后我可以删除存档数据 请向我建议任何可以帮助我的链接或方式 请建议我如何在我的门户中编码来设置它 我已经成功配置了生命周期管理政策 https learn microsoft com en us azur
  • 具有自托管代理的 Azure DevOps Pipeline for Java 项目

    我们有一组使用不同 JDK 版本开发的 Java 项目 项目中使用了不同版本的 Gradle 和 Maven 我们应该使用以下命令创建 Azure DevOps PipelineSelf Hosted Agent截至目前 构建代理服务器已随
  • 无法找到模块提供者

    我在使用 PowerShell 时遇到问题 几乎就像没有完全安装一样 这很奇怪 因为它是 Windows 10 并且是附带的 在没有锁定的情况下 我尝试使用另一台正在运行的 Windows 10 计算机上的全新副本替换以下目录 C User
  • 如何为Windows 10及以下版本的域名创建自签名证书进行开发?

    I have subdomain example com我用于开发目的 我的 Web 应用程序解决方案包含 Web API 等 我需要从外部系统调用它们 因此我没有使用 localhost 我现在需要测试 SSL 并需要一个证书subdom
  • 空格分隔值;如何提供包含空格的值

    我正在创建一个 bash 脚本来通过以下方式配置多个 Azure 资源Azure CLI https learn microsoft com en us cli azure view azure cli latest 到目前为止一切顺利 但
  • RSA_public_decrypt 和 MS Crypto API 等效项

    我正在尝试开发许可证验证解决方案 许可证使用 OpenSSL 在服务器上进行编码RSA private encrypt功能 对于 Mac OS X 使用RSA public decrypt它就像一个魅力 在 Windows 上 我必须使用非
  • 通过从 .BAT 中查找进程正在使用的端口来终止进程

    在 Windows 中 什么可以查找端口 8080 并尝试通过 BAT 文件终止它正在使用的进程 打开命令提示符并运行以下命令 C Users username gt netstat o n a findstr 0 0 3000 TCP 0
  • Azure WebApp - 无法自动检测应用程序的运行时堆栈

    我正在尝试创建只有静态 HTML 的 Web 应用程序 我正在关注这个链接https learn microsoft com en us azure app service app service web get started html
  • 通过站点到站点 VPN 将 Azure 网站连接到本地数据库

    我的目标是运行一个天蓝色的网站 该网站可以访问我们本地公司数据库中的数据 我按照网络上的教程设置了一个 Azure 虚拟网络 并通过站点到站点 VPN 将其连接到我们本地公司网络 在天蓝色门户中 我可以看到连接实际上正在工作 并且数据已被接
  • 没有名为“_pywrap_tensorflow_internal”的模块

    在尝试验证tensorflow gpu的安装时 在尝试执行 import tensorflow as tf 时出现ImportError 我在 Windows 7 上使用 Quadro K620 Tensorflow 是使用 pip 安装的
  • 程序关闭后,Windows 中的文件可以锁定多长时间?

    在我使用的几个脚本中 我遇到了间歇性的问题 有时 尝试删除文件时脚本会失败 根据错误日志 由于该文件被其他进程访问 我猜测在对文件执行的上一个操作结束后 Windows 没有时间释放该文件 窗口应该有时间再次释放文件的时间是多少时间 如果
  • Azure DevOps/Pipeline IP 随机变化,因此由于防火墙规则,我无法使用 Azure SQL 数据库

    Azure DevOps Pipeline IP 随机变化 因此由于防火墙规则 我无法使用 Azure SQL 数据库 这种情况下的解决办法是什么 在连接数据库之前 您可以根据代理的当前 IP 创建防火墙规则 如下所示 task Azure

随机推荐

  • ping过程详细解读

    0 前言 在讲解ping过程之前 xff0c 我们需要了解以下概念 1 何为ping PING Packet Internet Groper xff0c 因特网包探索器 xff0c 用于测试网络连通性的程序 Ping发送一个ICMP Int
  • 使用源码安装MariaDB

    2019独角兽企业重金招聘Python工程师标准 gt gt gt 系统 xff1a CentOS 6 5 x86 64 为什么源码安装 xff1f 自定义编译参数 xff0c 编译器优化 xff0c 自定义安装位置 源码安装系统需求 xf
  • VS2015配置Linux开发远程调试

    VS2015配置Linux开发远程调试 简介 vs2015支持跨平台开发 软件环境 VS2015 update3 Visual C 43 43 for Linux Development VC Linux exe 安装步骤 安装VS2015
  • 将linux文件中的tab更换为空格的三种方法

    将linux文件中的tab更换为空格的三种方法 1 xff0c 用sed命令 sed s t g filename gt filename1 2 用tr命令 cat filename tr 34 t 34 34 34 gt filename
  • React生命周期-踩坑记_10

    React生命周期 生命周期概览 生命周期的状态 组件的生命周期可分成三个状态 xff1a Mounting xff1a 已插入真实 DOMUpdating xff1a 正在被重新渲Unmounting xff1a 已移出真实 DOMcom
  • 转录组入门(5): 序列比对

    欢迎来GitHub上fork xff0c 一起进步 xff1a https github com xuzhougeng 比对软件很多 xff0c 首先大家去收集一下 xff0c 因为我们是带大家入门 xff0c 请统一用hisat2 xff
  • amavisd 规则备忘

    邮件服务器在做内容过滤 xff0c 结果误杀好多邮件 xff0c 有一些常用规则再现 xff0c 记录一下 20150113 初版 amavisd 版本为2 6 4 https wiki apache org spamassassin Ru
  • TensorFlow Lite 支持移动 GPU,速度推测提升4-6倍

    最近 xff0c 开源机器学习框架 TensorFlow Lite 更新 xff0c 新版更新支持了 GPU 支持 GPU 原因 虽然移动设备的处理能力和功率都有限 虽然 TensorFlow Lite 提供了不少的加速途径 xff0c 比
  • Linux开机启动顺序简述

    Linux的开机启动顺序 第一步 xff1a 当然是加电了 第二步 xff1a 加载BIOS设置 xff0c 选择启动盘 这是因为因为BIOS中包含了CPU的相关信息 设备启动顺序信息 硬盘信息 内存信息 时钟信息 PnP特性等等 在此之后
  • IdentityServer4 实现 OpenID Connect 和 OAuth 2.0

    关于 OAuth 2 0 的相关内容 xff0c 点击查看 xff1a ASP NET WebApi OWIN 实现 OAuth 2 0 OpenID 是一个去中心化的网上身份认证系统 对于支持 OpenID 的网站 xff0c 用户不需要
  • 使用MakeSureDirectoryPathExists 创建多级目录

    The MakeSureDirectoryPathExists function creates all the directories in the specified DirPath beginning with the root BO
  • gnome桌面显示计算机,使用 GNOME 桌面

    Fedora 12 默认使用 GNOME 作为窗口管理器 Window Manager xff0c GNOME 的目标是基于自由软件 xff0c 为 Unix 或者类 Unix 操作系统构造一个功能完善 操作简单以及界面友好的桌面环境 xf
  • jQuery匹配各种条件的选择器用法

    hidden 匹配所有的不可见元素 xff0c input 元素的 type 属性为 34 hidden 34 的话也会被匹配到 Matches all elements that are hidden or input elements
  • 加ing形式的单词有哪些_利用英语原版教材轻松记单词快乐学语法

    英语中 xff0c 不定冠词有a和an两种形式 区别在an多了一个辅音字母n xff0c 其作用是在元音之间起分隔作用 强烈建议家长和小朋友一起重点学习英语中的五个元音并牢记相应的音标 很多朋友发音不好 xff0c 重要原因是元音不到位 x
  • linux 批量登录脚本,批量登陆linux主机脚本

    test sh bin bash dir 61 home test while read line do host 61 96 echo line awk print 1 96 passwd 61 96 echo line awk prin
  • Lottie - 轻松实现复杂的动画效果

    1 Lottie 介绍 Lottie 是 Airbnb 开源的一套跨平台的完整的动画效果解决方案 xff0c 设计师可以使用 Adobe After Effects 设计出漂亮的动画之后 xff0c 使用 Lottic 提供的 Bodymo
  • 【迁移】—Entity Framework实例详解

    好久没有在博客园更新博客了 xff0c 如今都换了新公司 前段时间写了关于EF迁移的文档 xff0c 今天拿出来作为这个系列的一篇吧 一 Entity Framework 迁移命令 xff08 get help EntityFramewor
  • 源码阅读技巧篇

    转载请注明原创出处 xff0c 谢谢 xff01 说在前面 本人水平有限 xff0c 下面的一些都是本人的思考与理解 xff0c 如果有那里不对 xff0c 希望各位大佬积极指出 xff0c 欢迎在留言区进行评论交流 探讨 主题 为什么要读
  • 文件服务器 之 VSFTPD的高手篇

    此文章细致的讲解了VSFTP的配置 环境 xff1a linux as 3 0 43 vsftpd 1 2 0 4的系统架构 xff0c 是在独立服务器下的哦 xff01 1 xff0e 配置本地组访问的FTP 首先创建用户组 test和F
  • [Windows Azure] Manage the Availability of Virtual Machines

    Manage the Availability of Virtual Machines You can ensure the availability of your application by using multiple Window