📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

You've been asked to lead the migration of a business-critical .NET Framework 4.8 application to .NET 10 on Azure. Walk me through how you'd run it: building the plan and the team, choosing the Azure landing zone, managing risk with the business, and how you'd define and measure success.

A leadership-level walkthrough of a business-critical .NET Framework to .NET 10 on Azure migration: discovery and baseline, phased plan, team and ways of working, Azure hosting and security choices (App Service or Container Apps, Key Vault, managed identity, Australia East), risk register, stakeholder communication, and success measures (DORA, SLOs, cost, decommissioning).

Senior RealWorldScenario Advanced azure legacy-migration migration-planning risk-management slo technical-leadership

🎯 Key points

  • Start with discovery and a baseline: usage, SLOs, error rates, costs, dependencies, owners
  • Define success up front in business terms: no SLO regression, release frequency, hosting cost, security posture, legacy decommissioned by a date
  • Phased plan with thin vertical slices and a visible first win within weeks; new features built in the new stack, not a freeze
  • Small stable team with clear roles (tech lead, legacy expert, modern .NET devs, QA, product owner), pairing legacy and modern developers
  • Azure landing: App Service or Container Apps in Australia East, Azure SQL, Key Vault + managed identity, Entra ID with MFA, private networking, IaC
  • Risk register owned with the business; scope controlled by change control: 'migrate, then improve', new requirements go to the backlog with a cost
  • Each slice passes automated tests and user acceptance testing with real users before its cutover; go/no-go criteria are written down
  • Observability before cutover and a regular communication cadence: demo every sprint, progress as % traffic migrated

⏱ 30-second answer

I'd run it as a business programme with an engineering core. First discovery and a baseline: who uses it, its SLOs, error rates, costs, dependencies and owners. Then agree what success means in business terms: no SLO regression, faster and safer releases, lower hosting cost, better security posture (Essential Eight), and the legacy app switched off by a date.

The plan is incremental: thin slices behind YARP, a visible first win within weeks, new features built in the new stack. On Azure, I'd land in Australia East with App Service or Container Apps, Azure SQL, Key Vault and managed identity, Entra ID and infrastructure as code. A risk register owned with the business and go/no-go criteria for every cutover keep it honest. The trade-off: running two systems for months costs money, but it is far cheaper than a failed big-bang cutover of a revenue-critical system.

🗣 Full answer (senior)

How I would answer this in an interview

"I'd treat it as a business change that happens to involve a lot of engineering. The first month is discovery: talk to the owners and the support team, map dependencies and integrations, and capture a baseline from production: request volumes, p95 latency, error rate, incident history, hosting and licence costs. Without that baseline, nobody can say later whether the migration succeeded.

Then I agree success criteria with the sponsor, in their language: no regression in availability or latency; releases going from [monthly] to [weekly or better]; hosting cost down by a target; security gaps closed, such as secrets out of config files and MFA everywhere for Essential Eight; and the old servers decommissioned by a date. For example, at [company] I [led the migration of a revenue-critical MVC 5 app to .NET 10 on Azure with a team of N]; we [shipped the first migrated slice in week X] and [decommissioned the old servers after Y months], with [result: availability, cost, release frequency].

The plan itself is incremental: the strangler fig with YARP, the lowest-risk high-traffic slice first to prove the pipeline, and new features built in the new stack so we're not maintaining two versions. The Azure landing is boring on purpose: App Service or Container Apps in Australia East, Azure SQL, Key Vault with managed identity, Entra ID, private endpoints, and everything in Bicep. The mistake I see in leading these is going quiet for six months. I demo every sprint, report progress as the percentage of traffic on the new stack, and every cutover has written go/no-go criteria. That's how you keep the business's trust and the funding."


Phases

Phase Duration (typical) Output
Discovery and baseline 3–6 weeks Dependency map, compatibility analysis, baseline metrics, risk register, estimate
Foundations 4–8 weeks Azure landing zone in IaC, CI/CD, observability, YARP front door, shared auth
Incremental migration Months Slices moved route by route, each with go/no-go
Decommission 1–2 months Legacy traffic at zero, servers and licences removed, docs and runbooks updated

Success measures

Measure Baseline source Target example
Availability / p95 latency per key route Application Insights / IIS logs No regression; p95 -30%
Change failure rate, deployment frequency, lead time (DORA) Release history Weekly releases, CFR < 15%
Hosting + licence cost Invoices -25% after decommission
Security findings Pen test, Essential Eight assessment Secrets in Key Vault, MFA, patched runtime
% traffic on new stack YARP / App Insights 100% by target date

