Last updated: May 2026
Azure Virtual Machines Beginner AZ-104 ⏱ 12 min read

Azure Virtual Machines Overview

Azure Virtual Machines (VMs) are one of the most fundamental and widely used services in Azure. A VM gives you a complete computer in the cloud — CPU, memory, storage, and networking — that you control just like a physical server, but without ever touching hardware. This page gives you a solid foundation before you start creating and managing VMs.

What you'll learn What Azure VMs are · IaaS vs other compute options · Key VM components · VM families and use cases · Pricing models · When to use VMs vs other services · How VMs map to AZ-104

What Are Azure Virtual Machines?

An Azure Virtual Machine is an on-demand, scalable computing resource that runs in Microsoft's data centres. It provides the illusion of a dedicated physical computer — with its own CPU cores, RAM, disk storage, and network interface — but it's actually software running on shared physical hardware using a technology called virtualisation.

Azure VMs are an IaaS (Infrastructure as a Service) offering. This means Microsoft manages the physical hardware, the data centre, and the virtualisation layer — but you are responsible for everything inside the VM: the operating system, patches, applications, and configuration.

ℹ️
Virtualisation in Simple Terms A single physical server in Azure's data centre might run 20–50 virtual machines simultaneously. Each VM thinks it has dedicated hardware, but in reality it's sharing the physical CPU, RAM, and storage with other VMs. The hypervisor (Microsoft uses a custom version of Hyper-V) ensures each VM is completely isolated from the others.

What You Can Do With Azure VMs

  • Run Windows Server or Linux (Ubuntu, Red Hat, CentOS, Debian, and more)
  • Install any software — web servers, databases, custom applications
  • Configure networking — open/close ports, assign public IPs, join virtual networks
  • Scale up (add more CPU/RAM) or scale out (add more VMs)
  • Connect via SSH (Linux) or RDP (Windows)
  • Attach additional disks for more storage
  • Take snapshots and create backups

Key VM Components

When you create an Azure VM, several components are created alongside it. Understanding these is essential for managing VMs effectively.

ComponentWhat It IsNotes
Virtual MachineThe VM itself — CPU and RAMBilled per second when running
OS DiskThe disk containing the operating systemManaged disk, billed even when VM is stopped
Network Interface (NIC)The VM's network connectionCan have multiple NICs
Virtual Network (VNet)The private network the VM lives inRequired — every VM must be in a VNet
Public IP AddressInternet-facing IP (optional)Billed separately, even when not attached
Network Security GroupFirewall rules for the VMControls inbound and outbound traffic
Resource GroupLogical container for all the aboveAll components should be in the same RG
💡
Important When you "delete" a VM in Azure, by default only the VM compute resource is deleted. The OS disk, NIC, and public IP are left behind and continue billing. Always check "Delete with VM" options or clean up manually to avoid surprise charges.

VM Families & Use Cases

Azure has dozens of VM sizes organised into families. Each family is optimised for a different workload type. Here are the most important ones:

FamilyOptimised ForExamplesUse Cases
B-seriesBurstable, cost-effectiveB1s, B2s, B4msDev/test, low-traffic web apps, small databases
D-seriesGeneral purposeD2s_v5, D4s_v5Web servers, application servers, small databases
E-seriesMemory optimisedE4s_v5, E8s_v5In-memory databases, SAP HANA, large caches
F-seriesCompute optimisedF4s_v2, F8s_v2Batch processing, game servers, analytics
N-seriesGPUNC6, NV6Machine learning, rendering, video encoding
L-seriesStorage optimisedL8s_v3, L16s_v3High-throughput databases, big data
M-seriesMemory & compute heavyM128sMassive in-memory workloads, SAP HANA
💡
Start with B-series for Learning The B1s (1 vCPU, 1 GB RAM) costs roughly ₹500–600/month on pay-as-you-go — or about ₹0.70/hour. Perfect for learning and dev/test. Always deallocate (stop) when not using it to avoid unnecessary charges.

VMs vs Other Azure Compute Services

Azure offers several compute services. Choosing the right one depends on how much control you need vs how much management overhead you're willing to take on.

