Azure compute is not one interchangeable way to run code. A virtual machine, a scale set, App Service and a container platform can all support an application, but each moves a different share of security, operating-system maintenance, scaling and recovery work onto the Azure administrator. A successful deployment does not prove that an application is healthy, appropriately protected or affordable to operate.
The compute objectives in Microsoft AZ-104 Exam concern deploying and managing virtual machines, configuring availability and scaling, and operating supported application and container hosting services. This article concentrates on the administrator’s practical decisions before and after deployment. It does not repeat a general AZ-104 study sequence or a catalogue of Azure architecture certifications: the test here is whether the administrator can state the intended workload behavior and verify it under changing conditions.
Begin with what the workload needs the platform to do
Consider a regional food distributor that uses an internal order-entry system, a web interface for suppliers and a scheduled job that reconciles incoming stock records. The supplier website has bursts of traffic; order entry uses a database and must preserve transactions; the reconciliation job can run asynchronously. There is little reason to assume one Azure compute model is optimal for all three.
Identify each workload’s runtime, state, network dependencies, availability objective, scaling pattern and management constraints. A traditional application with strict guest operating-system requirements may justify a VM. A supported stateless web application may fit a managed App Service configuration. A containerized batch worker introduces image, registry, environment and job-lifecycle considerations that differ from keeping a VM running all day.
The admin’s decision is bounded by organizational standards. Which identities may deploy and operate the service? May the workload reach the internet? Does the company require specific regions, approved images, private backend access or resource tags? These questions belong in the requirements before the first resource is provisioned.
For VMs, distinguish provisioning settings from operating responsibilities
An Azure VM is a compute resource with a selected image, size, region, availability configuration, managed disks and networking. Choosing those properties affects maintenance and cost, but a correctly provisioned VM is not yet a working service. Someone must secure the guest operating system, maintain the application, manage credentials, monitor performance and perform recovery when a dependency fails.
For the distributor’s legacy order-entry component, start with a suitable supported image and a VM size consistent with its expected CPU, memory and I/O. Check relevant regional capacity and quota before declaring the deployment plan feasible. Disk performance and durability matter independently of VM size, while an overlarge disk or instance can create ongoing cost without curing a badly configured application.
A network interface connects the VM to a subnet, but reachability depends on the effective route, name resolution and filtering rules. Avoid assigning a public management address merely to make a training or production workflow convenient. A controlled administrative entry method and least-privilege management access may meet the requirement without broad internet exposure.
A practical starting point is the distinction between resource state and application behavior. The Azure virtual machine model explains the underlying resource; an operator should additionally prove that a synthetic business request reaches its intended service and cannot reach a deliberately prohibited management interface.
Use Scale Sets when managing a group of similar instances adds value
Virtual Machine Scale Sets support centrally managing groups of VM instances and, with the appropriate configuration, adjusting capacity based on demand or a schedule. This can fit a stateless supplier-facing service whose requests can be distributed across healthy instances. It may be a poor substitute for understanding how an application handles sessions, shared storage, database connections and state during instance replacement.
Define what triggers a scale decision. CPU utilization can be meaningful for one workload, while queue depth, request rate or another supported metric may better represent work waiting for processing. Observe how quickly instances become ready and whether the application can serve requests when a new instance joins. A configured autoscale rule does not guarantee instant capacity or prove a backend is healthy.
Availability and scaling also address different failure modes. Multiple instances in one failure domain might help with an individual machine fault while remaining exposed to a larger outage. Availability zones and applicable placement decisions are relevant when zone failure is in scope. Microsoft’s current guidance recommends evaluating flexible orchestration for many new multi-VM availability designs, but service and feature support must be checked for the workload in question.
Run a controlled capacity experiment with synthetic requests rather than assuming a green autoscale configuration means the service can tolerate demand. Confirm the instance count changed when expected, the health probes reflected readiness, customers did not lose required state and spending remained within the agreed budget.
Compare VMs, App Service and containers by what the team operates
A managed application hosting service can reduce direct guest operating-system maintenance, but the team still owns runtime configuration, secrets, access, application release quality and dependencies. For the distributor’s supplier portal, App Service might simplify some infrastructure work if the application fits supported runtimes and networking. A production application can still fail after a successful deployment because its database connection, identity or environment configuration is incorrect.
Containers package application dependencies into images, but the image does not authorize itself to use external services, provide persistence or establish a network path. Azure Container Instances, Azure Container Apps and container-related hosting patterns have different operating contracts. A candidate should understand which workload lifecycle and scaling features the chosen Azure service offers rather than assuming every container platform behaves like a VM.
The distinction between containers and virtual machines matters when applications need strict guest customization, consistent packaging, fast replacement, persistent storage or direct operating-system access. A hosted container does not eliminate the need to scan images, control registry access and verify what happens when the process fails.
Keep the answer grounded in operations: who patches the guest, who updates the runtime, how is the application rolled back, where is persistent state stored and what evidence shows a healthy user transaction? A sophisticated service choice is not better when the team cannot manage its failure modes.
Manage identity and network dependencies with the compute resource
Compute rarely operates alone. A VM or web application might retrieve files from Blob Storage, query a managed database and send records to a message-processing service. The application may use a managed identity, service credentials or another approved mechanism, while network policies control which path reaches each dependency. Those conditions need to work together without creating overly broad privileges.
For the order-entry service, document the principal used for each external operation. An administrator’s ability to deploy a VM is not the same as the VM’s permission to read a customer blob. A storage data role can be correct while a private endpoint’s DNS is wrong; a correct route does not authorize an application record read. Inspect these boundaries separately before responding to an “access denied” symptom.
The Azure virtual network provides a path for the workload, but it does not replace application permissions. Use one permitted and one denied test connection from the actual workload environment. A laptop on another network may resolve a different service address and produce a misleading result.
Limit diagnostic access as well. Avoid logging reusable keys, full tokens or customer data simply to capture evidence. Resource identifiers, request outcomes, time windows and relevant scope often suffice to support a troubleshooting record.
Deploy repeatably and validate the effective state afterward
Azure Resource Manager, Bicep, Azure CLI and PowerShell can make configuration changes repeatable, reviewed and less dependent on manual portal navigation. A deployment file describes desired resource properties; the control plane applies the request through the relevant resource providers. It cannot automatically guarantee that the application process starts or a downstream business transaction works.
Use Azure Resource Manager concepts to identify resource scope, dependencies, parameters and outputs. Keep secrets outside ordinary template files and require the deployment identity to have only the permissions needed. Preview changes with a supported what-if process where appropriate, understanding that preview is not a complete runtime test.
After deployment, check effective network rules, application configuration, identity scope, installed software versions and the result of a synthetic request. A retry of a failed deployment should not blindly overwrite resources or widen permissions when the original failure arose from policy. Preserve a rollback point and document what must happen if database or application state changes make a code rollback insufficient.
For the distributor, a successful release should allow a known order query, reject unauthorized access to another account and record a usable trace. If those requirements cannot be demonstrated, the release is not complete merely because the template says “succeeded.”
Monitor service health, capacity, maintenance and spending separately
CPU and memory metrics may show pressure on a VM, but they do not prove the checkout or order-entry flow is healthy. A process can return errors while the machine is underused. A scale set can have the expected number of instances while its backend health probes are incorrectly configured. The administrator should know which signals correspond to the operating problem and which merely describe a resource.
Azure Monitor can collect supported platform signals, guest telemetry and application records through appropriate configuration. Start each monitoring rule with a question: what failure must be detected, what is the evidence and who will act? A missing event might reflect collection or retention settings rather than proof that the workload had no problem.
Maintenance also requires decisions about image and guest patching, service updates, backup and restoration. Scale Sets can help coordinate VM updates under appropriate models, but the operator must still test the application during replacement and verify safe capacity. Backups protect a recoverable state when correctly configured; replication and high availability cover different faults.
Cost is an operational constraint, not an afterthought. Idle VMs, oversizing, persistent managed disks and unnecessarily retained telemetry can all create charges. A safe optimization should identify the actual demand pattern, change the smallest appropriate resource setting and recheck performance, security and recovery after the change.
Test one failure through deployment, service and recovery
Take the synthetic stock-order application and deploy a small permitted instance. Record the correct identity, storage path, application request and logging signals. Then stop a harmless application process or temporarily remove a synthetic dependency. Compare the VM provisioning state with the failed user transaction and identify the observation that distinguishes them.
Restore the application without changing unrelated security settings. Check that an authorized user can access the intended resource, a prohibited test user is still denied, and the telemetry reports a healthy recovery. If restoring a VM snapshot or backed-up disk is part of the test, verify the application’s data, keys and network dependencies rather than relying on a completed Azure Backup job alone.
AZ-104 compute competence means understanding what the Azure platform creates and what the administrator must still operate. Service selection, safe deployment, bounded access, scaling and recovery only become meaningful when they are validated against the workload. The best administrator is not the person who can create the most VMs, but the one who can keep the right service working under the conditions it was designed to handle.