In this guide, we will create a virtual machine in Azure to deploy a web server.

Prerequisites

An Azure subscription. If you don’t have an Azure subscription, you can create a free account.

here we go!

1. Creating a Resource Group

Steps

Resource Group

You will get a Screen like this. So, you have created your first resource inside Azure, specifically a Resource Group, that’s going to contain
all resources related to our Virtual Machine.

2. Creating a Virtual Network and a Subnet

What is a Virtual Network?

A virtual network is a network where all devices, servers, virtual machines, and data centers that are connected are done so through software and wireless technology.

Steps

3. Protecting a Subnet Using a Network Security Group

Network Security Group

A network security group contains security rules that allow or deny inbound network traffic to, or outbound network traffic from, several types of Azure resources. It also provides control over network traffic flowing in and out of your services running in Azure.

Steps

Inbound and Outbound security rules

Now let us assign these rules to our subnets.

4. Deploying Bastion to Connect to a Virtual Machine

In order to use Bastion to connect to our virtual machine, we need to create a subnet for it.

Now let us create the Bastion Resource.

Steps

5. Creating a Ubuntu Server Virtual Machine

Steps

6. Installing Nextcloud by Connecting Via SSH Using Bastion

7. Publishing an IP

8. Creating a DNS Label

Congratulations!! You have done this Project and learned a lot of Azure Basics.

Follow me on LinkedIn! Did you like the guide? Leave a comment below and share it in your socials!

Also any comment on anything missing or not right is very welcome. Long live the Azure Learning community!