[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 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.

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
If you have not already done so, sign in to the Windows Azure Management Portal.
On the command bar, click New.

Click Virtual Machine, and then click From Gallery.
The Select the virtual machine operating system dialog box appears.
From Platform Images, select an image and then click the arrow to continue.
The Virtual machine configuration dialog box appears.
In Virtual Machine Name, type the name that you want to use for the virtual machine.
In New User Name, type a name for the administrative account that you want to use to manage the server.
In New Password, type a strong password for the administrative account. In Confirm Password, retype the password that you previously entered.
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.
Click the arrow to continue.
The Virtual machine mode dialog box appears.
Choose Stand-alone virtual machine.
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.
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.
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.
Click the arrow to continue.
The Virtual machine options dialog box appears.
In Availability Set, select Create availability set.
In Availability Set Name, enter the name for the availability set.
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
If you have not already done so, sign in to the Windows Azure Management Portal.
On the command bar, click New.

Click Virtual Machine, and then click From Gallery.

The Select the virtual machine operating system dialog box appears. You can now select an image from the Image Gallery.
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.
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.
In New Password, type a strong password for the administrative account on the virtual machine. In Confirm Password, retype the password.
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.
For a virtual machine running the Linux operating system, you can select to secure the machine with an SSH Key.
Click the arrow to continue.
The Virtual machine mode dialog box appears.
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.
In Storage Account, select a storage account where the VHD file is stored.
In Region/Affinity Group/Virtual Network, select region that you want to contain the virtual machine.
Click the arrow to continue.
The Virtual machine options dialog box appears.
Select the availability set that was created when you created the first virtual machine.
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
If you have not already done so, sign in to the Windows Azure Management Portal.
Click Virtual Machines, and then select the virtual machine that you want to configure.
Click Configure.
In the Availability Set section, select Create Availability Set, and then enter a name for the set.
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
If you have not already done so, sign in to the Windows Azure Management Portal.
Click Virtual Machines, and then select the virtual machine that you want to add to the availability set.
Click Configure.
In the Availability Set section, select the availability set that you previously created.
Click Save.
Note: This might result in the virtual machine being restarted to finalize the membership in the availability set.
[Windows Azure] Manage the Availability of Virtual Machines的更多相关文章
- [Windows Azure] About Affinity Groups for Virtual Network
Affinity groups are the way to group the services in your Windows Azure subscription that need to wo ...
- Using Windows Server 2012 Backup for Hyper-V Virtual Machines. Error 80780176 - The specified component was not reported by the VSS writer.
https://social.technet.microsoft.com/Forums/windowsserver/en-US/1a1e0066-f421-43d6-970b-1e20e674cdf9 ...
- [SQL in Azure] High Availability and Disaster Recovery for SQL Server in Azure Virtual Machines
http://msdn.microsoft.com/en-us/library/azure/jj870962.aspx Microsoft Azure virtual machines (VMs) w ...
- [SQL in Azure] Getting Started with SQL Server in Azure Virtual Machines
This topic provides guidelines on how to sign up for SQL Server on a Azure virtual machine and how t ...
- [Windows Azure] How to Scale an Application
How to Scale an Application To use this feature and other new Windows Azure capabilities, sign up fo ...
- [Windows Azure] Load Balancing Virtual Machines
Load Balancing Virtual Machines All virtual machines that you create in Windows Azure can automatica ...
- [New Portal]Windows Azure Virtual Machine (22) 使用Azure PowerShell,设置Virtual Machine Endpoint
<Windows Azure Platform 系列文章目录> 我们可以通过Windows Azure Management Portal,打开Virtual Machine的Endpoi ...
- [SQL in Azure] Provisioning a SQL Server Virtual Machine on Azure
http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-provision-sql-server/ Provi ...
- [Windows Azure] Walkthrough to Configure System Center Management Pack for Windows Azure Fabric Preview for SCOM 2012 SP1 (with a MetricsHub Bonus)
The wait is finally over. This is a huge update to the Azure Management Pack over the one that was r ...
随机推荐
- 转:折腾一晚上Bullet及Ogre相关工具的成果 -- 3Ds Max,Maya, blender, GameKit
起始目的很简单,整合Bullet及Ogre,找个能够生成.scene和.bullet文件的建模工具. 折腾一晚上Bullet及Ogre相关的东西,基本上就像爱迪生发明灯泡一样,得出了N个失败的教训,总 ...
- Tensorflow get_variable和Varialbe的区别
import tensorflow as tf """ tf.get_variable()和Variable有很多不同点 * 它们对重名操作的处理不同 * 它们受name ...
- webpack window 添加第三方库
有的时候还想来点jquery,moment,undersocre之类的库,webpack可以非常容易的做到这一点,有谣言说Bower即将停止开发了, 作者推荐都使用npm来管理依赖.那么我们现在安装在 ...
- ubuntu(14.04) 下安装yaf拓展
#wget http://pecl.PHP.net/get/yaf-2.2.9.tgz #tar zxvf yaf-.tgz #cd yaf- [root@bogon yaf-]# whereis p ...
- C# WinForm开发系列 - DataGrid/DataGridView
在WinForm开发中,DataGrid/DataGridView被广泛使用于绑定数据库中数据进行呈现.整理一些关于DataGrid/DataGridView使用的文章,涉及DataGrid/Data ...
- C语言下的错误处理的问题
下面是三种C语言的错误处理,你喜欢哪一种?还是都不喜欢? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 /* 问题: 不充分,而且很容易出错,前 ...
- http realtime response 基于http的实时响应方式的演进
http http ajax http polling ajax http long-polling ajax html5 server sent events html5 websocket com ...
- SharePoint 2013 Step by Step——使用自定义的List Template
Overview 对于企业员工来说,"扁平结构"的LIST是日常操作中经常使用到的,LIST的好处是方便数据的录入以及数据的整理分析,尤其是Quick Edit功能,可以实现快速编 ...
- jdk动态代理与cglib动态代理例子
1.JAVA的动态代理特征:特征是代理类与委托类有同样的接口,代理类主要负责为委托类预处理消息.过滤消息.把消息转发给委托类,以及事后处理消息等.代理类与委托类之间通常会存在关联关系,一个代理类的对象 ...
- Spring JavaConfig
以前,Spring推荐使用XML的方式来定义Bean及Bean之间的装配规则,但是在Spring3.0之后,Spring提出的强大的JavaConfig这种类型安全的Bean装配方式,它基于Java代 ...