ServiceTypeYou ManageBest For
Azure VMsIaaSOS, apps, patches, scalingFull control, lift-and-shift, legacy apps
Azure App ServicePaaSCode and config onlyWeb apps, APIs, no infrastructure management
Azure FunctionsServerlessJust your codeEvent-driven, short-lived functions
Azure Container InstancesPaaSContainer imageSimple containerised workloads
Azure Kubernetes ServicePaaSApp deployments, configComplex containerised microservices

VM Pricing Models

Pay-As-You-Go

Billed per second of runtime. Most expensive per hour but no commitment. Best for dev/test, variable workloads, or short-lived VMs.

Reserved Instances (1 or 3 year)

Commit to a VM size and region for 1 or 3 years. Get up to 72% discount vs pay-as-you-go. Best for production VMs that run 24/7 with predictable load.

Spot Pricing

Use Azure's unused capacity at up to 90% discount. Azure can evict your VM with 30 seconds notice. Best for fault-tolerant batch jobs, rendering, or CI/CD agents.

Azure Hybrid Benefit

If you have existing Windows Server or SQL Server licences with Software Assurance, you can use them on Azure VMs — saving up to 49% on Windows VMs.

Pricing ModelDiscount vs PAYGCommitmentBest For
Pay-As-You-GoNoneDev/test, variable workloads
1-year ReservedUp to 40%1 yearStable production workloads
3-year ReservedUp to 72%3 yearsLong-running, stable workloads
SpotUp to 90%None (interruptible)Fault-tolerant batch jobs
Hybrid BenefitUp to 49%Existing licenceExisting Windows/SQL licences

VM SLAs

Azure guarantees different levels of uptime depending on how you deploy your VM:

DeploymentSLAAnnual Downtime
Single VM (Premium SSD)99.9%~8.7 hours
VMs in Availability Set99.95%~4.4 hours
VMs across 2+ Availability Zones99.99%~52 minutes
⚠️
Single VM = No SLA Without Premium SSD A single VM with Standard HDD has no uptime SLA from Microsoft. Always use Premium SSD for production single VMs to get the 99.9% SLA. For anything critical, use multiple VMs across Availability Zones for 99.99%.

When to Use Azure VMs

ScenarioUse VM?Why
Lift-and-shift on-prem app to cloud✅ YesMinimal changes needed, full OS control
Legacy app that needs a specific OS version✅ YesOnly VMs give you full OS control
Custom software that needs kernel access✅ YesPaaS abstracts the OS
New web app or REST API❌ Consider PaaSApp Service is simpler and cheaper
Event-driven function that runs occasionally❌ Consider FunctionsFunctions are serverless — no idle billing
Custom database with specific config✅ YesNeed OS and DB engine control
💡
AZ-104 Exam Tip VMs are the most heavily tested topic in AZ-104. Know the VM components, size families, SLA levels, pricing models, availability options (Availability Sets vs Zones), and how to connect to VMs (SSH for Linux, RDP for Windows). Each of these has a dedicated tutorial in this module.
📝 Practice Questions
Click an option to check your answer. AZ-104 style questions.
Q1. Which Azure service model do Azure Virtual Machines represent?
A SaaS
B PaaS
C IaaS
D Serverless
Q2. What SLA does Azure guarantee for a single VM using Premium SSD storage?
A 99.99%
B 99.95%
C 99.9%
D 99.5%
Q3. A company has a stable production VM that runs 24/7. Which pricing model will give them the most cost savings?
A Pay-as-you-go
B Spot pricing
C 3-year Reserved Instance
D 1-year Reserved Instance
Q4. When you delete an Azure VM, what happens to the associated OS disk by default?
A It is automatically deleted with the VM
B It remains and continues to incur storage charges
C It is archived automatically for 30 days
D It is converted to a snapshot automatically
Q5. Which Azure VM family is best suited for a memory-intensive workload like an in-memory database?
A B-series (Burstable)
B F-series (Compute Optimised)
C E-series (Memory Optimised)
D N-series (GPU)
Comments
Disclaimer: RedKite Cloud is an independent educational resource and is not affiliated with, endorsed by, or officially connected to Microsoft Corporation. All product names, logos, and trademarks are property of their respective owners. Content is written independently for educational purposes only.