A Virtual Machine (VM) is a software emulation of a physical computer. It runs an operating system and applications just like a real computer, but it exists entirely in the cloud. VMs are the most fundamental IaaS (Infrastructure as a Service) resource in Azure. Components of a Virtual Machine Compute — The CPU and memory (RAM) allocated to the VM. You choose the size based on workload requirements. Storage — Managed disks that store the operating system and application data. Networking — The VM connects to a VNet through a Network Interface Card (NIC), and optionally gets a public IP. Operating System — Choose between Windows (connected via RDP) or Linux (connected via SSH). Management Tools — Azure Monitor, Azure Portal, and CLI help you manage and monitor the VM. Steps to Create a VM…
Key Takeaways
A VM is a cloud-based computer with Compute, Storage, Networking, and OS components.
Windows VMs use RDP (port 3389); Linux VMs use SSH (port 22) for connection.
Stopped VMs still incur costs — you must deallocate to stop all charges.
SSH keys are more secure than passwords for Linux VM authentication.