Production example

In a migration like this, a team of five moved a 60-route MVC 5 app over eight months: first slice live in week six, 50% of traffic by month four, and old servers switched off in month nine. Releases went from monthly to several a week, p95 dropped from 650 ms to 240 ms, and hosting cost fell about 30% after the Windows VMs and SQL Server licences were retired.

🔍 What the interviewer is checking

Checks that the candidate can lead, not just code, a high-stakes migration: plan, risk, stakeholders and measurable success.

Green flags

  • Starts with discovery and a production baseline
  • Defines success in business terms, including decommissioning
  • Incremental plan with early visible wins and go/no-go criteria
  • Sensible, secure Azure landing in IaC; communicates progress regularly

Red flags

  • Jumps straight into technology choices
  • Big-bang cutover or feature freeze for months
  • No measures beyond 'it works on .NET 10'

📚 Learn in depth

1. Discovery: what you need to know

People      sponsor, product owner, support, ops, security, users
System      projects, packages, integrations (files, queues, SOAP, DB links)
Runtime     traffic by route, peak times, batch windows, SLOs
Risk        incidents, known bugs, undocumented behaviour, key-person risk
Money       hosting, licences, support contracts, cost of delay

Query Store and IIS logs tell you which routes and queries matter; often 20% of routes carry 80% of traffic and 30% are dead.

2. Defining success

Good criteria are measurable, owned and include an end state (legacy decommissioned). Pair outcome metrics (SLOs, DORA, cost) with guardrails (no data loss, no SLO breach during cutover). Write them in the business case so the scope can't drift silently.

3. Shaping the plan

  • Vertical slices: a route or feature end to end, not a layer.
  • First slice: high traffic, low risk, few dependencies, to prove the platform.
  • Hard slices early-ish: once the platform is proven, tackle the riskiest piece (auth, payments) while the team is fresh and the budget is intact.
  • New features in the new stack: avoids feature freezes and double work.

4. Azure landing choices

Concern Typical choice Why
Compute App Service (Linux) or Container Apps PaaS, slots or revisions for safe deploys
Region Australia East, DR in Australia Southeast Latency and data residency
Data Azure SQL Database / Managed Instance Managed backups, HA
Secrets Key Vault + managed identity No secrets in config
Identity Entra ID / Entra External ID MFA, conditional access
Network VNet integration, private endpoints, Front Door/WAF Reduce exposure
IaC Bicep or Terraform, pipelines with approvals Repeatable, reviewable
Observability Application Insights / Azure Monitor with OpenTelemetry Compare old and new

5. Risk management

Keep a living risk register with likelihood, impact, owner and mitigation. Typical top risks: undocumented behaviour (mitigation: characterisation tests, shadow traffic), data loss at cutover (rehearsed runbooks, backups, reconciliation queries), key-person dependency (pairing, docs), third-party library blockers (found in discovery), and scope creep into a redesign (change control).

6. Team and ways of working

A small, stable team (4–7) with at least one person who knows the old system deeply. Pair legacy experts with modern .NET developers. Agree a definition of done for a slice: tests, telemetry, runbook, go/no-go, rollback path.

7. Communication

Sprint demos, a one-page monthly update (traffic migrated, metrics vs baseline, top risks, decisions needed), and go/no-go meetings before each cutover with the business owner in the room.

Try it yourself

  1. Draft a one-page success criteria document for an app you know: five measures, baseline, target, owner.
  2. Use IIS logs or Application Insights to find the top 10 routes by traffic and the 10 never called in 90 days.
  3. Write a risk register with five risks for a migration, each with an owner and mitigation.
  4. Sketch the Azure landing zone in Bicep for one App Service, Azure SQL and Key Vault with managed identity.
  5. Write go/no-go criteria for a single route cutover.

💻 Code

Go/no-go criteria expressed as data so the pipeline can check them (a simple pattern I use for each cutover):

namespace Contoso.Migration.Gates;

public sealed record RouteMetrics(string Route, double P95Ms, double ErrorRate, long Requests);

public sealed record CutoverGate(double MaxP95RegressionPercent, double MaxErrorRate, long MinShadowRequests);

