DEV Community

Cover image for How to create a Virtual Machine in Microsoft Azure.
Oluwanifesimi
Oluwanifesimi

Posted on

How to create a Virtual Machine in Microsoft Azure.

Microsoft Azure is a cloud platform where you can run virtual computers, store data, build apps, and use AI—without needing physical servers. It's like renting powerful tech tools online to get things done faster and smarter.

what is virtual machine?

A virtual machine (VM) is like a computer inside your computer. It’s a software-based system that acts like a real physical computer, running its own operating system and apps independently. 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

Step 2: Create a New Virtual Machine

  • Search for **"Virtual Machine" **and select it from the results. search
  • Click "+ Create" to create a Virtual Machine. vm

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 AzureVM_JulyRG)
  • Virtual Machine Name: Enter a unique name (e.g. MyDataCollectionVM).
  • Region: Choose the closest Azure region for better performance.
    CONFIGURE BASIC SETTINGS

  • Image: Select an OS (Windows Server, Ubuntu, CentOS, etc..)

  • Size: Choose VM size based on CPU, RAM, and cost .
    Image/ size

  • Authentication Type:

  • Password: Set a username and password

  • Set Inbound port rules and Click

AUTHENTICATE

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

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

Step 4: Review and Create the VM

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

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

Step 5: Connect to Your Virtual Machine

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

  • Download the RDP file and open it.
    download rd
    download rdp

  • click on "Connect" button
    connect

  • Enter your credentials when prompted.
    credentials

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

  • virtual Machine has been successfully created.
    virtual machine

Conclusion

Setting up a virtual machine in Azure is more than just a checklist—it’s an essential skill in today’s cloud-first world. By walking through these simple steps, you’ve learned how to launch a scalable, secure, and flexible environment without the need for physical hardware. Whether you're testing software, hosting applications, or exploring cloud computing for the first time, Azure VMs offer powerful tools to turn your ideas into reality.

The cloud isn’t the future—it’s now. So keep building, keep experimenting, and let Azure be your playground.

Top comments (0)