5 Minutes to Create a Linux VM in Microsoft Azure

2016-01-28 azure

In this article, I am going to demonstrate the steps required to create a Linux VM in the new Azure management portal and also the ways to connect to the server from WinSCP or Putty.

Login to Azure Portal

Login to https://portal.azure.com/# using your Microsoft account.

/project/microsoft_azure_cloud_computing/resources/6460A618-C69D-5751-9C53-2D03D46ADE51.webp

The portal looks very similar to your Windows 10 UI.

Create a Ubuntu Virtual Machine

Follow the steps below to complete the creations steps.

  • Click ‘+New’ button in the navigation bar to start creating.
  • Select Compute group.
  • In the Featured Apps list, select Ubuntu Server 14.04 LTS

/project/microsoft_azure_cloud_computing/resources/DCDD0263-6E8B-5CAC-B79F-FE6A389A529A.webp

  • Select Classic as deployment model.
  • Click Create button.
  • Input Host Name, User Name, Authentication Type (I am using password for this demo)

/project/microsoft_azure_cloud_computing/resources/7B2DA8C5-BDC2-5D5A-B226-3E6746CF0D89.webp

  • You can also configure the other settings, i.e. Pricing Tier, Network, Storage, Diagnostics, Resource Group and Location.
  • Click ‘Create’ button to finish.

In the management portal home screen, you will be able to find the tile of the virtual machine. In the following screen, the machine is still being created.

/project/microsoft_azure_cloud_computing/resources/C5AB2AAE-6554-5BBE-BD14-997F20448114.webp

Navigating through menu ‘Virtual machines (classic)’, you will find the server in the list as well.

/project/microsoft_azure_cloud_computing/resources/FFD38492-0348-5B2D-8F08-3FF2CA0F4645.webp

Once the status changes to Running, you can click the item to do more configurations.

Configure SSH Endpoint

In the details page of the virtual machine, it will give you all the details about the virtual machine you created.

The DNS name for the one I create is ubuntu1404lts-b585i1y5.cloudapp.net. You can change the DNS name as well.

You can configure endpoints through the menu item ‘Endpoints’ in Settings panel.

/project/microsoft_azure_cloud_computing/resources/8B691658-669A-56DB-9E92-A20B2C99EC08.webp

In the Endpoints page, the SSH is pre-created already in my sample as you can see from the following screenshot:

/project/microsoft_azure_cloud_computing/resources/37A5EA60-8B87-58F5-9155-CFB6711B7E00.webp

In this page, you can configure more endpoints, for example, TCP:80 for your website.

Click the existing SSH item to change the settings, I.e. port number, access control list and so forth.

Connect to the Server through WinSCP

In WinSCP, you can configure a new site using the DNS, port number, credential that you created previously.

/project/microsoft_azure_cloud_computing/resources/9E1FC8F8-D9E7-59AE-99A1-28465DCD0F6E.webp

Click ‘Login’ button to login.

Click ‘Yes’ button when you get the warning:

/project/microsoft_azure_cloud_computing/resources/AD407B82-5446-5AD6-8061-CF6BCD51B875.webp

And then you are ready to explore the server using WinSCP.

/project/microsoft_azure_cloud_computing/resources/595487C4-7068-50FA-9768-19972D22E2CD.webp

If you have already installed Putty client, click the Putty icon (the highlighted one in the following screenshot ) to start a Putty session.

/project/microsoft_azure_cloud_computing/resources/F27890A1-F3B3-5142-A9B7-5297799D60DD.webp

The following is a screenshot of Putty.

/project/microsoft_azure_cloud_computing/resources/5BDCCE0F-16BB-56E0-AE00-36EF8437F653.webp

Summary

It is very easy to setup servers in Azure. The services are highly stable, scalable and secured. Through the portal, you can easily setup all different cloud services, including servers (all major platforms), database servers (MySQL, Oracle, SQL Server and so forth), Hadoop clusters, mobile apps, IoT hub, app services, application servers and so on.

Have fun with Azure!