dcsimg

Using Ubuntu Virtual Machine in Azure

WEBINAR:
On-Demand

Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame


Introduction

Developers now can create an Ubuntu Server virtual machine (VM) from the Azure portal. By default, in Azure Stack Marketplace, a Linux image is not available. A developer needs the Azure Stack operator to provide for the Ubuntu Server image. The operator can use the instructions in Download Marketplace items from Azure to Azure Stack.

In this article, I will demonstrate how to create and use a Ubuntu virtual machine.

Prerequisites

Here's a quick list of the objects you will need to start:

  • An active account in Azure Portal: https://portal.azure.com
  • Connect an Ubuntu Virtual Machine through Putty

Steps to Create an Ubuntu Virtual Machine in Azure

Open Azure portal https://portal.azure.com and click "Create a Resource." This is shown in Figures 1 and 2.

Azure Create a Resource
Figure 1: Azure Create a Resource

Search Ubuntu
Figure 2: Search Ubuntu

Next, type Ubuntu in the search box and select Ubuntu Server 18.10, as shown in Figure 3.

Ubuntu Server 18.10
Figure 3: Ubuntu Server 18.10

Next, click the "Create" button.

Once the next screen appears (shown in Figure 4), select Subscription, Resource Group, Virtual Machine name, select Region, Image, and so forth.

Set username and password to log into the VM and make a note of that.

Azure Select Subscription
Figure 4: Azure Select Subscription

Next, set the administrator account and then set the inbound port rules. Don't forget to set the Inbound Port Rules.

Set HTTP and SSH (see Figure 5).

Azure Instance details and Admin Account details
Figure 5: Azure Instance details and Admin Account details

Then, click "Next" to change the disk type, as shown in Figure 6.

Azure Disk Type Setup
Figure 6: Azure Disk Type Setup

Next, you have to update the network settings. Just click Next, as you can see in Figure 7.

Azure Network Setting
Figure 7: Azure Network Setting

Next, following is the set of several properties in the management tab. You have to update those, as shown in Figure 8.

Security Setting
Figure 8: Security Setting

Next, set the following configurations accordingly (see Figures 9 and 10).

Advance Settings
Figure 9: Advance Settings

Advance Settings, continued
Figure 10: Advance Settings, continued

Set the Tags and click "Review + Create," as shown in Figure 11.

Azure Tags
Figure 11: Azure Tags

Click "Create." VM creation will take some time. Once it is up and running, we will connect our VM by using an SSH tool called Putty.

Next, open the virtual machine in Azure portal and look for the Public IP address, which helps you to connect with newly created VM and also required in the putty tool to connect the VM. This is demonstrated in Figure 12 and 13.

Azure VM Create
Figure 12: Azure VM Create

Azure VM Deployment In Progress
Figure 13: Azure VM Deployment In Progress

Next, download Putty.exe and pass that public IP address in it. Give the username and password that you set in the portal at the time of creation of Virtual Machine. That's how you can connect to the virtual Ubuntu Linux Machine. You can see this in Figures 14 and 15.

Azure VM Deployment Completed
Figure 14: Azure VM Deployment Completed

Azure VM
Figure 15: Azure VM

Conclusion

I hope this article explains how to create the Ubuntu VM in Azure Portal. To delete the VM and its resources, select the resource group on the VM page, and then select Delete.

That's all for today. Happy coding!



About the Author

Tapas Pal

Tapas Pal is a Microsoft Platform technical professional with Tata Consultancy Services, India. He has with seven years of experience, holds Microsoft certifications in .NET 1.1 and .NET 2.0.

Related Articles

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date