Skip to content

Commit 2a95d37

Browse files
authored
Merge pull request #1 from hellosnow/ninpan/coding-agent
Add .net migration mcp server for coding agent
2 parents 7bc4367 + c583ca0 commit 2a95d37

File tree

5 files changed

+97
-0
lines changed

5 files changed

+97
-0
lines changed
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
title: Migrate .NET Apps to Azure Using GitHub Copilot App Modernization in Coding Agent
3+
description: Provides an overview of how .NET developers can migrate applications to Azure using GitHub Copilot App Modernization in Copilot Coding Agent.
4+
ms.author: ninpan
5+
ms.reviewer: jessiehuang
6+
ms.topic: overview
7+
ms.date: 11/14/2025
8+
ms.custom: devx-track-dotnet
9+
ms.subservice: migration-copilot
10+
---
11+
12+
# Migrate .NET Apps Using GitHub Copilot App Modernization in Coding Agent
13+
14+
## Overview
15+
16+
This article provides an overview of how .NET developers can migrate their applications using **GitHub Copilot app modernization** within the [**Copilot Coding Agent**](https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent). The agent can work independently in the background to complete modernization tasks—just like a human developer. Developers can delegate tasks via issues or pull requests, and the agent executes them in the cloud, helping teams complete the entire modernization journey efficiently.
17+
18+
>[!NOTE]
19+
>Copilot coding agent is available with the GitHub Copilot Pro, GitHub Copilot Pro+, GitHub Copilot Business and GitHub Copilot Enterprise plans. The agent is available in all repositories stored on GitHub, except repositories owned by managed user accounts and where it has been explicitly disabled.
20+
21+
## Prerequisites
22+
- [**Copilot Coding Agent**](https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent) configured
23+
- A GitHub Copilot Pro, Pro+, Business, or Enterprise subscription
24+
- A GitHub repo
25+
- A Copilot environment with .NET 10 SDK installed (for dnx command to run), See [customize the agent environment](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment) for more details. To install the .NET 10 SDK, add the following steps in the `copilot-setup-steps.yml`:
26+
```
27+
- name: Setup .NET 10
28+
uses: actions/setup-dotnet@v5
29+
with:
30+
dotnet-version: '10.x'
31+
32+
- name: Verify .NET 10
33+
run: |
34+
dotnet --info
35+
```
36+
37+
## Getting Started
38+
1. Go to the Settings of the target repository you want to modernize.(You must be an admin of this repository)
39+
2. Select Copilot, then click "Coding Agent".
40+
3. Under MCP Configuration in the Model Context Protocol (MCP) section, manually add the following configuration, and click "Save Configuration":
41+
```
42+
{
43+
"mcpServers": {
44+
"DotNetAppModMcpServer-migrate": {
45+
"type": "local",
46+
"command": "dnx",
47+
"tools": [
48+
"*"
49+
],
50+
"args": [
51+
"Microsoft.AppModernization.McpServer.DotNet.Migration",
52+
"--yes",
53+
"--source",
54+
"https://api.nuget.org/v3/index.json"
55+
]
56+
}
57+
}
58+
}
59+
```
60+
:::image type="content" source="./media/coding-agent/mcp.png" lightbox="./media/coding-agent/mcp.png" alt-text="Screenshot of MCP configuration in coding agent":::
61+
4. (Optional) If environment variables are required, set them under Environment → Copilot in the settings. These environment variables will be initialized automatically the first time a user invokes an agentic task in this repository.
62+
5. Save the MCP configuration.
63+
64+
### Migrate your .NET Application to Azure
65+
To migrate your .NET application to Azure, describe your migration scenario for Coding Agent.
66+
67+
For details on predefined migration tasks, see [migration tasks](predefined-tasks.md).
68+
For example:
69+
```
70+
Migrate this project from local file IO to Azure Blob Storage
71+
Migrate this project from local sql server to Azure SQL DB with managed identity
72+
Migrate this project from file based logging to OpenTelemetry
73+
```
74+
75+
Start by opening the Agents panel in the top-right corner and enter your prompt. After the prompt is entered, Copilot will start a new session and open a new Pull Request, which will appear in the list below the prompt box. Copilot will work on the task and then add you as a reviewer when it has finished, triggering a notification.
76+
77+
:::image type="content" source="./media/coding-agent/migrate-input.png" lightbox="./media/coding-agent/migrate-input.png" alt-text="Screenshot of .NET migrate task input in Coding Agent":::
78+
79+
After the migration starts, you can monitor the progress:
80+
:::image type="content" source="./media/coding-agent/migrate-progress.png" lightbox="./media/coding-agent/migrate-progress.png" alt-text="Screenshot of .NET migrate progress in Coding Agent":::
81+
82+
Finally, you can review the migration summary for insights — ensuring your app is fully migrated and cloud-ready.
83+
:::image type="content" source="./media/coding-agent/migrate-completion.png" lightbox="./media/coding-agent/migrate-completion.png" alt-text="Screenshot of .NET migrate completion in Coding Agent":::
84+
85+
### Deploy your .NET Application to Azure
86+
After migrating your application, you can deploy it directly from Coding Agent by following prompt examples:
87+
```
88+
Deploy this application to Azure
89+
```
90+
91+
You can follow the same steps as migration for deployment — the overall process remains consistent.
92+
93+
## Provide Feedback
94+
If you have any feedback about GitHub Copilot agent, please let us know your [feedback](https://aka.ms/ghcp-appmod/feedback).
95+
96+
## Reference
97+
- [Using GitHub Copilot agent](https://docs.github.com/en/copilot/how-tos/use-copilot-agents).
198 KB
Loading
452 KB
Loading
53.3 KB
Loading
485 KB
Loading

0 commit comments

Comments
 (0)