Designing Virtual Machine Solutions
This lesson explains size families, isolation options and virtual machine management.
Learning outcomes
After completing this lesson, you will be able to:
- Choose a size family for a workload.
- Compare Dedicated Host, Spot and capacity reservations.
- Identify ways of securing and managing machines.
When to choose virtual machines
Virtual machines give complete control of the operating system, which suits commercial software with specific operating system requirements, legacy applications, and workloads that are moved without change. They also suit software that needs a particular kernel, or a GPU driver. The cost of this control is that the customer must patch, secure and monitor each machine, using services such as Azure Update Manager and Microsoft Defender for Servers.
Choosing a size
Virtual machine sizes are grouped into families by purpose, and the family should match the shape of the workload.
| Category | Families | Typical workload |
|---|---|---|
| General purpose | A, B, D | Web servers, small databases, test environments |
| Compute optimized | F, FX | Batch processing, application servers |
| Memory optimized | E, M | Relational databases, in-memory analytics, SAP HANA |
| Storage optimized | L | Large NoSQL databases and data warehouses |
| GPU | NC, ND, NV, NG | AI training, inference, visualization |
| High performance compute | HB, HC, HX | Simulation and tightly coupled HPC |
The B-series offers low-cost burstable CPU for workloads with low average use. Disk selection complements size selection, since a machine's maximum IOPS also limits its disks: attaching an Ultra Disk to a small virtual machine does not deliver the disk's full performance. Older sizes are retired periodically, so a design should use current generations, and the HC-series is due to retire on 31 May 2027.
The following diagram matches three needs to a virtual machine option.

VM families
Isolation and capacity
Certain requirements need more than a standard virtual machine.
Azure Dedicated Host
A dedicated host gives a physical server used by one customer. It suits compliance rules that forbid sharing hardware, and some licensing arrangements. Host groups control fault domains, and the customer gains control over maintenance, within a 35-day rolling window.
Confidential computing
Confidential virtual machines, such as the DC and EC families, protect data in use within a hardware-based trusted execution environment, shielding it from the host and from the cloud operator. They suit highly sensitive workloads that must be protected during processing.
Spot Virtual Machines
Spot uses spare capacity at a large discount, without an SLA. Azure can evict an instance at any time, with a 30-second notice, by deallocating or deleting it. It suits fault-tolerant work such as batch jobs, stateless workers and test environments, and it does not suit production databases.
On-demand capacity reservations
A capacity reservation guarantees compute capacity in a region or zone, without a time commitment, and it can be combined with a reservation for the discount. It suits disaster recovery, where capacity must be assured at the moment of failover.
Azure VMware Solution
Azure VMware Solution runs a private VMware cluster on dedicated Azure hardware, with a minimum of three hosts. It suits organizations that want to move VMware workloads to Azure while retaining vSphere tools and skills.
Beyond a standard VM
Securing and managing machines
A design should avoid exposing management ports to the internet. Azure Bastion provides browser-based RDP and SSH, without public IP addresses on the machines, and just-in-time VM access in Defender for Cloud opens ports only on request. Trusted Launch protects against boot-level attacks, and it is the default for new generation 2 machines. Encryption at host encrypts data on the host, and it is preferred over Azure Disk Encryption, which is due to retire on 15 September 2028.
Azure Compute Gallery distributes standardized images across regions, and VM Applications distribute applications. Azure Update Manager handles patching across Azure and Arc-enabled machines. Azure Virtual Desktop is the separate service to choose when users, rather than applications, need a hosted desktop.
Securing VMs
Selecting virtual machine options
An engineering firm runs an in-memory analytics product licensed per physical core, which requires that its licence is tied to a single physical server. The firm also renders video overnight, for a job that can restart if interrupted, and it needs to keep costs low. Finally, its disaster recovery plan needs virtual machines to be guaranteed to start in a secondary region. What should you recommend?
The per-core licensing tied to a physical server suggests Azure Dedicated Host, using memory-optimized sizes. The rendering work tolerates interruption and values low cost, so Spot Virtual Machines in a scale set are the appropriate choice.
The recovery guarantee needs on-demand capacity reservations in the secondary region. A one-year reservation would give a discount but would not by itself guarantee capacity. Spot would fail badly for disaster recovery, since Spot capacity can vanish at the moment it is needed most.
Does a one-year reservation guarantee that capacity will be available?
Show answer
Not by itself. A reservation gives a discount, and an on-demand capacity reservation guarantees capacity.
Exam Tips
Remember for the exam
- Match the VM family to the workload's shape; memory-optimized suits databases.
- Dedicated Host gives a physical server for one customer.
- Spot has no SLA and 30 seconds of eviction notice.
- On-demand capacity reservations guarantee capacity; reservations give a discount.
- Azure VMware Solution needs at least three hosts.