Tutorial: How to Deploy large VMs on Windows Azure platform?


6763.SR04.1.png-550x0This tutorial shows you how to use the From Gallery method in the Management Portal to create a custom virtual machine.

This method provides more options than the Quick Create method does for configuring the virtual machine when you create it, such as the connected resources, the DNS name, and the network connectivity if needed.

1.       Sign in to the Windows Azure Management Portal.

2.       On the command bar, click New.

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

4.       Click Platform Images, select one of the images, and then click the arrow to continue.

5.       If multiple versions of the image are available, in Version Release Date, pick the version you want to use.

6.       In Virtual Machine Name, type the name that you want to use for the virtual machine. For this virtual machine, type MyTestVM1.

7.       In Size, select the size of the virtual machine. The size you should select depends on the number of cores required to run your application.

8.       In New User Name, type a name for the administrative account that you want to use to manage the server. For this virtual machine, type MyTestVM1Admin.

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

10.   Click the arrow to continue.

11.   You can place virtual machines together under a cloud service to provide robust applications, but for this tutorial, you only create a single virtual machine. To do this, select Create a new cloud service.

12.   In Cloud Service DNS Name, type a name that uses between 3 and 24 lowercase letters and numbers. This name becomes part of the URI that is used to contact the virtual machine through the cloud service. For this virtual machine, type MyService1.

13.   In Region/Affinity Group/Virtual Network, select where you want to locate the virtual machine.

14.   You can select a storage account where the VHD file is stored. For this tutorial, accept the default setting of Use an Automatically Generated Storage Account.

15.   Under Availability Set, for the purposes of this tutorial use the default setting of None.

16.   Click the arrow to continue.

17.   Under Endpoints, new endpoints are created to allow connections for Remote Desktop and Windows PowerShell remoting. (Endpoints allow resources on the Internet or other virtual networks to communicate with a virtual machine.) You can add more endpoints now, or create them later. For instructions on creating them later, see How to Set Up Communication with a Virtual Machine.

18.   Click the check mark to create the virtual machine.

After the virtual machine and cloud service are created, the Management Portal lists the new virtual machine under Virtual Machines and lists the cloud service under Cloud Services. Both the virtual machine and the cloud service are started automatically.

Successful virtual machine creation

How to log on to the virtual machine after you create it

You can log on to the virtual machine that you created to manage both its settings and the applications that are running on it.

1.       Sign in to the Windows Azure Management Portal.

2.       Click Virtual Machines, and then select the MyTestVM1 virtual machine.

3.       On the command bar, click Connect.

Connect to the virtual machine

4.       Click Open to use the remote desktop protocol file that was automatically created for the virtual machine.

5.       Click Connect.

Continue with connecting

6.       In the password box, type the user name and password that you specified when you created the virtual machine, and then click OK.

7.       Click Yes to verify the identity of the virtual machine.

Verify the identity of the machine

You can now work with the virtual machine just like you would a server in your office.

How to attach a data disk to the new virtual machine

Your application might need to store data. To set this up, attach a data disk to the virtual machine. The easiest way to do this is to attach an empty data disk to the virtual machine.

1.       Sign in to the Windows Azure Management Portal.

2.       Click Virtual Machines, and then select the MyTestVM1 virtual machine.

3.       On the command bar, click Attach, and then click Attach Empty Disk.

Attach empty disk

The Attach Empty Disk dialog box appears.

4.       The Virtual Machine NameStorage LocationFile Name, and Host Cache Preference are already defined for you. All you have to do is enter the size that you want for the disk. Type 5 in the Size field.

Note: All disks are created from a VHD file in Windows Azure storage. You can provide a name for the VHD file that is added to storage, but Windows Azure generates the name of the disk automatically.

5.       Click the check mark to attach the data disk to the virtual machine.

6.       Click the name of the virtual machine. This displays the dashboard so you can verify that the data disk was successfully attached to the virtual machine.

The virtual machine now has 2 disks. The disk that you attached is listed in the Disks table.

Attach empty disk

After you attach the data disk to the virtual machine, the disk is offline and not initialized. Before you can use it to store data, you’ll need to log on to the virtual machine and initialize the disk.

1.       Connect to the virtual machine by using the steps in the previous section, How to log on to the virtual machine after you create it.

2.       After you log on to the virtual machine, open Server Manager. In the left pane, expand Storage, and then click Disk Management.

Initialize the disk in Server Manager

3.       Right-click Disk 2, and then click Initialize Disk.

Start initialization

4.       Click OK to start the initialization process.

5.       Right-click the space allocation area for Disk 2, click New Simple Volume, and then finish the wizard with the default values.

Create the volume

The disk is now online and ready to use with a new drive letter.

Initialization success

 


Leave a Reply