DEV Community

Cover image for Creating and Connecting to an Azure Virtual Machine
Fredrick Chukwuma
Fredrick Chukwuma

Posted on

Creating and Connecting to an Azure Virtual Machine

An Azure Virtual Machine is an Infrastructure-as-a-Service (IaaS) compute resource provided by Microsoft Azure that enables users to deploy and manage virtualized servers in the cloud. It delivers on-demand, scalable computing capacity without the need to purchase or maintain physical hardware. Azure VMs run on top of a hypervisor-based virtualization layer within Microsoft’s global data centers, allowing multiple isolated virtual machines to share the same physical host securely and efficiently.

That sounds too vague, right? Let me break it down a little bit more: An Azure Virtual Machine is like having a powerful server on standby without ever hearing the hum of hardware or worrying about rack space. Powered by Microsoft Azure, it lets you run up a fully functional Windows or Linux machine in minutes, scale it when traffic spikes, and then shut it down when the job’s done.
Whether you're deploying a production workload, testing a bold new idea, or lifting an app into the cloud, Azure VMs give you full control of the operating system and environment just like a traditional server, but smarter, faster, and globally available. In short, it is your data center… minus the data center 😉.

In this article, I will show you how to:

  • Create a virtual machine
  • Configure the virtual machine
  • Deploy the virtual machine
  • and then connect to the virtual machine

Create a Virtual Machine in Azure Portal

  • In the portal, search for and select virtual machines

virtual machine

  • Select + Create.

create

  • Choose "Virtual Machine hosted by Azure".

azure vm

Configure Virtual Machine Details

  • For Resource group select Create new. Give your resource group a name and select OK to save your changes.

resource group

  • Provide a virtual machine name

vm name

  • In the availability options, select availability zone.

availability zone

  • For operating system (image), I will be using Windows Server 2025 Datacenter - x64 Gen2

operating system

  • Set VM size to the default option

vm size
Set Up Administrator Account

  • Set up username

username

  • Set up password and then confirm password

password

  • Configure inbound ports to RDP for windows operating system. HTTP (80) is the port that helps you communicate with the internet.

inbound ports

  • Click the checkbox to accept the license agreement.

license

  • Navigate to monitoring lab

monitoring lab

  • In the monitoring lab, disable boot diagnostics

disable

Deploy the Virtual Machine

  • select review + create

create

  • Ensure validation passes.

passed validation

  • Click "Create" to deploy.

deploy

  • After deployment is complete, select go to resource

go to resource

Connect to the Virtual Machine

  • Go to the public Ip address and maximize idle timeout

timeout

  • Click "Connect" in the Azure VM blade.

connect

  • Select download RDP file

RDP

  • Open RDP file and then enter your credentials to login

connect
credentials

vm

Now we are connected to the virtual machine

  • Notice the virtual machine name vm name
  • Notice the windows edition windows edition

Top comments (1)

Collapse
 
realcloudprojects profile image
SKILL.SCH

Good Job!