Designing compute solutions

AZ-305 Azure Solutions ArchitectInfrastructureAbout 25 minutesBy Cloud Hands On

Match workloads to VMs, containers, serverless or batch, and specify the components each option needs.

In this lesson you'll learn

1. From control to convenience

Refresher: the compute services

VMs give full control of the operating system. Containers package an app with its dependencies. Serverless runs code or workflows on demand, with no servers to manage and billing only while they run.

A scale from more control on the left to less management on the right: Virtual Machines, AKS, Container Apps, App Service, Functions and Logic Apps. More control, more to manageLess to manage, less control VMs AKS Container Apps App Service Functions Logic Apps
Pick the option furthest to the right that still meets the requirements.

2. VM-based and batch solutions

RequirementRecommend
Legacy app needing OS access or specific softwareVirtual machines
Many identical VMs that scale with loadVirtual Machine Scale Sets
Large parallel or HPC jobs across many nodes, scheduled and managedAzure Batch
Interruptible jobs at the lowest costSpot VMs (or Spot nodes in Batch and scale sets)
Remote desktops for many usersAzure Virtual Desktop

When specifying a VM solution, cover: size family, disks, availability option, scaling, image management (Azure Compute Gallery), patching (Update Manager) and backup.

3. Container-based solutions

ServiceRecommend when
Azure Container InstancesA single container or small group, short-lived tasks, no orchestration
Azure Container AppsMicroservices and APIs that scale on HTTP or events (including to zero), without managing Kubernetes
Azure Kubernetes ServiceFull Kubernetes control: custom operators, service mesh, node pools, existing Kubernetes skills
App Service (containers)A containerised web app that wants slots, custom domains and simple scaling

4. Serverless solutions

  • Azure Functions: event-driven code. The Flex Consumption plan scales to zero and supports VNet integration. Premium keeps instances warm, so there are no cold starts. A Dedicated (App Service) plan suits predictable load.
  • Logic Apps: low-code workflows that connect hundreds of services, such as "when an email with an attachment arrives, save it to SharePoint and post in Teams".
  • Durable Functions: long-running, stateful orchestrations written in code.

Example

A media company transcodes thousands of videos overnight, an API resizes images on upload, and a nightly job emails sales reports. The architect recommends Azure Batch with Spot nodes for transcoding, an Azure Function triggered by Event Grid for image resizing, and a Logic App for the scheduled report.

Exam traps to remember

  • "Without managing Kubernetes" plus "scale to zero" points to Container Apps, not AKS.
  • Azure Batch, not scale sets, is the answer for scheduling large parallel compute jobs.
  • Logic Apps for connecting services with little code, and Functions for custom code.

Test yourself: 3 check questions and exam-style practice questions on this topic are in the AZ-305 Azure Solutions Architect app.

Practise in the app

Keep going