Creating Virtual Machine in Azure for free

raghavtwenty

raghavtwenty

Posted on May 23, 2024

Creating Virtual Machine in Azure for free

This is a walkthrough for setting up linux machines in Azure VM with Persistent storage and SSH Connection.

If you are student
claim your $100 Free Credit (No Credit/Debit card required):
https://azure.microsoft.com/en-in/free/students

Step-by-step procedure:

Go to: https://portal.azure.com/
login with same account, which you have used to claim student credit.

Click "Create a resource"

Step 1

Click "Create" under "Virtual Machine"

Step 2

Under resource group, click "Create new"
Fill the details of your choice

Step 3

Choose the settings of your choice,
Image - Is the OS that will be installed your VM, I have chosen "Debian" there are many more options linux, windows etc...

Step 4

Setup username and password for your cloud VM and select all SSH, HTTP, HTTPS ports. In the bottom select "Next: Disks >"

Step 5

Choose the storage capacity according to your need. Then click "Review + create"

Step 6

Review your settings, Then the deployment will take some time.

Step 7

Step 7.1

Wait for few minutes, Once it is loaded go to "Network settings", In the bottom right corner, Select "Create Port Rule" and "Inbound Port Rule"

Step 8

Enter details same as in this picture, and click "Add" at the bottom on the right screen

Step 8.1

Step 8.2

Step 8.3

Go to "Overview" tab on the left option and select "Restart"

Step 9

Once it is done, Copy the PUBLIC IP ADDRESS of you VM, It can be seen in "Overview" tab

Public IP Address: XXX.XXX.XXX.XXX

In order to use the VM, Either you can choose "Connect" in the "Overview" tab or in your local machine terminal or command prompt

ssh <your cloud username>@your cloud vm public ip address
ssh raghavtwenty@xxx.xxx.xxx.xxx

Enter your cloud machine password to use the VM

Step 10

Now the Cloud VM is ready to use, You can perform all terminal based command operations.

When you exit in the "Overview" tab, Select "Stop" to shutdown the machine.

💖 💪 🙅 🚩
raghavtwenty
raghavtwenty

Posted on May 23, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Creating Virtual Machine in Azure for free
virtualmachine Creating Virtual Machine in Azure for free

May 23, 2024