Create a Virtual Machine Running Linux on Microsoft Azure

Hi all,
In this blog we will talk about Microsoft Azure VMs running Linux OS so let’s get started.

First you need to have azure account to access Azure portal, get a free azure account from http://azure.microsoft.com/en-us/pricing/free-trial/

Once you have your account…

  • + New in the bottom bar >> Compute >> Virtual Machine >> From Gallery

1

  • From Gallery you can choose your VM Os image, in this case we will choose Ubuntu Server and click

2

  • Now you have to type your VM Name and provide a Password which enable you to log on the VM next.. so i will type the VM Name and Password “Make sure to copy the User Name and Password your credential for this VM” and click 

3

  • Now you can see your VM cloud service, DNS name.cloudapp.net, storage and other configurations so let’s click → 

4

  • Finally our VM configuration has been finished click the  mark to finish and let’s wait until the VM is provisioned.

5

Now our VM successfully created so What’ Next !!?? … ohhh let’s connect to it 😉


You can connect to your VM using SSH or using RDP

Let’s connect using the SSH way

  • First you have to download the  SSH client PuTTY from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
    but before you connect to the VM you have to know your SSH Details and Port number to connect
    Go to Virtual Machines >> Your VM >> Quick Start DASHBOARD >> SSH DETAILS and copy it Screenshot (90)
  • After you have your SSH DETAILS go to PuTTY Configuration past your Host Name “Your VM SSH DETAILS ” and click Open7
  • You will be asked to provide a user name and password to log on your VM

8

Now you can access your Azure VM.


Let’s connect using the RDP way

  • To connect to VM using RDP you have to install Ubuntu desktop to do it run the following command >> sudo apt-get install ubuntu-desktop
  • After that you have to the install the RDP access to the VM to do it run the following command >> sudo apt-get install xrdp
  • Once you finish the installation go to the VM and add the ENDPOINTSScreenshot (93)
  • Add A STAND-ALONE ENDPOINT and click →   Screenshot (94)
  • Specify the details of the endpoint Name, Protocol, Public and Private Port then click √ to FinishScreenshot (95)
  • Now you can see the endpoints TCP protocol and Ports Screenshot (96)
  • Go to the VM again and connect to it Connect