public static class GoNoGo
{
    // Compares the new stack (shadow or canary traffic) with the legacy baseline for one route
    public static (bool Go, IReadOnlyList<string> Reasons) Evaluate(
        RouteMetrics legacy, RouteMetrics modern, CutoverGate gate)
    {
        var reasons = new List<string>();

        if (modern.Requests < gate.MinShadowRequests)
            reasons.Add($"Only {modern.Requests} requests observed; need {gate.MinShadowRequests}.");

        var regression = (modern.P95Ms - legacy.P95Ms) / legacy.P95Ms * 100;
        if (regression > gate.MaxP95RegressionPercent)
            reasons.Add($"p95 regressed {regression:F1}% ({legacy.P95Ms:F0} ms -> {modern.P95Ms:F0} ms).");

        if (modern.ErrorRate > gate.MaxErrorRate)
            reasons.Add($"Error rate {modern.ErrorRate:P2} exceeds {gate.MaxErrorRate:P2}.");

        return (reasons.Count == 0, reasons);
    }
}

The query that feeds it, comparing old and new per route in Application Insights (both apps report to the same workspace with a cloud_RoleName):

requests
| where timestamp > ago(7d)
| where name == "GET /claims/{id}"
| summarize p95 = percentile(duration, 95),
            errorRate = countif(success == false) * 1.0 / count(),
            requests = count()
  by cloud_RoleName   // "claims-legacy" vs "claims-net10"

The landing zone core in Bicep: App Service with managed identity reading Key Vault, in Australia East.

param location string = 'australiaeast'

resource plan 'Microsoft.Web/serverfarms@2023-12-01' = {
  name: 'asp-claims-prod'
  location: location
  sku: { name: 'P1v3' }
  kind: 'linux'
  properties: { reserved: true }
}

resource app 'Microsoft.Web/sites@2023-12-01' = {
  name: 'app-claims-prod'
  location: location
  identity: { type: 'SystemAssigned' } // no secrets: the app authenticates as itself
  properties: {
    serverFarmId: plan.id
    httpsOnly: true
    siteConfig: {
      linuxFxVersion: 'DOTNETCORE|10.0'
      minTlsVersion: '1.2'
      ftpsState: 'Disabled'
    }
  }
}

⚠ Common mistakes

  • Mistake: Starting without a baseline. Why it is wrong: you can't prove the new system is better, and every complaint becomes an argument. Instead: capture latency, errors, cost and release metrics from production first.
  • Mistake: Defining success as 'running on .NET 10'. Why it is wrong: the business funds outcomes, and the old system may still be running in two years. Instead: agree business measures, including decommissioning by a date.
  • Mistake: Freezing features for the duration. Why it is wrong: the business loses patience and the migration gets cancelled. Instead: build new features in the new stack and migrate around them.
  • Mistake: Going quiet for months. Why it is wrong: stakeholders lose trust and funding. Instead: demo every sprint and report % of traffic migrated.
  • Mistake: Combining migration with a full redesign. Why it is wrong: scope explodes and nothing ships. Instead: migrate first, improve in small steps afterwards; record redesign ideas for later.
  • Mistake: Building the Azure environment by hand in the portal. Why it is wrong: drift, no review, hard to reproduce for DR. Instead: infrastructure as code with pipeline approvals from day one.
  • Mistake: No one from the old team on the new team. Why it is wrong: undocumented behaviour is lost. Instead: pair legacy experts with modern .NET developers.

🏛 Senior insight: trade-offs

Leading a migration is mostly about managing uncertainty and trust. The engineering is well understood; what sinks these programmes is unclear success criteria, invisible progress and scope creep. I make progress visible (traffic migrated), make risks explicit (register reviewed with the sponsor), and make decisions reversible (YARP routing, feature flags, rehearsed rollbacks). I also plan for the end: decommissioning is part of the scope, because the savings only arrive when the old servers are switched off.

Team and roles. A tech lead who owns the plan and the architecture decisions, at least one legacy expert who knows the undocumented behaviour, modern .NET developers paired with them, a tester who owns characterisation and acceptance tests, and a product owner who can say no. Scope control. The rule is 'migrate, then improve': emergent requirements are welcome but go into the backlog with an estimate, and the sponsor decides whether they displace migration work. Acceptance. Each slice is accepted by real users (UAT on a staging slot, then a canary with a small percentage of traffic) before full cutover. Security. Use the migration to close gaps: Entra ID with MFA and conditional access, secrets in Key Vault, patched supported runtimes (.NET 10 LTS), Defender for Cloud recommendations, all of which map to Essential Eight controls the auditors already ask about.

