Let’s Get Certified
Module 12 / 13 · Infrastructure design

Sequence a migration around dependencies

Choose migration waves and cutover mechanisms from dependencies, compatibility and downtime limits.

Sequence a migration around dependencies

Start with an inventory of applications, servers, databases, data volume, owner and service objectives. Use Azure Migrate discovery and assessments plus actual utilization to size targets and identify readiness issues. In the Cloud Adoption Framework, prepare a landing zone with identity, network, governance and monitoring before moving a production dependency. Confirm the application owner can test acceptance and authorize rollback.

Rehost a compatible machine when time is short and platform change is deferred. Replatform a database only after checking feature compatibility and measuring the copy and final synchronization. For object or file migration, estimate throughput from real network performance and file counts. If the network cannot carry the initial volume in time, evaluate offline seeding and an incremental transfer. Cut over after validation, including a plan for writes made after switching.

Worked case 1

An application needs both the identity service and its database after cutover. How should the migration wave be ordered?

Check your reasoning

Discover and test dependencies first. Either maintain validated connectivity across waves or move coupled services together. Define a verification and rollback point for the application.

Worked case 2

The initial file transfer will take longer than the cutover window. Does the entire copy need to happen during downtime?

Check your reasoning

Seed data ahead of time, run incremental copies and measure the final delta after quiescing writes. Validate counts and integrity before redirecting clients.

Order a migration wave by dependency

Each entry names the services a component needs. Predict which components can move together and identify the new dependency that prevents the second plan from proceeding. Run this locally with Python 3.

def waves(dependencies):
    moved = set()
    while len(moved) < len(dependencies):
        ready = sorted(k for k, required in dependencies.items()
                       if k not in moved and required <= moved)
        if not ready:
            return "blocked: " + ", ".join(sorted(set(dependencies) - moved))
        print("wave:", ", ".join(ready))
        moved.update(ready)
    return "all services scheduled"

deps = {"identity": set(), "orders-db": set(), "api": {"identity", "orders-db"}, "portal": {"api"}}
print(waves(deps))
print(waves({**deps, "api": deps["api"] | {"portal"}}))
Check your output
wave: identity, orders-db
wave: api
wave: portal
all services scheduled
wave: identity, orders-db
blocked: api, portal

The second graph contains a cycle. Validate whether a temporary cross-environment route is safe, decouple the services or migrate them as one coordinated unit.

Azure Migrate overview

Official AZ-305 skills for this topic

Related lesson in Azure Administrator Associate. Place, size and protect virtual machines.

Practice with the recording

A low-CPU application looks easy to migrate, but it calls a local database hundreds of times per request. What would you move first?

Check your reasoning

Use dependency discovery and latency measurements to group chatty components into one migration wave or redesign their interaction. Rehearse data synchronization, cutover and rollback before approving the move.

Current AZ-305 course · 1:29:21 · John Savill · AZ-305 Study Cram · 2:43:49

Apply the current exam objectives

For a database cutover, compare the cost of a long outage with the cost and complexity of continuous synchronization. For an object archive, estimate transfer time from measured throughput and include a final inventory or checksum comparison. The two migrations need different acceptance evidence.

Knowledge check

Sequence a migration around dependencies quiz

Answer 3 questions. Check each answer for an explanation.

Worked example · Dependency order