In continuation with the Working with Azure VM Series this section shows you how to log on to the virtual machine so you can manage its settings and the applications that you’ll run on it and how to attach an empty data disk to the virtual machine. See the Attach a Data Disk Tutorial for more information on attaching empty disks as well as how to attach existing disks.
1. If you have not already done so, sign in to the Azure Management Portal.
2. Click Virtual Machines, and then select the appropriate virtual machine.
3. On the command bar, click Connect.
4. Click Open to use the Remote Desktop Protocol file that was automatically created for the virtual machine.
5. Click Connect to proceed with the connection process.
6. Type the user name and password of the administrative account on the virtual machine, and then click OK.
7. Click Yes to verify the identity of the virtual machine
You can now work with the virtual machine just as you would with any other server
Ø How to attach a data disk to the new virtual machine
1. Sign in to the Azure Management Portal.
2. Click Virtual Machines, and then select the MyTestVM virtual machine.
3. You may be taken to the Quick Start page first. If so, select Dashboard from the top.
4. On the command bar, click Attach, and then click Attach Empty Disk when it pops up.
5. The Virtual Machine Name, Storage Location, File 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. Then click the check mark to attach the empty disk to the virtual machine.
6. Return to the dashboard to verify that the empty data disk was successfully attached to the virtual machine. It will be listed as a second disk in the Disks list along with the OS 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.
7. 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.
8. After you log on to the virtual machine, open Server Manager in which select storage and Disk Management option. Clicking on Disk Management will open a pop up indicating that it has a disk available as shown in the screen below.
9. Now click OK and then right click on the Disk 2 at the bottom of the storage list and select New Simple volume which will make the storage data disk available to the server as shown in the screen below.
10. We can see a simple wizard that opens which is used to initialize the data disk as shown in the screen below. Proceed with the wizard and it can be used to initialize the data disk using the default values.
11. Once the initialization is done we can see the data volume available to the storage listing as shown in the screen below.
Next we will install an MongoDB Server in this VM! Watch this space!