How to create a Virtual Machine in Microsoft Azure.

posted Originally published at dev.to 3 min read

Microsoft Azure provides a powerful cloud platform for deploying virtual machines (VMs) to run applications, host websites, or test software in a scalable environment.

What Is a Virtual Machine (VM)?

A Virtual Machine (VM) is a software-based emulation of a physical computer that runs an operating system (OS) and applications just like a real machine. It operates in an isolated environment, allowing multiple VMs to run on a single physical computer or server while sharing its resources (CPU, memory, storage, etc.). In this guide, we’ll walk you through the steps to create a virtual machine in Azure using the Azure Portal.

Step 1: Sign in to the Azure Portal

  • Go to the Azure Portal.
  • Sign in with your Azure credentials.

Image description

Step 2: Create a New Virtual Machine

  • Search for "Virtual Machine" and select it from the results.

Image description

  • Click "+ Create" to create a Virtual Machine.

Image description

Step 3: Configure Basic Settings

  • Fill in the required details in the "Basics" tab:
  • Subscription: Select your Azure subscription.
  • Resource Group: Create a new one (e.g MyDataCollectionVm_group)
  • Virtual Machine Name: Enter a unique name (e.g., MyDatacollectionVm).
  • Region: Choose the closest Azure region for better performance.

Image description

  • Image: Select an OS (Windows Server, Ubuntu, CentOS, etc..)
  • Size: Choose VM size based on CPU, RAM, and cost (e.g., B1s for testing).
  • Authentication Type:
  • Password: Set a username and password.

Image description

  • Set Inbound port rules and Click

Image description

  • Navigate to the monitoring tab and disable "Boot diagnostics"

Image description

  • Navigate to the Tag tab and give it a name "department" value "IT".

Image description

Step 4: Review and Create the VM

  • Click "Review + Create" to validate settings.
  • If validation passes, click "Create" to deploy the VM.

Image description

  • Wait a few minutes for Azure to provision the VM and click on the "Go to resources" button

Image description

Step 5: Connect to Your Virtual Machine

  • For Windows VM (RDP Connection)
  • Go to the VM’s overview page in Azure Portal.
  • Click "Connect"

Image description

  • Download the RDP file and open it.

Image description

Image description

click on "Connect" button

Image description

  • Enter your credentials when prompted.

Image description

  • Click "Yes" to verify the identity of the remote computer

Image description

  • virtual Machine has been successfully created.

Image description

Conclusion
A virtual machine is a powerful tool for running multiple operating systems on a single machine, improving efficiency, security, and flexibility. Whether you're using cloud platforms like Microsoft Azure or running local VMs with VirtualBox, VMs help optimize computing resources for various workloads.

870 Points23 Badges7 16
Lagos, Nigeriadev.to/subair09
5Posts
0Comments
Highly skilled Cloud/DevOps Support Engineer with expertise in designing, implementing, and managing cloud infrastructure on Azure and AWS. Proficient in leveraging various DevOps tools to ensure seamless integration, deployment, and monitoring of applications. Passionate about delivering top-notch support and driving innovation in cloud computing.
Build your own developer journey
Track progress. Share learning. Stay consistent.

1 Comment

0 votes
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelskiverified - Mar 19

How I Built a React Portfolio in 7 Days That Landed ₹1.2L in Freelance Work

Dharanidharan - Feb 9

Implementing Cellular Redundancy: Cross-Cloud Failover with AWS Transit Gateway and Azure ExpressRou

Cláudio Raposo - May 5

How to update a virtual Network in Microsoft Azure

NURUDEEN ADEWALE - Jul 28, 2025

How to Manage Virtual Machines in Microsoft Azure

NURUDEEN ADEWALE - Jul 28, 2025
chevron_left

Related Jobs

View all jobs →

Commenters (This Week)

8 comments
3 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!