This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
GitHub Copilot app modernization is a GitHub Copilot agent that helps upgrade projects to newer versions of .NET and migrate .NET applications to Azure quickly and confidently by guiding you through assessment, solution recommendations, code fixes, and validation - all within Visual Studio.
This process streamlines modernization and boosts developer productivity and confidence. GitHub Copilot app modernization is an all-in-one upgrade and migration agent that uses AI to improve developer velocity, quality, and results.
With this agent, you can:
Feedback is important to Microsoft and the efficiency of this agent. Use theSuggest a feature andReport a problem features of Visual Studio to provide feedback.
The following items are required before you can use GitHub Copilot app modernization:
Windows Operating System
Visual Studio 2026 (or Visual Studio 2022 version 17.14.17 or newer).
.NET desktop development workload with the following optional components enabled:
Copilot license and supported subscription plan:
Sign in to Visual Studio using a GitHub account withCopilot access.
Supported subscription plans:
Important
If you change subscriptions, you must restart Visual Studio.
Code must be written in C#.
To start an upgrade or migration, interact with GitHub Copilot, following these steps:
Open your .NET project or solution in Visual Studio.
Access the GitHub Copilot app modernization agent using one of these methods:
Right-click on the solution or project inSolution Explorer and selectModernize.
—or—
Open theGitHub Copilot Chat window and type@modernize followed by your upgrade or migration request.
Tell the@modernize agent what you want to upgrade or migrate.
The modernization agent supports upgrading projects coded in C#. The following types of projects are supported:
To learn how to start an upgrade, seeHow to upgrade a .NET app with GitHub Copilot app modernization.
The following upgrade paths are supported:
The modernization agent combines automated analysis, AI-driven code remediation, build and vulnerability checks, and deployment automation to simplify migrations to Azure. The following capabilities describe how the agent assesses readiness, applies fixes, and streamlines the migration process:
Analysis & Intelligent Recommendations.
Assess your application's readiness for Azure migration and receive tailored guidance based on its dependencies and identified issues.
AI-Powered Code Remediation.
Apply predefined best-practice code patterns to accelerate modernization with minimal manual effort.
Automatic Build and CVE Resolution.
Automatically builds your app and resolves compilation errors and vulnerabilities, streamlining development.
Seamless Deployment.
Deploy to Azure effortlessly, taking your code from development to cloud faster than ever.
Predefined tasks capture industry best practices for using Azure services. Currently, GitHub Copilot app modernization for .NET offers predefined tasks that cover common migration scenarios.
Migrate to Managed Identity based Database on Azure, including Azure SQL DB, Azure SQL MI, and Azure PostgreSQL
Modernize your data layer by migrating from on-premises or legacy databases (such as DB2, Oracle DB, or SQL Server) to Azure SQL DB, Azure SQL Managed Instance, or Azure PostgreSQL, using secure managed identity authentication.
Migrate to Azure File Storage
Move file I/O operations from the local file system to Azure File Storage for scalable, cloud-based file management.
Migrate to Azure Blob Storage
Replace on-premises or cross-cloud object storage, or local file system file I/O, with Azure Blob Storage for unstructured data.
Migrate to Microsoft Entra ID
Transition authentication and authorization from Windows Active Directory to Microsoft Entra ID (formerly Azure AD) for modern identity management.
Migrate to secured credentials with Managed Identity and Azure Key Vault
Replace plaintext credentials in configuration or code with secure, managed identities and Azure Key Vault for secrets management.
Migrate to Azure Service Bus
Move from legacy or third-party message queues (such as MSMQ or RabbitMQ) or Amazon SQS (AWS Simple Queue Service) to Azure Service Bus for reliable, cloud-based messaging.
Migrate to Azure Communication Service email
Replace direct SMTP email sending with Azure Communication Service for scalable, secure email delivery.
Migrate to Confluent Cloud/Azure Event Hub for Apache Kafka
Transition from local or on-premises Kafka to managed event streaming with Confluent Cloud or Azure Event Hubs.
Migrate to OpenTelemetry on Azure
Transition from local logging frameworks like log4net, serilog, and Windows event log to OpenTelemetry on Azure.
Migrate to Azure Cache for Redis with Managed IdentityReplace in-memory or local Redis cache implementations with Azure Cache for Redis for high availability, scalability, and enterprise-grade security.
Once you request the modernization agent to upgrade or migrate your app, Copilot analyzes your projects and their dependencies, and then asks you a series of questions about the upgrade or migration. After you answer these questions, a plan is written in the form of a Markdown file. If you tell Copilot to proceed with the upgrade or migration, it follows the steps described in the plan.
You can adjust the plan by editing the Markdown file to change the upgrade steps or add more context.
Once a plan is ready, tell Copilot to start using it. Once the process starts, Copilot lets you know what it's doing in the chat window and it opens theUpgrade Progress Details document, which lists the status of every step.
If it runs into a problem, Copilot tries to identify the cause of a problem and apply a fix. If Copilot can't seem to correct the problem, it asks for your help. When you intervene, Copilot learns from the changes you make and tries to automatically apply them for you, if the problem is encountered again.
Each major step in the plan is committed to the local Git repository.
When the process completes, a report is generated that describes every step taken by Copilot. The tool creates a Git commit for every portion of the process, so you can easily roll back the changes or get detailed information about what changed. The report contains the Git commit hashes.
The report also provides aNext steps section that describes the steps you should take after the upgrade finishes.
The tool only collects data about project types, intent to upgrade, and upgrade duration. The data is collected and aggregated through Visual Studio itself and doesn't contain any user-identifiable information. For more information about Microsoft's privacy policy, seeVisual Studio Customer Experience Improvement Program.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?