DIRTY STATIC / DISPATCH Tutorials22 NOV 2026 • 12 MIN READ
An old server cabinet in a brutalist concrete hall connected by yellow cables to a modern cloud platform, with a small robot carrying code files across a bridge
TutorialsINTELLIGENCE FOR THE MACHINE AGE

Migrate Legacy Code With Azure Catalyst And Copilot

Microsoft folded Azure Migrate and GitHub Copilot modernization into Azure Catalyst at Ignite on November 17, 2026. This tutorial uses that connected flow on one legacy application first: discover the estate and trace dependencies into code, assess the app in Visual Studio or Visual Studio Code, review the plan and its plan.md and progress.md files, run one migration task, then validate the build, the tests, and the security scan before any wider wave.

Start reading ↓

Most migration projects fail in the gap between two tools. One tool maps the servers. Another tool rewrites the code. The team in the middle carries context from one report to the other and hopes nothing important was lost.

Azure Catalyst is Microsoft attempt to close that gap. Announced at Ignite on November 17, 2026, it brings Azure Migrate and GitHub Copilot modernization together in one connected experience. Its agents map dependencies across servers and databases, then trace those dependencies into application code. This tutorial walks that flow on one application, in the order Microsoft documents it, and it claims no test run on a live estate. The Verification section tells you how to confirm the result on your own project.

What You Will Build or Learn

You will end with one legacy application assessed in two places that now share context. In Azure, the Catalyst agent will have an inventory view that shows infrastructure, data, and code dependencies. In your editor, Copilot modernization will have an assessment report, a migration plan you reviewed, and one completed task with a summary you can check.

The worked path in this tutorial uses a .NET application in Visual Studio, because Microsoft Learn documents that path in full detail. The same shape applies to Java work and to Visual Studio Code and Copilot CLI, and the steps name where those routes differ. Supported work in the Catalyst announcement includes VMware, Hyper-V, physical servers, databases, and .NET and Java apps.

Three inspection panels in a concrete hall showing connected servers and databases, with application files moving through assessment gates Discover, decide, and design before you execute. Catalyst carries the inventory and the dependency map forward into the code work. Illustration: Dirty Static

Before You Begin

Separate what is generally available from what is still in preview before you promise a date. Microsoft Book of News for Ignite says Azure Catalyst itself is generally available, the Catalyst agent is generally available, and governance rulebooks and bring your own model support in Copilot modernization are generally available. The announcement table lists most new workload coverage as public preview, including SQL migration waves, MongoDB assessment, Oracle to PostgreSQL discovery, file share assessment, and container readiness checks for Azure Kubernetes Service.

Back up the database plan separately from the code plan. Catalyst can plan application and database work together, and the combined assessment at Ignite is listed as preview work. Treat a database move as its own decision with its own rollback, even when the code task looks ready.

Note the survey figure Microsoft cites, and treat it as context rather than proof. In the Forrester Q1 2026 survey Microsoft quotes, 91 percent of IT leaders said modernization was necessary for AI, while on average only 43 percent of their applications were modernized and 32 percent were AI ready. That gap is why Microsoft built this product. It does not prove the product will close the gap on your estate.

Step 1: Start Discovery With the Catalyst Agent in Azure

Action: sign in to Azure, open Azure Catalyst, and launch the Catalyst agent. Ask it to discover your environment and assess modernization opportunities for the one application you chose. Include the servers and databases that application actually uses, not the whole estate on the first pass.

Expected result: Catalyst builds an application centred inventory from discovery data. The announcement describes adaptive discovery that uses configuration management database and monitoring data to map applications, servers, databases, and dependencies, with code analysis that identifies the business logic behind each application. Existing Azure Migrate projects continue to work in Azure Catalyst, per the product page.

Step 2: Decide the Target Before You Touch Code

Action: use the Decide stage in Catalyst to compare modernization options and costs for that application. Microsoft describes this stage as selecting a target and prioritising applications by value, effort, and risk, with Azure Value Uplift putting resiliency, agility, and productivity benefits beside cost savings.

Record the target in plain words before you move on. Name the destination, such as Azure App Service, Azure Container Apps, or Azure Kubernetes Service, and name the approach, such as rehosting, replatforming, refactoring, or rearchitecting. Those four approaches are the ones the Catalyst product page lists.

