AZ-104 study notes · 20–25% of the exam

Deploy and manage Azure compute resources

First draft for review. Check details against Microsoft Learn before relying on them.

What this area covers

Deploying with ARM templates and Bicep, then running virtual machines, containers and App Service.

Templates and Bicep

  • ARM templates are JSON. Bicep is a simpler language that compiles to ARM. Both deploy at resource group, subscription, management group or tenant scope.
  • Deployment modes: Incremental (default, leaves extra resources alone) and Complete (removes resources not in the template).
  • Export template from a resource group or deployment to start from what exists. Use what-if to preview changes.
  • Parameters and secure parameters can reference Key Vault secrets.

Virtual machines

  • Size families: B (burstable), D (general), E (memory), F (compute), L (storage), N (GPU).
  • Availability: availability sets (fault and update domains) protect against rack failures. Availability zones protect against datacenter failures.
  • Virtual Machine Scale Sets scale out with autoscale rules. Flexible orchestration is the default for new sets.
  • Disks: Standard HDD, Standard SSD, Premium SSD, Premium SSD v2 and Ultra. Encryption at host and Azure Disk Encryption are options.
  • Moving a VM to another resource group, subscription or region needs care with its dependencies. Resizing may need a stop if the size isn't on the current hardware cluster.

Containers

  • Azure Container Registry stores images. Use the admin user only for testing, and grant AcrPull to identities instead.
  • Azure Container Instances run single containers or groups quickly with per-second billing.
  • Azure Container Apps run microservices with scale rules, revisions and scale to zero.

App Service

  • An App Service plan sets the region, size and features. Apps in a plan share its resources.
  • Deployment slots (Standard and higher) let you deploy, warm up and swap with no downtime.
  • Scaling up changes the tier. Scaling out adds instances, manually or with autoscale.
  • Configure TLS certificates, custom domains (TXT or CNAME verification), backups and networking like VNet integration and private endpoints.