↑ ↓ to move, Enter to open, Esc to close

    AZ-900Azure Fundamentals

    Switch exam

    Microsoft Azure

    aws Amazon Web Services

    Google Cloud

    ServiceNow

    Databricks

    Cisco

    Salesforce

    All exams and search
    Free exam

    Exams / AZ-900 / D2 Describe Azure architecture and services

    D2.2

    Describe Azure compute and networking services

    • 8 min read
    • 5 sections
    • 54 questions
    • 35–40% of the exam
    • Compare compute types, including containers, virtual machines, and functions
    • Describe virtual machine options, including Azure virtual machines, Azure Virtual Machine Scale Sets, availability sets, and Azure Virtual Desktop
    • Describe the resources required for virtual machines
    • Describe application hosting options, including web apps, containers, and virtual machines
    • Describe virtual networking, including the purpose of Azure virtual networks, subnets, peering, Azure DNS, Azure VPN Gateway, and ExpressRoute
    • Define public and private endpoints

    Compute types: VMs, containers, functions

    The three compute types differ in what you manage: a whole server, an app package, or just code.

    Virtual machine Container Function (serverless)
    What is virtualized Hardware: the VM runs a complete OS with its own kernel The operating system: containers share the host OS kernel Nothing to see: you deploy code only
    You manage OS, patches, software (IaaS) Your image; no OS to manage Your code
    Azure services Azure Virtual Machines, VM Scale Sets Azure Container Instances (ACI), Azure Kubernetes Service (AKS), Azure Container Apps Azure Functions (code), Azure Logic Apps (workflows)
    Typical use Full control, lift-and-shift, custom software Portable apps, microservices, fast start Event-driven tasks, pay per execution
    • Azure Virtual Machines: "you can run virtualized servers in Azure as infrastructure as a service (IaaS)"; you control the OS and installed software.
    • Containers are "a virtualization environment": lightweight, created, scaled out and stopped dynamically. Unlike VMs, you don't manage the operating system of a container.
      • Azure Container Instances: the fastest and simplest way to run a container, without managing VMs (PaaS).
      • Azure Kubernetes Service (AKS): managed Kubernetes for deploying and managing (orchestrating) containerized applications.
    • Azure Functions: serverless; event-driven triggers and bindings; you don't deploy or maintain servers.
    • Azure Logic Apps: serverless, designer-first (low-code) workflows: a trigger followed by actions, with 1,400+ connectors (email, SaaS, on-premises...).
    Azure Functions Azure Logic Apps
    Code-first: you write the code Designer-first: visual workflow + connectors
    Orchestrations are written in code with the Durable Functions extension Classic exam view: stateful. Today Standard logic apps can have stateful and stateless workflows
    Runs locally or in the cloud Classic exam view: cloud. Today Standard workflows can also run in hybrid environments you control

    Virtual machine options

    Availability set (one datacenter)Fault domain 0(power + network switch)Fault domain 1Fault domain 2Update domains: rebooted oneat a timeduring planned maintenanceVM Scale Setidentical, load-balanced VMsautoscale out / inSpot VMunused capacity, big discount,evicted when Azure needs itbackAzure Virtual DesktopWindows desktops & apps fromanywhere
    Option What it gives you
    VM Scale Sets Create and manage a group of identical, load-balanced VMs; the instance count automatically increases or decreases with demand or a schedule.
    Availability sets Logical grouping of VMs; Azure assigns each VM an update domain (rebooted together during planned maintenance) and a fault domain (shared power source and network switch). Up to 3 fault domains and 20 update domains. No extra cost: you pay for the VMs.
    Spot VMs Run on Azure's unused capacity at a significant discount; evicted (30 seconds' notice) when Azure needs the capacity back. Different from Reserved Instances (discount for a 1- or 3-year commitment).
    Azure Virtual Desktop (AVD) "A desktop and app virtualization service that runs on Azure": full desktops or individual apps (RemoteApp), Windows 11, Windows 10 or Windows Server, single-session or multi-session (many users per session host).

    AVD capacity: with multi-session host pools, each session host accepts users up to its maximum session limit (breadth-first or depth-first load balancing), so a 20-host pool is not limited to 20 users.

    Resources required by a VM

    Resource Required?
    Virtual network + subnet Yes: "When you create a virtual machine (VM), you create a virtual network or use an existing one."
    Network interface (NIC) Yes: created automatically in the portal; each NIC must be connected to a VNet in the same location and subscription
    Size (vCPUs, RAM), OS disk, image Yes
    Public IP address No: "Assigning a public IP address to a NIC is optional."
    NSG, service endpoint, Azure Firewall Optional

    Application hosting options

    Service Model Use it for
    Azure App Service PaaS Web apps, mobile back ends, REST APIs without managing infrastructure
    Containers (ACI, AKS, Container Apps) PaaS / managed Portable containerized apps
    Azure Virtual Machines IaaS Full control of the server
    Azure Functions Serverless Code that runs on events

    App Service plan tiers (frequent exam topic):

    Tier Compute Scale out Notes
    Free, Shared Same VM as other customers' apps No CPU minutes on a shared VM
    Basic Dedicated VMs Manual, a few instances Custom domains + TLS/SSL; 10 GB storage per plan
    Standard Dedicated VMs Autoscale 50 GB storage per plan; the usual exam answer for "custom domain + SSL + several instances + > 10 GB, cheapest"
    Premium, Isolated Dedicated (Isolated: dedicated VNet too) Autoscale More instances and storage

    The storage limit is the total for all apps in the same plan.

    Virtual networking

    On-premisesAzureVNet 1 (isolated by default)VPN device(= local network gateway in Azure)Remote laptopVirtual network gatewayin GatewaySubnetSubnet web + NSGSubnet db + NSGVNet 2Storage accountSite-to-site VPNIPsec over internetPoint-to-site VPNExpressRouteprivate, Layer 3, BGPPeeringMicrosoft backboneService endpoint /private endpoint

    Virtual networks and subnets

    • A VNet is "a software-defined, isolated network in Azure". Isolation by default: resources in different VNets can't communicate until you create peering or a VPN; resources in the same VNet communicate by default.
    • Subnets segment a VNet (e.g. web / app / data tiers); VNets and subnets are "your first layer of network segmentation".
    • Naming and addressing: a VNet name must be unique in its resource group; address ranges of different VNets may overlap, but overlapping networks can't be connected.
    • By default all resources can communicate outbound to the internet; inbound needs a public IP or a public load balancer.
    • A resource group or a lock is not a network boundary.

    Peering

    • Connects two or more VNets so they "appear as one for connectivity purposes"; traffic stays on the Microsoft backbone (no gateway, no internet).
    • Works across regions (global peering), subscriptions and Microsoft Entra tenants: effectively "any two virtual networks" (non-overlapping address spaces).

    Azure DNS

    Azure Public DNS Azure Private DNS
    Purpose Hosting service for your internet-facing domains Name resolution inside virtual networks
    Custom domain Yes Yes, instead of Azure-provided names
    Automatic VM records No Autoregistration on a VNet link: VM records created and removed automatically

    Hybrid connectivity: VPN Gateway vs ExpressRoute

    VPN Gateway ExpressRoute
    Path Encrypted tunnel over the public internet Private connection via a connectivity provider, not over the internet
    Variants Site-to-site (on-premises VPN device ↔ Azure VPN gateway, IPsec/IKE) · Point-to-site (one client computer, e.g. telecommuters) · VNet-to-VNet Circuits; multiple circuits allowed (same or different providers) for resiliency
    Routing On-premises BGP routes can be propagated to the VNet Layer 3, dynamic routing via BGP

    Building blocks of a VPN:

    • Virtual network gateway: Azure-managed VMs deployed in a subnet that must be named GatewaySubnet (create it first).
    • Local network gateway: represents the on-premises VPN device: its public IP or FQDN and the on-premises address prefixes.

    Filtering and protection (frequently mixed with this module)

    Service What it does Scope
    Network security group (NSG) Allow/deny rules by source, destination, port, protocol; inbound and outbound Associated with a subnet and/or a NIC, never a whole VNet
    Application security group (ASG) Groups VMs so NSG rules can target them Used as source/destination in NSG rules
    Azure Firewall Managed, stateful firewall; DNAT (NAT) rules publish internal servers, network rules, application rules (FQDN) Central, across subscriptions and VNets (hub-and-spoke)
    Azure DDoS Protection Detects and mitigates DDoS attacks on public IPs; mitigation reports and flow logs Public IP resources
    User-defined routes (UDR) Override routing: next hop virtual appliance (NVA), VNet gateway, internet, none... Route table on a subnet
    Network virtual appliance (NVA) A VM running a network function such as a firewall Reached through UDRs

    NSG essentials:

    • Rule source/destination: Any, IP address / CIDR, service tag, or ASG.
    • Default rules exist in both directions and can't be removed (only overridden): VNet traffic and outbound internet are allowed, other inbound traffic is denied (DenyAllInbound). So an NSG does not block everything by default.
    • To open a port to a VM (HTTP 80, TCP 8080...): add an inbound allow rule in its NSG.
    • NSGs and Azure Firewall filter, they don't encrypt. Encryption comes from a VPN, TLS, or the OS (e.g. IPsec on Windows Server).

    Public and private endpoints

    Public endpoint Service endpoint Private endpoint
    Address Service's public IP Service keeps its public IP; your subnet's traffic uses private source IPs A network interface with a private IP from your VNet
    Path Internet Azure backbone network Private Link, inside your VNet
    Use Default access Keep VNet → PaaS (e.g. Storage) traffic off the internet, restrict the service to your subnet Reach a PaaS resource privately as if it were in your VNet

    Exam traps

    • "Operating system virtualization": strictly = containers (shared kernel); some questions use it for VMs ("a virtual machine with its own OS"). Use the other slots to decide.
    • Availability set = fault + update domains (one datacenter); availability zone = separate datacenters; scale set = autoscaling identical VMs.
    • Spot = unused capacity, evictable; Reserved = commitment discount.
    • AVD is not Windows-10-only (Windows 11, Windows Server too) and is multi-session.
    • A VM always needs a VNet; a public IP is optional.
    • Isolate a VM or meet a "separate network segment" requirement: separate VNet, never a resource group.
    • Peering works across regions and subscriptions: "any two virtual networks".
    • Remote individual users → Point-to-site; office network: Site-to-site; private, no internet → ExpressRoute (Layer 3, BGP, multiple circuits OK).
    • On-premises VPN device in Azure: local network gateway; Azure-side → virtual network gateway in GatewaySubnet.
    • Open a port / control web-to-DB traffic: NSG (subnet or NIC, not VNet). Central filtering across many VNets/subscriptions → Azure Firewall. Internet → internal server through the firewall → NAT (DNAT) rules.
    • Traffic Manager = DNS routing only; DDoS Protection = attack mitigation + reports. Neither opens access to a VM.
    • Keep Storage traffic off the internet: service endpoint (or private endpoint).
    • Serverless: code: Functions; rule/trigger workflow with connectors (e.g. send email) → Logic Apps.
    • App Service: Free/Shared can't scale out; Basic 10 GB; Standard 50 GB: usually Standard.

    Docs

    The rest of this chapter is part of the AZ-900 premium course

    Unlock every chapter, all 470 questions and spaced review with All access or a 90-day exam pass. Every Fundamentals exam stays free, and the first chapter of every exam is open.

    Chapters