Expected result: an AI generated proposal that carries an inventory snapshot, return on investment and security assessments, and a proposed wave plan. Review it and edit it. Do not carry an unreviewed proposal into the editor steps.

Step 3: Assess the Code in Visual Studio

Action: open the legacy solution in Visual Studio. In Solution Explorer, right click the solution node and select Modernize. In the GitHub Copilot Chat window that opens, select Migrate to Azure and send it. You can also open Copilot Chat directly and send the prompt below.

Terminal

```
@Modernize Migrate to Azure
```

Expected result: a new Copilot chat session opens, the assessment starts automatically, and when it finishes you see an assessment report page and a list of migration tasks in chat. Each task includes references to set up Azure resources, add configurations, and make code changes, per Microsoft Learn.

For Visual Studio Code, open the GitHub Copilot modernization extension, select Start Assessment in the Quickstart section, then select Run Assessment. For Copilot CLI, install the modernization plugin first, then start the agent as Microsoft documents it.

Terminal

```
copilot
/plugin marketplace add microsoft/github-copilot-modernization
/plugin install github-copilot-modernization@github-copilot-modernization
copilot --agent=github-copilot-modernization:modernize
```

Step 4: Review the Plan Files Before Any Change

Action: start one migration task from the assessment report by selecting Run Task, or send the task number or name in Copilot Chat. When the session starts, find the plan files and read them in full before you approve execution.

In Visual Studio the tool creates plan.md and progress.md in the .appmod/.migration folder. In Visual Studio Code it creates the same two files in the .github/appmod/code-migration folder named for the target branch. Edit either file to customise the migration before you continue.

Expected result: a plan that names the source technology and the target technology, the dependencies it will manage, the configuration it will change, and the code it will touch. If the plan reaches beyond the target you recorded in Step 2, stop and correct the plan. Scope drift at this stage is cheap to fix. After code changes, it is not.

Step 5: Run One Migration Task

Action: when the plan and the progress tracker look right, tell Copilot to proceed. In Visual Studio, Microsoft gives this exact prompt shape.

Terminal

```
The plan and progress tracker look good to me. Go ahead with the migration.
```

Grant permission when Copilot asks for approval to use tools or run commands. Copilot then follows the plan to manage dependencies, apply configuration changes, make code changes, build the solution, fix compilation and configuration errors, and fix security vulnerabilities, per Microsoft Learn.

Expected result: the task completes with a summary, and progress.md reflects what was done. Review the full diff before you keep the changes. In Visual Studio Code, select Keep to accept changes only after that review.

Step 6: Upgrade the Framework When the App Needs It First

Action: some legacy apps need a framework upgrade before an Azure move makes sense. In Visual Studio, right click the project or solution and select Modernize, or type @Modernize in Copilot Chat, then choose the upgrade prompt and the target version. Microsoft beginners course uses a move from .NET Framework 4.8 to .NET 10 as its worked example, with guided mode so the agent stops at checkpoints for your review.

In Visual Studio Code the upgrade agent is invoked with @upgrade, and in Copilot CLI with @upgrade followed by your request. The upgrade overview lists supported paths from .NET Framework to .NET 8 or later, from .NET Core 1.x to 3.x to .NET 8 or later, and from .NET 5 or later to .NET 8 or later.

Expected result: assessment, planning, and execution stages for the upgrade, with markdown files written for each stage under the upgrades folder in your repository. Treat each checkpoint as a review gate, not a formality.

Step 7: Deploy to Azure Only After the Code Validates

Action: in Visual Studio, open the migrated project and start deployment in one of three documented ways. Accept the deploy prompt Copilot offers after a migration task, use a deployment prompt to provision new infrastructure, or use a deployment prompt to deploy to an existing resource group. Replace the bracketed placeholders below with your own values, and never paste real credentials into chat.

Terminal

```
Deploy my project to my existing Azure resource group [resource group ID] in subscription [subscription ID]. Use the #appmod-get-plan tool to develop and execute a plan.
```

