Skill 3.2.1

Create a virtual machine

Key Concepts

The Basics tab sets the subscription, resource group, name, region, availability options, security type (Standard, or Trusted launch, the default, with Secure Boot and vTPM), image (Windows Server, Ubuntu and others from Azure Marketplace or a compute gallery), size and administrator account (password or SSH public key for Linux). Inbound port rules can open RDP (3389) or SSH (22), which is not recommended on public IPs. Azure Hybrid Benefit uses existing Windows Server licences. Later tabs configure disks, networking (VNet, subnet, public IP, NIC network security group, load balancing), management (managed identity, auto-shutdown, backup), monitoring and extensions such as custom script.

A VM consists of several resources: the VM, its OS disk, a network interface, optionally a public IP and an NSG. Custom data or cloud-init runs configuration at first boot, and VM extensions such as Custom Script Extension run scripts later. Billing for compute stops only when a VM is deallocated (Stop in the portal), not when it is shut down from inside the operating system.