Let's start by describing what an Azure VM and why we should leverage this technology.
An Azure virtual machine is an on-demand, scalable computer resource that is available in Azure. Virtual machines are generally used to host applications when the customer requires more control over the computing environment than what is offered by other compute resources.
When you leverage a virtual machine to host your application, you get the flexibility of virtualization without the need to buy or maintain any underlying physical hardware. That said, you will have to manage the typical tasks that are associated with any other server, including configuration, patch management, and software installation.
In this blog post, we will explore the steps taken in setting up a Linux virtual machine using Ubuntu Server.
In this blog, we will use password-based authentication for our security authentication.
****Sign into your Azure account.
****CREATE YOUR VIRTUAL MACHINE
a. In the search bar, type "Virtual Machine"
b. From the search results, select "Virtual Machine".
c. Click on the "Create" button. d.) Select azure virtual machine
It directs you to the basic page.
The Project Details
Select the subscription to manage deployed resources and costs. Use resource groups, like folders, to organize and manage all your resources as shown below
Instant Details
1. Name your virtual machine in my case I named it derightlimited
2. In the region section, select the location you want your VM to be created
3. Click on the drop-down to select your availability option and availability zone.
Please read up on Azure Region, Availability zones, and datacenters
Select security type
Security type refers to the different security features available for a virtual machine. Security features like Trusted launch and Confidential virtual machines help to improve the security of Azure generation 2 virtual machines. However, additional security features have some limitations, which include not supporting back up, managed disks, and ephemeral OS disks.
Select Image
This is the base operating system or application for the VM
Azure provides a choice of x64 or Arm64-based virtual machines to run your applications. x64-based VMs provide the most software compatibility while Arm64-based VMs provide up to 50% better price-performance than comparable x64 VMs. Arm64-based VMs also help developers build Arm-compatible software without cross-compilation.
Select VM Size
Select a VM size to support the workload that you want to run. The size that you choose then determines factors such as processing power, memory, and storage capacity. Azure offers a wide variety of sizes to support many types of uses. Azure charges an hourly price based on the VM's size and operating system.
Administrator Account
Select the password authentication type.
Password-based authentication involves using a username and secret password to access a system.
While SSH public key authentication relies on key pairs and cryptographic algorithms for secure remote access. Public key authentication offers stronger security and protection against various attacks, making it a preferred choice for secure remote connections.
However, for the purpose of this demo, we will use Password.
Type your username and your password.
Inbound Port Rules
a) In this category, select SSH (22) as your inbound port to connect to the Linux server.
b) Click "Next: Disk>" to direct you to the disk page.
Disk
a) On the Disk page click on the OS disk type dropdown and select Standard SSD or any disk type of your choice as shown below. Leave the other columns as default.
b) Leave the networking, management, monitoring and advanced pages as default. Skip to the Tag page.
Tag
a) Give your tag a name
Tags are a way to label and organize resources in cloud computing environments. The purpose of tags is to provide metadata or additional information that helps in managing, organizing, and tracking resources within a cloud infrastructure.
b) Next, click on Review+create
Review the summary of your virtual machine configuration and click on the "Create" button to begin the deployment process
Once the deployment is complete, click on "Go to resource".
CONNECT TO YOUR VIRTUAL MACHINE
a) Click on the connect button to SSH to your Virtual Machine
c) Open PowerShell on your Laptop and input the command, Press enter
d) You would be asked if you want to continue connecting, type "yes" and press enter
I hope these steps helped you create your Linux-ubuntu Virtual machine.
Thank you.