Expected result: Copilot creates a deployment plan that explains the strategy, the project information, the Azure resource architecture, the resources, and the execution steps. Edit the plan or ask Copilot to edit it before you tell it to continue. Microsoft notes that Copilot can need a few iterations to fix deployment errors, and that Claude Sonnet 4 or later models give the best results for this deployment feature.

Verification

Check the work in this order. First, confirm the solution builds with no errors in the editor, because the migration loop is documented to build the project and resolve build errors as part of its work. Second, run the unit tests and confirm they pass. The documented validation loop in Visual Studio Code analyses the project for unit test failures and generates a plan to fix them until the tests pass.

Third, check the security scan. The validation loop detects Common Vulnerabilities and Exposures in current dependencies and fixes them, and Catalyst itself flags known vulnerabilities so teams can prioritise affected workloads. Fourth, compare the running app against the original on the core flows the assessment identified. Functional consistency analysis is part of the documented loop, but it does not replace your own check of the flows your users actually depend on.

Last, confirm the progress tracker and the summary match the diff you reviewed. If a change appears in the diff and appears in neither file, ask why before you merge.

Troubleshooting

ProblemLikely causeFix
Modernize does not appear in Visual StudioThe .NET desktop development workload components are not enabled, or the Visual Studio version is too oldEnable GitHub Copilot and the GitHub Copilot modernization agent in the workload, and use Visual Studio 2026 or Visual Studio 2022 version 17.14.17 or newer
Copilot uses the wrong subscriptionThe subscription changed after Visual Studio startedRestart Visual Studio. Microsoft Learn states this restart is required after a subscription change
The plan covers more than the chosen targetThe assessment proposed extra tasks and they were accepted without reviewStop before execution, edit plan.md and progress.md to the recorded target, and run one task at a time
Build errors remain after the taskA dependency or configuration change needs a manual fix the agent could not resolveRead the build output, fix the first error in order, rebuild, and let the validation loop run again
A workload you need is not covered as expectedThe new Catalyst coverage for that workload is in public previewCheck the Ignite announcement table for that workload and its destination, and plan around preview limits rather than assuming general availability
Database and app plans disagreeCombined app and database assessment is preview workPlan the database move separately, give it its own rollback, and reconcile both plans before execution

Next Steps

Run the same flow on a second application only after the first one is running in Azure and stable. Then use the Catalyst wave planning to group applications by business priority and technical dependency, which is the Design stage Microsoft describes, instead of migrating in the order applications happen to be discovered.

Apply governance rulebooks once your own standards are clear. Microsoft says rulebooks, now generally available, apply shared policies and reusable custom skills to each application agent generated plan. Write the rulebook from the lessons of the first migration, not from a template you have not tested against real code.

Start small on purpose. Microsoft own closing advice in the announcement is to start this quarter with one application and one measurable goal. That is sound advice regardless of the vendor. One finished migration teaches you more about your estate than ten assessments.

Sources

  • Microsoft, Azure Catalyst at Ignite 2026, Apps on Azure Blog, November 17, 2026. The connected experience, the Discover to Execute stages, the workload table with preview status, and the customer and survey figures Microsoft cites.
  • Microsoft Azure, Azure Catalyst product page, formerly Azure Migrate. The unified definition, supported scenarios, the four modernization approaches, and the note that existing Azure Migrate projects continue to work.
  • Microsoft Learn, Assess and migrate a .NET project with GitHub Copilot modernization for .NET. Prerequisites, the Modernize and Migrate to Azure flow, plan.md and progress.md, and the remediation and validation steps for Visual Studio, Visual Studio Code, and Copilot CLI.
  • Microsoft Learn, Deploy your project to Azure by using GitHub Copilot modernization for .NET. Deployment prerequisites, the three ways to start deployment, the plan review step, and the notes on models and iterations.
  • Microsoft Learn, GitHub Copilot upgrade overview. Supported project types, supported upgrade paths, and the @Modernize, @upgrade, and CLI entry points.
  • Microsoft, Microsoft Ignite 2026 Book of News. General availability status for Azure Catalyst, the Catalyst agent, governance rulebooks, and bring your own model support.
■

END OF TRANSMISSION

Stay curious. Question everything.

CONTINUE THE DESCENT

MORE FROM DIRTY STATIC ↘