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.

0 votes

More Posts

How to update a virtual Network in Microsoft Azure

NURUDEEN ADEWALE - Jul 28

How to Manage Virtual Machines in Microsoft Azure

NURUDEEN ADEWALE - Jul 28

How to Control Storage Access in Microsoft Azure.

NURUDEEN ADEWALE - Jul 29

How to Manage tags and locks on VMs in Azure

NURUDEEN ADEWALE - Jul 29

How To Create A Shared File Storage For Offices In Azure

Andrew Arigu Ayuba - Mar 17
chevron_left