Menu

1 / 6

How i Created a Linux VM, SSHed Into it and Installed Apache2 on Azure

DEV Community·Daniel·7 months ago
#QPr1UGf9
#devops#cloud#linux#azure#apache2
Reading 0:00
15s threshold

Introduction

In this project, I created a Linux virtual machine on Microsoft Azure, connected to it using SSH, and installed Apache2 to host a simple web server.

This is part of my journey as an aspiring cloud engineer, learning cloud technologies, Linux, and DevOps.

Step 1: Creating a Virtual Machine on Azure

I logged into the Azure Portal and created a new virtual machine using Ubuntu as the operating system.

Key configurations included:

Resource group creation

Selecting a region

Choosing a VM size

Setting up authentication (SSH key)

Step 2: Connecting to the VM via SSH

After the VM was successfully created, I connected to it using SSh [Secure shell hosting] from my Gitbash terminal.

Command used:

ssh username@public-ip-address

Once connected, I had full access to the Linux environment running on virtual machine as shown below

Step 3: Updating the System

Before installing any software, I updated and upgraded the package list with the commands;

sudo apt update

&

sudo apt ugrade

This…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.