Let's get Started
- Please follow the steps below to create your Linux virtual machine.
SIGN IN TO AZURE PORTAL
Before beginning, ensure you have an Azure subscription. If not sign up to establish a complimentary account. Once your Azure subscription is active, proceed by logging into the Azure portal with your email and password.
To get started, you’ll need an Azure subscription. If you haven’t got one yet, you can sign up for a free account. After setting up your Azure subscription, you can begin by signing into the Azure portal with your email and password.
CREATE VIRTUAL MACHINE
a. Type virtual machine in the search bar
b. In the search outcomes, choose “Virtual Machine” as your resource from the displayed options.
c. Click on the "Create" button
d.) Select the virtual machine highlighted
e)You will be directed to the "Basics" page.
Project Details
In the project details section, we have the subscription and resource group
a) Subscription
An Azure subscription essentially serves as a pass giving user access to Microsoft Azure’s services. it requires a membership with a service provider or enrolling in a subscription model. This subscription allows users or businesses to utilize Azure’s diverse offerings, incurring charges based on the chosen subscription tier. Azure also presents complimentary and trial memberships, allowing for a test run of its features prior to opting for a paid plan.
b)Resource Group
Think of a resource group in Azure as a filing system that assists in categorizing and overseeing various assets, like virtual machines and databases, within Azure’s cloud infrastructure.
Consider a scenario where you have a disorganized wardrobe . Locating a specific cloth can be difficult. Here, the wardrobe symbolizes your Azure cloud space, and the cloth represent your resources. If you decide to sort out the wardrobe, placing cloths into designated sections, you create an orderly environment. Similarly, a resource group in Azure compartmentalizes related resources, streamlining the process of managing and accessing them.
4) Instance details section
a) Choose a preferred name for your virtual machine
b) In the region section, select the location you want your virtual machine to be.
A region in the cloud services like Azure is essentially a designated area that houses data centres. These data centres provide the necessary infrastructure and services. Each region functions autonomously, equipped with its own resources and infrastructure to ensure self-sufficiency.
c) Next, click on the drop-down to select your availability option and availability Zone.
In Azure, a region can consist of three availability zones, known as Zone 1, Zone 2 and Zone 3. Each zone has one or more data centres that are kilometres apart from each other.
These data centres feature autonomous systems for power, network, and cooling to reduce the effects of outages and disturbances. The physical connection between these data centres is achieved through Fibre Optic Cables. This technology enables the rapid transfer of data across extensive distances, ensuring minimal delay and maximum data transfer capacity.
d) choose Ubuntu Server 22.04 LTS - Gen2 for your image.
e) choose your virtual machine size .
Ubuntu is a Linux Operating System. An image functions as the operating system’s template. It acts as a master copy for constructing virtual machines or computing systems, containing all the necessary configurations and guidelines to establish a computer with a designated operating system and applications.
f) Choose your virtual machine’s size using the drop-down menu or by clicking “See all sizes”. Keep the remaining details unchanged.
Administrator account
a) opt for the password authentication method.Password authentication requires a combination of a username and a confidential password for system access as illustrated below.
Conversely, SSH public key authentication utilizes cryptographic key pairs for secure remote logins. Due to its robust security measures and resilience to numerous threats, public key authentication is often favoured for protected remote connections.
Nonetheless, we’ll employ password authentication for this demonstration.
b) Enter your chosen username and password.
- Inbound port rules
a) allow selected port and then select SSH(22)
b) select next to disk
- 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.
8) Tag
a) give your tag a name
Tags serve as identifiers and organizers for assets within cloud computing systems. They offer metadata or supplementary details that aid in the administration, arrangement, and monitoring of assets across a cloud framework.
b)To initiate the deployment process, review a summary of your Virtual Machine Configuration and press "Create"
c) Click on "Go to resource" when the deployment is completed.
d) You will be requested to generate new key pairs on a page. click downloads private key and go to resource
9) Connect to virtual machine
a) Create an SSH connection with the virtual machine.
b) Open a SSH connection to your virtual machine at the prompt. You can change the IP address from your VM to a different one, and you'll be replacing the.pem file path with that of where the key file was obtained.
c) open windows power shell and enter the commands below
SSH -i downloaded key username @ip then click on enter
d) it will ask if you want to connect , type yes and press enter .
e) enter your password carefully and press enter then you will be connected to your Linux virtual machine
I hope this step-by-step tutorial helped you create your linux virtual machine. Thank you