HOW TO CREATE A LINUX VIRTUAL MACHINE IN MICROSOFT AZURE
Tags: beginners, cloud, ubuntu, linux
Published: 2023-02-22 11:08:39

Cloud Computing is a concept of using hosted services over the internet such as servers, databases, networking and software.
It makes computer system resources, in particular data storage and processing power, instantly available without requiring the user to manage them directly.

A cloud virtual machine is the digital version of a physical computer that can run in a cloud. Like a physical machine, it can run an operating system, store data, connect to networks, and do all the other computing functions.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8bxhhv7vvuft8l36ctci.png)

How to create a Linux Virtual Machine on Microsoft Azure:
Step 1
Create a Microsoft azure account and login
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nah2v06m6sjeo5hckhwy.png)

Step 2
Login to your Microsoft azure account and click on Virtual Machine
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1b0cpgrg7r45rnjxzh8u.png)

Step 3
Click on Create and navigate to 'create a virtual machine hosted by azure'
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ul3uzcfq3jrxhdn0bxku.png)

Step 4
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rf01i5pqrsupe204fb1o.png)
- Select your Subscription
- Resource group (choice a resource group that consist of similar items eg februaryworkload)
- Virtual machine (choose a unique name)
- Select your Region (I like to choose from my location but it is up to you)
- Availability Options (Choose Availability zone)
- Availability Zone (It is up to you)
- Security type: standard
- Image: Choose any version of Ubuntu Server
- VM Architecture: Choose x64

Step 5
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/siprioc82gx8mr8wo4lh.png)
- Authentication type (Choose the size that matches your budget)
- Username (Choose the username of your choice)
- Password ( Choose password and confirm)
- Public Inbound ports (Choose 'Allow selected ports')
- Selected inbound ports (Choose 'SSH (22)')
- Click 'Review + create'

Step 6
Click 'Create'
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c8vn9a963w4q36tbjdiw.png)

Step 7
Click 'Go to Resource'
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qasg0wgmvxcq3nmrvx5x.png)

Step 8
On the top left, click on 'Connect' and select 'SSH'
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8e7mj8yh1szlnyy4huzi.png)

Step 9
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2dl3a46qlzn9kt2j2smp.png)

Step 10
Copy Command Text from line 2 and Paste in Line 3
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2k1xx8oaly6obyag1tov.png)

Step 11
Copy line 4 Command in step 10 and go to your PC to search for Windows PowerShell

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8kblj3ktju1qpnba9bgt.png)

Step 12
What your Windows PowerShell looks like when open

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nonqm5bx47teypk2mnfe.png)

Step 13
In the Windows PowerShell, paste the copied command text 4 into your Windows PowerShell and delete the letters and figures circled in red

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s72fdo9bgp7i4e5yg66a.png)

Step 14
Windows PowerShell will prompt a command asking you to connect to serve Virtual Machine type; yes and click ENTER

Step 15
Windows PowerShell will ask for the password of your Virtual Machine, type or paste the password you created in Step 5
NB - This password will not be visible while typing, nevertheless type it and press ENTER when done

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bxywrzcpt14h8hhzuuiv.png)

Step 16
You have connected to your Linux Virtual Machine; isn't that easy?
CONGRATULATIONS

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x3qrwu4oh9yz47x9d0zr.png)

IMPORTANT: In order to save money or credit, it is worthy of note to properly shutdown or delete your azure virtual machine after use because they are billed on a "per hour" basis.