DEV Community

Cover image for Creating An Ubuntu Linux Virtual Machine in Azure
Maxwell Wokocha C.
Maxwell Wokocha C.

Posted on

Creating An Ubuntu Linux Virtual Machine in Azure

In this article we will be looking at the step by step guide on how to build an Ubuntu Linux virtual machine in Azure.

Skills:

. Create an Ubuntu Virtual Machine
. Install Nginx in the server.

Create an Ubuntu Virtual Machine:

. In the azure portal main page, search for virtual machine in the search bar.

. Select +Create and select virtual machine.

. On the basics tab, create a new resource group.

. Name virtual machine.

. Choose a region close to you or the project you're building the virtual machine for.

. Choose availability option.

. Choose security type.

. Choose authentication type, password and populate your login details.

. Choose inbound ports.

. Go to the Monitoring tab and disable boot diagnostic.

. Review and create.

. Go to resources after deployment.

. In the virtual machine overview. go to networking and click on the public IP to increase idle time.

. Connect Virtual machine.

. Go to PowerShell on windows or terminal on Mac to connect to the virtual machine.

. Type yes to are you sure you want to continue and then key in your password.

Install Nginx in the server.

. Ensure you have root privileges by switching to the root user.

. Run apt install nginx -y command to install Nginx.

. Go to the Linux virtual machine and copy the public IP address and paste on a browser "http://x.xx.xxx.x" then Nginx will display.

. Once the installation is complete, verify that Nginx is running by checking its status. Run the command: systemctl status nginx

. Now you have completely created an ubuntu Linux Virtual Machine and installed Nginx.

Top comments (0)