CASE 22 / AZURE / MODERNIZATION / MIGRATION
Cloud Migration: VM to Containers to Kubernetes
Plan the modernization of a VM-hosted integration service toward Docker, a registry and Kubernetes in an Azure environment. This scenario makes hidden machine dependencies and persistent state explicit before attempting an automated cutover.
Engineering path
MODERNIZATION PATH
Proposed engineering sequence
- 01Traditional VM
- 02Dependency audit
- 03Docker
- 04Registry
- 05Kubernetes
- 06Automated delivery
01 / Context
Begin with the application, not a target cluster
- PLATFORM
- Azure / Kubernetes
- SCOPE
- Cloud Migration from VMs to Containers to Kubernetes
- TYPE
- Representative engineering scenario
The workload is an AEM-adjacent API or background service currently coupled to a VM. Azure supplies the cloud context; no particular managed Kubernetes product or completed migration is implied.
02 / PROBLEM
A container can preserve the wrong assumptions
Packaging the process may carry forward writable local directories, scheduled tasks, host-specific certificates and fixed network addresses. Those assumptions become failure modes when replicas move between nodes or run concurrently.
03 / CONSTRAINTS
Boundaries the design must preserve
- Separate durable data from replaceable workload instances.
- Keep Azure generic and compare VM/container behavior before cluster cutover.
04 / ARCHITECTURE
Classify each dependency before moving it
Inventory runtime libraries, configuration, authentication, outbound endpoints and persistent data. Keep stateless request handling separate from durable storage and identify which dependencies stay external during the transition rather than moving everything at once.
MODERNIZATION PATH
A migration design for complementary services in an Azure context. It does not specify AKS or move the AEM product into Kubernetes.
Cloud Migration from VMs to Containers to Kubernetes
- Traditional VM
- Dependency audit
- Docker
- Registry
- Kubernetes
- Automated delivery
05 / ENGINEERING APPROACH
Remove machine identity from service behavior
Build a reproducible Docker image and externalize environment inputs. Replace local assumptions with explicit service contracts, define startup and shutdown behavior, and test process replacement before introducing multiple replicas.
Implementation checkpoints
Proposed engineering checks for this scenario.
- 01Locate local writes, uploads, caches and scheduled jobs; assign each a durability and concurrency requirement.
- 02Map DNS, TLS, firewall and egress dependencies between Azure networks and external systems.
- 03Declare resource requests and limits from observed workload behavior, then validate them under representative load.
06 / DEPLOYMENT FLOW
Use successive validation boundaries
First compare VM and container behavior, then validate the container behind Kubernetes routing. Introduce automated delivery after the workload contract is understood, and keep a documented return path until cutover acceptance is complete.
MIGRATION GATES
Retirement follows acceptance and a recovery window. State migration and write ownership need their own cutover plan.
- 01Baseline VM
- 02Build container
- 03Publish image
- 04Deploy candidate
- 05Validate route
- 06Cut over
- 07Retire VM
07 / OPERATIONAL CONSIDERATIONS
Data durability is not a Pod property
A persistent volume is not a backup strategy, and storage behavior depends on the chosen provisioner and access mode. Validate restore procedures, ownership and failure recovery; shared writes or scheduled work may require coordination outside the service process.
08 / TRADEOFFS
Modernization can stop before Kubernetes
A container image improves packaging even when the eventual runtime is simpler than Kubernetes. Cluster adoption adds operational responsibilities; choose it only when orchestration, workload isolation and delivery requirements justify those costs.
| Risk | Impact | Mitigation to validate |
|---|---|---|
| Machine-local assumptions survive packaging | Replicas lose state or duplicate work | Audit writes, scheduled tasks and concurrency |
| Rollback ignores changed state | Returning traffic does not recover data | Rehearse restore and queued-work behavior separately |
Continue with the complementary design in Azure and Kubernetes: Readiness for AEM-Adjacent Container Workloads.
09 / WHAT I WOULD VALIDATE IN PRODUCTION
Make migration acceptance comparative
The expected technical gains are reproducible deployment inputs and clearer runtime dependencies. Compare old and candidate behavior before describing the migration as successful.
Acceptance scope and limits
TO VALIDATE
Proposed checks, not captured results.
- Replay representative API requests and background tasks against VM and container baselines.
- Replace Pods and test node disruption without losing durable data or duplicating non-idempotent work.
- Validate DNS, certificates, outbound restrictions and external authentication from the target network.
- Rehearse rollback with changed state, queued work and active connections; verify restore evidence separately.
DOES NOT CLAIM
An anonymized architecture scenario for AEM-adjacent services. AEM remains on its separately supported deployment platform; this design does not place standard Adobe AEM deployments on Kubernetes. No production delivery or measured outcome is claimed.
- A completed customer deployment or measured production outcome
- A passing test run without retained execution evidence
10 / LESSONS
Migration exposes the real service contract
The hard part is discovering which behavior belonged to the application and which belonged to the machine. Once that boundary is explicit, containerization and automated delivery become reviewable engineering steps.
Technical references
These sources document product behavior. The scenario and proposed validation are engineering interpretations, not vendor claims or execution evidence.