From deployment to operational proof.
This phase addresses the AZ-104 compute domain (20–25% of exam content, April 17, 2026 skills measured). It covers the four published groups: ARM/Bicep automation, virtual machines, Azure container services and App Service.
- Choose VM, VMSS, ACI, Container Apps or App Service by workload requirements.
- Plan VM size, location, availability, managed disks, encryption at host and quota.
- Modify an ARM/Bicep deployment definition and review the expected what-if and authorized scope before changing resources.
- Configure simulated ACR/ACI/Container Apps deployments and verify registry access, restart behavior, ingress and scaling.
- Prepare an App Service plan with custom domain/TLS, slot-safe settings, VNet integration, backups and release acceptance.
- Defend each change with evidence and independent service validation.
Choose a compute service from the workload
Before provisioning a resource, determine whether the workload needs guest OS control, fleet scaling, an isolated container run or managed web hosting. Azure compute services delegate different responsibilities to the platform. No service is 'best' without knowing the application's operating model.
Virtual Machines
IaaS offers guest OS, OS patch, VM extension, disk and NIC control. A good fit for specialized OS-dependent tools and workloads that do not suit PaaS.
Virtual Machine Scale Sets
VMSS manages a fleet of VM instances with coordinated scale, instance model, update and availability options. Flexible and Uniform orchestration have different behaviors.
Azure Container Instances and Container Apps
ACI runs container groups for suitable short-lived or straightforward tasks. Container Apps provides managed ingress, revisions and scale rules for application workloads.
Azure App Service
A managed application runtime for supported web apps and APIs; you administer the App Service plan, configuration, DNS/TLS, deployment and app-specific networking.
Why can't every guest-OS-dependent Windows service be moved directly into App Service? Reveal the explanation
App Service does not grant unrestricted guest OS administration. A VM is a better starting point when the application depends on OS features and local agents.
Plan your virtual machine before creation
A healthy deployment plan identifies the intended subscription, group, image, region/zone, VM size, managed disks, NIC/subnet, management path and quota. Azure RBAC, Azure Policy and resource capacity are separate gates; a Contributor role does not guarantee a chosen SKU is deployable.
Region, zone and quota
Verify SKU region/zone support, vCPU-family quota and capacity. A published region-supported SKU does not guarantee immediate availability in a particular zone.
Image and secure sign-in
Use approved marketplace or managed images. Prefer SSH keys, approved Windows sign-in methods and private administrative access over public management ports.
NIC and attached storage
Choose the right VNet/subnet, NSG, NIC and OS/data disks. A public IP is optional; plan Bastion or a private path when appropriate.
Bootstrap and extensions
Cloud-init, Custom Script and VM extensions can configure workloads. Extension success and app service health need separate verification from VM power state.
Does a supported VM size in eastus guarantee it can be deployed to every eastus availability zone? Reveal the explanation
No. Support, quotas, placement availability and subscription constraints all need to be checked.
Build a private Linux VM deployment command
Edit a real Azure CLI command to create a private-only VM, bind its approved network controls and use public-key authentication. Verify the result and surrounding dependencies.
NORTHSTAR / CHANGE REQUEST Deploy fictional vm-ns-app02 to RG-Workloads using Ubuntu 22.04 and Standard_B2s. The approved VNet/subnet and NSG already exist. Public IP addresses and plaintext administrator passwords are prohibited.
Select a configuration and validate it. Incorrect choices reveal the missing control.
Reveal an approved operator workflow and documentation
The approved example intentionally uses an all-zero placeholder subscription ID. Never paste real keys, secrets or a live subscription identifier into JoeLearns. Set a real target only when using an authorized Azure sandbox.
az account show --query '{tenant:tenantId,subscription:id}' -o json
# Preflight VNet/subnet/NSG and regional size/quota.
# Review az vm create command and scope before actual execution.
az vm show -g RG-Workloads -n vm-ns-app02 --show-details -o json
az network nic list -g RG-Workloads -o table
# Verify no public IP, correct NSG, effective rules and private/Bastion SSH path.VM provisioning is not only an az vm create success code: identity, disks, data access, workload availability, cost and restore protection are independent checks.
Browser-only educational scenario; these selections and commands do not contact Azure, access accounts or validate live RBAC, identity, recovery points or network paths. Examples use fictional Northstar assets and must be verified against current Microsoft guidance in an authorized environment before use.
Manage disks, performance and encryption at host
Managed disks are block storage resources, not Blob containers or Azure Files shares. Disk size, performance tier and the VM family's I/O ceilings all affect application performance. Encryption at rest is a baseline Azure-managed-disk capability; encryption at host is a separate supported VM setting that protects additional host-side data paths.
OS disk and data disk
Treat boot volumes and application data separately. A detached data disk is not an independent recovery copy.
Performance budget
Standard SSD, Premium SSD, Premium SSD v2 and Ultra Disk offerings have different performance, costs and support. Check VM-level IOPS and throughput caps.
Encryption at host
Confirm support for the selected VM and disk configuration. Encryption at host is separate from default storage encryption at rest and from guest-based encryption.
Recovery protection
Snapshots and Azure Backup address recovery requirements with specific consistency/retention limits; neither is a substitute for approved change validation.
Does default Azure managed disk encryption at rest prove encryption at host is enabled? Reveal the explanation
No. Encryption at host has separate prerequisites, scope and configuration; validate its actual setting.
Understand availability sets and zones
An availability set spreads VMs across platform fault and update domains, reducing correlated host/maintenance failure exposure inside a datacenter. Availability zones are separated locations within a supported region. Workloads need instances in multiple actual zones and appropriate ingress and dependency design for zonal resilience. Neither is cross-region disaster recovery.
Availability sets
Use at least two instances to benefit from placement across fault/update domains. An availability set does not span multiple zones.
Availability zones
Deploy serving instances across two or more available zones. Two VMs in one zone remain exposed to that zone's outage.
Regional disaster
Multiple zones in one region do not protect from complete regional loss. That requires separate cross-region strategy and tested recovery.
End-to-end readiness
Load balancing, database availability, DNS, private endpoints, disk topology and actual app health must all work, not just VM runtime state.
Do three VMs in the same zone create zone-redundant application availability? Reveal the explanation
No. Instance count does not equal independent zone placement; design cross-zone service and dependency continuity.
Use VM Scale Sets and autoscale deliberately
VMSS can scale instance count in response to supported metrics or schedules. Scaling out adds instances; scaling up changes instance sizes. Autoscale has minimum, default and maximum counts, evaluation/cooldown windows, and deployment constraints. A correct rule cannot override inadequate quotas or faulty application probes.
Scale out/in
Set reasonable instance count thresholds, health evaluation, drain and shutdown behavior. Too-fast scale-in can drop in-flight work.
Scale up/down
Change VM instance size to address individual capacity constraints; assess restart/replacement and downtime implications.
Flexible orchestration
Choose a supported orchestration mode deliberately. Image management, placement and instance protection differ by mode and configuration.
Effective capacity
Verify CPU/memory patterns, SKU/zone capacity, subscription quota, load balancer probes and configured minimum healthy instances.
If an autoscale rule requests more VMs, does it bypass subscription vCPU quota? Reveal the explanation
No. The requested scale operation can fail because quota or regional capacity is insufficient.
Read ARM and Bicep as declarative infrastructure
Azure Resource Manager templates describe resources, parameters, dependencies and outputs in JSON. Bicep offers a more concise syntax that compiles to ARM JSON. Neither language overrides RBAC, policy, locks or capacity. Read resource type, API version, scope, property inputs and expected changes before deployment.
Parameters
Keep environment-specific location, names and sizes explicit. Validate allowed values; never paste credentials into normal template text.
Resource declarations
A type, API version, name and properties convey intended infrastructure. The code fragment below intentionally omits VM-required properties.
Dependencies and modules
Use references and dependencies where required. Bicep modules can encapsulate reusable resources; review module scopes and effects.
Deployment outputs
Return selected resource IDs and endpoint information, but avoid exposing sensitive values in ordinary deployment outputs.
// Illustrative Bicep fragment, NOT a deployable VM
param vmName string = 'build-agent-07'
param vmSize string = 'Standard_D2s_v5'
resource appVm 'Microsoft.Compute/virtualMachines@2024-07-01' = {
name: vmName
location: resourceGroup().location
properties: {
hardwareProfile: { vmSize: vmSize }
// Required OS, disk and network profiles omitted
}
}Can the illustrative Bicep fragment above provision a fully working Azure VM directly, as written? Reveal the explanation
No. It intentionally omits required OS, disk and network properties; it is for interpretation, not execution.
Repair an ARM JSON deployment template
Northstar needs a new Linux web app and App Service plan in the authorized Dev-East environment. The JSON currently requests a Basic instance, allows HTTP, and omits a required dependency. Fix the actual template and validate the proposed deployment approach.
Target: 10 checks · JSON / dependencies / deployment safetyAuthorized: deploy one Standard S1 Linux App Service plan with two instances plus an HTTPS-only app. Neither resource exists in this fictional environment. Preserve the parameterized plan/app names and the output. A real App Service hostname must be globally unique.
Make your decisions, then run the simulated validation. Nothing is deployed.
Reveal the authorized operator workflow and ARM JSON references
These are example commands to run in an authorized test subscription, not actions performed here. Save the edited file as azuredeploy.json.
az account set --subscription DEV-SUBSCRIPTION-ID
az account show --query "{name:name,id:id}" -o table
az deployment group validate --resource-group RG-Dev-App --template-file azuredeploy.json
az deployment group what-if --resource-group RG-Dev-App --template-file azuredeploy.json
# Only after reviewing the actual diff, Policy, RBAC, quota and approval:
az deployment group create --resource-group RG-Dev-App --template-file azuredeploy.json --mode IncrementalBecause both resources are new in this fictional scenario, review for two Create changes. A real what-if may differ; it is a preview, not a guarantee that the app works. An App Service deployment can also require additional runtime and operational configuration.
Microsoft: ARM template what-if ↗Microsoft: dependsOn and resource ordering ↗Microsoft: App Service ARM template ↗JoeLearns simulation. No Azure subscription or credentials required; these checks inspect selected values and patterns, not an actual deployment, Bicep compilation, permission check or live application. Verify real changes in an authorized test environment.
Validate templates, what-if and changes
Compile and review the desired configuration, verify target subscription and deployment scope, and inspect a what-if diff before authorization. ARM/Bicep what-if predicts control-plane changes but does not prove application health. Resource export, Bicep decompile and template conversion need human review for maintainability and supported properties.
Export and conversion
Export a supported ARM representation; use Bicep build or decompile for conversions, then inspect output for missing context or unexpected resource definitions.
What-if review
Review proposed creates, modifications and deletions. Investigate surprising replacements, identity changes and scope before executing.
Deployment history
Azure deployment operations provide provisioning evidence; look for partial child failures and service-specific diagnostics.
Change acceptance
Verify resources, app endpoints, disk state, secrets, monitoring, cost impacts and rollback—not merely a green ARM deployment status.
# Illustrative workflow: validate context before any write
az account show --query '{subscription:id,tenant:tenantId}'
az bicep build --file main.bicep
az deployment group what-if --resource-group RG-Fleet --template-file main.bicep
# After approval, with reviewed parameters and correct target:
az deployment group create --resource-group RG-Fleet --template-file main.bicepDoes Azure what-if guarantee an application is healthy after deployment? Reveal the explanation
No. What-if predicts possible resource changes; runtime health and business functionality still require independent checks.
Repair a Bicep change before deployment
An approved Dev-East application needs two Standard S1 Linux plan instances. The starter template still specifies a single Basic instance. Change the declarations, select the intended subscription, then judge the simulated change preview.
Target: 6 checks · edit / scope / what-ifTarget RG-Dev-App in Dev-East. Preserve asp-northstar-dev and Linux hosting. A change affecting Prod-East or replacing the plan is outside authorization.
Make your decisions, then run the simulated validation. Nothing is deployed.
Reveal an example operator workflow and validation commands
Use a suitably authorized test subscription. These commands are references, not actions executed by JoeLearns. Replace names and IDs before any real use.
az account set --subscription DEV-SUBSCRIPTION-ID
az account show --query "{name:name,id:id}" -o table
az bicep lint --file main.bicep
az bicep build --file main.bicep
az deployment group what-if --resource-group RG-Dev-App --template-file main.bicep
# Only after reviewing the actual diff, RBAC, Policy and change approval:
az deployment group create --resource-group RG-Dev-App --template-file main.bicepCompare the real what-if against the authorized request. Resource replacement, deletion, policy violations, missing permissions or unexpected dependencies are stop conditions.
Microsoft: Bicep what-if and permissions ↗JoeLearns simulation. No Azure subscription or credentials required; these checks inspect selected values and patterns, not an actual deployment, Bicep compilation, permission check or live application. Verify real changes in an authorized test environment.
Plan VM resizing and relocation without surprises
VM size changes, disk modifications, resource group moves, subscription moves and regional relocation are distinct operations. Availability of a new size, need to deallocate, networking, dependencies and quota can all affect a resize or move. Moving to another Azure region is a planned relocation/migration rather than simply changing the location field.
Resize responsibly
Check demand, VM size support, family quota and downtime. A resize may stop or deallocate the VM and affect its allocated host.
Resource group changes
Validate dependent resources, locks, policies, RBAC and resource-provider move rules before moving the VM.
Subscription changes
Confirm support, destination tenant context, quotas, roles and dependencies. Moving a resource is not the same as copying an entire working service.
Region move
Use supported relocation mechanisms and evaluate new network identities, data migration, DNS, backup and recovery objectives.
Can you reliably move any running VM to a new region just by editing its location property? Reveal the explanation
No. Regional relocation requires compatible migration/redeployment tools and careful treatment of networking, disks and application dependencies.
Operate ACR, ACI and Azure Container Apps
Azure Container Registry (ACR) stores container images; it does not execute them. Azure Container Instances (ACI) provisions container groups, while Azure Container Apps supports managed revisions, ingress and event-driven/HTTP scale rules. An image tag, registry identity, network path, secrets, CPU/memory limits and health diagnostics are all necessary operational inputs.
Azure Container Registry
Store versioned images, choose RBAC/managed identity for image pulls, check network restrictions and prefer immutable release identifiers over floating 'latest' tags.
Azure Container Instances
Use a container group for appropriate lightweight tasks with declared CPU/memory, restart policy, networking and logs; don't assume VMSS-style autoscale.
Azure Container Apps
Plan environment, internal/external ingress, revisions, secrets, replicas and supported autoscale triggers. Scaling cannot fix an untrusted image or bad environment variable.
Evidence first
Differentiate an image-pull failure, container process crash, quota/resource pressure and a request-routing issue before changing instance counts.
Does successfully pushing a container image to Azure Container Registry make an application run? Reveal the explanation
No. The registry stores the image; ACI, Container Apps or other execution platforms must pull and run it.
Build, run, and scale a container workload
Work through both Northstar requests. Choose a runtime, isolation, pull identity and scaling/restart behavior. Each request has different correct operating characteristics.
0 / 2 workloads validatedNorthstar's payroll exporter runs to completion after an approved trigger. It needs no HTTP endpoint; leaving a failed process in an endless restart loop creates noise.
Image lifecycle: an authorized build creates northstaracr.azurecr.io/payroll-export:v3. Verify that the image exists before configuring a runtime.
Make your decisions, then run the simulated validation. Nothing is deployed.
Reveal a real-world build and deployment checklist
- ACR: inspect the approved Dockerfile and build/push with
az acr build. A stored image is not a running workload. - ACI: choose container group image, CPU/memory, identity, registry pull access, restart policy, network and logs. Confirm the intended job actually exits.
- Container Apps: choose an environment, image/registry identity, ingress, secrets, revision mode, HTTP or custom scale rule, and min/max replicas. Validate the active revision and endpoint.
- Acceptance: verify an authorized network path, resource quota, absence of unintended public exposure, logs, expected output and cost.
JoeLearns simulation. No Azure subscription or credentials required; these checks inspect selected values and patterns, not an actual deployment, Bicep compilation, permission check or live application. Verify real changes in an authorized test environment.
Configure App Service plans, scaling and TLS
An App Service plan supplies underlying compute pricing and capacity for compatible apps. The App Service app holds runtime settings, domains, TLS, deployment and identity configuration. Scaling up adjusts plan tier/size; scaling out changes instance count. Sharing a plan means multiple apps can compete for the same capacity.
Plan and workload
Check operating system, region, runtime, features and supported plan tier. A shared plan can couple performance and cost across multiple apps.
Plan scaling
Use actual metrics and app health. More plan instances don't repair a faulty connection string or backend dependency.
Domain and TLS
Custom DNS and hostname ownership require configuration; an HTTPS certificate must match and be correctly bound to the intended host.
Network isolation
VNet integration provides supported outbound paths; inbound private endpoint/access restrictions and DNS are distinct controls.
Does App Service VNet integration automatically create an inbound private endpoint? Reveal the explanation
No. Outbound integration and private inbound access are separate configurations.
Use App Service slots, configuration and backups
Supported App Service tiers offer deployment slots for staging, validation and swapping. Not all application settings behave the same during a swap; slot-specific settings can remain attached to slots. Backup capabilities vary with plan/service constraints and may exclude dependencies such as external databases. Validation should cover TLS, app settings, backend connections, live traffic and rollback.
Staging slots
Deploy to a supported staging slot, warm up the app, verify readiness and use an authorized swap.
Sticky settings
Identify slot-specific connection strings and settings so staging secrets and backend endpoints do not cross production boundaries.
Backup scope
Check the actual plan and backup features, plus databases/external storage, retention and a tested restore.
Rollback evidence
Document the previous known-good release and the swap/redeployment strategy; verify service after traffic changes.
Does a successful deployment slot swap guarantee the application uses the correct production backend? Reveal the explanation
No. Configuration and slot-specific behavior require validation, including downstream app and data dependencies.
Prepare an App Service release that can survive a rollback
Northstar is publishing a Linux customer portal with a custom hostname. The application uses a private database reached through an approved VNet path, and requires a tested staging slot and a separate database recovery plan.
Target: 7 checks · configure / validateAuthorized baseline: Standard S1 Linux plan in Dev-East, one staging slot, hostname portal.northstar.example (fictional), approved outbound database access and a documented rollback.
Make your decisions, then run the simulated validation. Nothing is deployed.
Reveal the rollout order and service-specific caveats
- Provision the correct App Service plan and app. Verify OS, region, quotas and plan tier.
- Verify the custom domain and bind a suitable certificate. Enforce HTTPS rather than assuming DNS implies TLS.
- Provide supported outbound VNet integration and correct private DNS resolution for the database. Inbound Private Link is a different feature.
- Configure the staging slot and slot-specific application/connection settings. Warm up, verify app identity and test backend connectivity before swapping.
- Confirm the selected backup feature is supported on the plan and independently validate external database recovery. Document recovery point and actual restore steps.
- After approval and swap, test production hostname/TLS, representative transactions, health/alerts, dependencies, and rollback readiness.
JoeLearns simulation. No Azure subscription or credentials required; these checks inspect selected values and patterns, not an actual deployment, Bicep compilation, permission check or live application. Verify real changes in an authorized test environment.
Prove the workload actually works
A completed compute deployment is an operational conclusion, not a portal badge. Compare the authorized resource plan against what was provisioned, inspect actual health and dependency signals, and ensure encryption, identity, networking, data protection, cost, monitoring and rollback safeguards remain effective.
Resource validation
Check VM size, zone, disk encryption, successful extensions, deployment outputs and expected instance count.
Service validation
Check application probes, user-facing endpoints, auth, TLS, storage/database paths, container logs and VMSS health.
Non-regression
Verify that unaffected resource groups, instance pools, slots, access rules and deployments continue working.
Operational handoff
Record evidence, alerts, runbook, owner, spending assumptions, scale limits, approvals and rollback thresholds.
Why can't a green Azure deployment record alone close an operations ticket? Reveal the explanation
It proves resource provisioning status, not end-user availability, correct dependencies or non-regression.
One failure. How many VMs remain—and does the app work?
Change placement, instance count, zone spread and traffic routing. Predict the result before the model displays it. Notice how surviving VM capacity is not the same as verified application availability.
Does the workload stay usable after a failure?
Configure VM placement, count, and routing checks, then introduce a failure. The planner shows modeled VM capacity separately from application continuity.
Explicitly distribute instances across selected AZs
Continuity possible in this model
The placement leaves simulated VM capacity. That alone does not prove clients can reach a healthy application or its dependencies.
The simulated service has surviving instances, healthy dependencies and a traffic-routing assumption. Test real load balancing, capacity, storage and client paths before claiming availability.
Try four deployment planning experiments
- Select a single VM and simulate one host outage. Does the OS disk count as another running instance?
- Choose an availability set and simulate an availability-zone outage. Why does a fault domain not guarantee zone resilience?
- Deploy three VMs across three zones and fail Zone 1. Then disable healthy traffic routing. How does the outcome change?
- Choose VMSS Flexible with one instance in one zone. Does the name “scale set” alone make the application highly available?
Illustrative teaching model only. Instance allocation is synthetic; actual service continuity depends on Azure regional capacity, SKU/zone support, VMSS orchestration, fault domains, load balancer configuration, app state, disks, networks and dependencies. The model does not calculate or claim an Azure SLA, quota eligibility, pricing or automatic failover.
New tickets. No recycled challenges.
After the five configuration Build Labs and availability planner, Phase 03 Practice presents six different Northstar tickets. Diagnose the evidence, choose the authorized correction, and prove both the fix and non-regression without repeating the guided configurations.
Distinguish a quota failure, bad template, app crash or release regression.
Choose the narrow authorized change without breaking adjacent services.
Check the real application, dependency and rollback outcomes.
Source of truth for production configuration.
Aligned to Microsoft AZ-104 skills measured as of April 17, 2026. Azure service availability, supported VM families, region quotas, tier features and APIs may change; check official documentation before operational action.