Decision Option When it fits When not to
Compute App Service Web apps, simple ops, deployment slots Many services, need for scale-to-zero
Compute Container Apps Several services, workers, KEDA scaling Team new to containers and short on time
Approach Incremental (strangler fig) Business-critical, must keep shipping Small app with good tests
Approach Rehost first (lift and shift to Azure VMs) Data-centre exit deadline Goal is modernisation and cost reduction

🔗 Follow-ups the interviewer may ask

  1. When: Candidate describes the technical slicing with the strangler fig and YARP Why: Checks the technical plan behind the leadership answer
    How to answer

    I wouldn't rewrite it. I'd use the strangler fig pattern: put a new ASP.NET Core 10 app in front, with YARP proxying every route it doesn't handle yet to the old .NET Framework 4.8 app. Then I move features route by route, starting with slices that are valuable and loosely coupled, while the team keeps shipping.

    The tricky parts are shared state: I use System.Web adapters to share authentication and session between the two apps, multi-target shared libraries to .NET Standard 2.0, and keep one database until the code has moved, so I'm never migrating code and data in the same step.

    I measure progress by the percentage of traffic served by the new app, legacy code deleted, and error rate and p95 per migrated route, with a flag to send a route back.

    The trade-off: running two apps for a while costs effort, but every step is small and reversible.

  2. When: Candidate mentions discovery or compatibility analysis Why: Checks how they scope the migration before estimating
    How to answer

    Compatibility analysis answers "what breaks, and how much will it cost to fix?" before anyone changes a project file. I map the project dependency graph so I can migrate leaves first, then check three things per project: APIs with no .NET 10 equivalent (System.Web, WCF server hosting, AppDomains, Remoting, CAS), NuGet packages without a netstandard2.0 or modern target, and Windows-only code (registry, WMI, System.Drawing, COM) that the CA1416 platform analyser flags.

    Tooling helps: GitHub Copilot app modernisation is Microsoft's current assistant (the .NET Upgrade Assistant was deprecated in late 2025), and analysers find the rest. The output is a costed backlog of blockers, replacements and effort per project. The trade-off: a week of analysis feels slow, but it is far cheaper than discovering a blocker halfway through a migration.

  3. When: Candidate talks about getting business buy-in for the work Why: Checks how they prioritise technical debt and win time to pay it down
    How to answer

    Technical debt is the future cost of a shortcut, and the interest is the extra effort or risk it adds every time we work near it. I make it visible in a debt register with each item's impact, how often we pay its interest (change frequency, incidents, delays) and a rough cost to fix. I prioritise by interest, not by how ugly the code is: debt in a hotspot that slows every feature beats a messy module nobody touches. I get time by explaining it in business terms (lead time, incident risk, cost), by reserving a steady share of capacity, and by pairing debt fixes with features that touch the same area.

🛠 Real-world problems: how you handle them

Migration stalls at 40% because the success criteria never included decommissioning
Situation
A [retail pricing] .NET Framework app was being migrated to .NET 10 on Azure by a team of [six]. The previous lead had defined success as 'new features on .NET 10'. [About $X a month] in on-prem hosting and licences.
Signals
After [ten months], about 40% of traffic was on the new stack; both systems were being patched and supported; the sponsor questioned the cost of running both; the team was spending [a third] of its time on the old app.
Investigation
Rebuilt the baseline from Application Insights and IIS logs: [60%] of remaining legacy traffic came from [8] routes; [25] routes had no traffic in 90 days. Reviewed the plan with the sponsor and found no end date or decommissioning budget.
Resolution
Immediate: deleted the dead routes after confirming with owners, and redefined success with the sponsor (100% traffic on the new stack and servers off by [date], cost target). Real fix: a decommissioning plan with the eight heavy routes as the next increments and a go/no-go for each.
Prevention
Success criteria include an end state and cost target; monthly report of % traffic migrated and dual-running cost; quarterly review of dead routes.

How to tell it (STAR)

**S:** I took over a migration of [a pricing app] that was stuck at about 40% after [ten months]. **T:** The sponsor was questioning the cost of running two systems, and I had to get it moving again. **A:** I rebuilt the baseline from production telemetry and found most of the remaining traffic on [eight] routes, with [25] routes not used at all. I agreed new success criteria with the sponsor, including switching the old servers off by a date, deleted the dead routes, and planned the heavy ones as the next increments with go/no-go gates. **R:** We reached 100% in [four months], decommissioned the servers, and cut [about 30%] from hosting costs; dual-running cost became a line in every monthly report.

More in Migration Topics

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me