Blog Post

Apps on Azure Blog
3 MIN READ

Public Preview: GitHub Copilot App Modernization for Java

Sean_Li's avatar
Sean_Li
Icon for Microsoft rankMicrosoft
May 20, 2025

Modernizing Java applications and migrating to the cloud is typically a complex, labor-intensive, and fragmented process. GitHub Copilot App Modernization for Java is a powerful solution designed to simplify and accelerate your journey to the cloud. App Modernization and upgrade for Java offers an intelligent, guided approach that automates Java version upgrade and repetitive tasks and improves consistency — saving time, reducing risks, and accelerating time-to-cloud.

GitHub Copilot App Modernization and upgrade for Java is in public preview and offered in a single extension pack, available in the VS Code marketplace. https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-app-mod-pack

 

The GitHub Copilot App Modernization for Java provides six distinct value pillars, each specifically tailored to address particular challenges encountered during the Java application modernization process.

1.Intelligent Issue Analysis & Recommendations

Modernization starts with insight. Whether you’re upgrading Java runtime or migrating to Azure, modernization starts with understanding your code.

GitHub Copilot App Modernization for Java analyzes your project’s current state and generates a modernization plan, offering context-aware fixes and actionable recommendations from Azure Migrate Application Code Assessment Tool (AppCAT), so you spend less time diagnosing and more time modernizing.

AppCAT is also available as a stand-alone CLI tool that you can run independently from the App Modernization for Java VS Code extension. See AppCAT for Java to learn more.

2. Expert-Led Code Transformation

Once plan is generated, GitHub Copilot App Modernization for Java is a powerful code transformation engine that combines expert-led migration strategies and automated Java upgrade. Whether you're moving from Java 8 to Java 21 or replatforming for Azure services, Copilot applies structured changes with precision.

For  modernization scenarios, GitHub Copilot App Modernization for Java offers predefined AI-powered formulas that encode proven migration strategies, applying expert knowledge to common Java-to-Azure scenarios with high accuracy. Currently, app modernization for Java offers predefined formulas that cover common migration scenarios including secret management, message queue integration, Identity and more. See predefined formulas for complete list of formulas available.

For Java upgrades, GitHub Copilot App Modernization for Java uses tools like OpenRewrite to perform refactoring, including API replacements and dependency updates, while GitHub Copilot addresses any remaining issues.

3. Automation Through Learning

Beyond predefined formulas or strategies, developers can capture migration logic into reusable formulas, by converting Git commits into reusable migration patterns, or custom formulas, allowing Copilot to apply learned remediations across multiple codebases with consistency and precision.

Custom formulas can be created from one or more commits, provided they accurately reflect the intended coding behaviors. The example below combines previous code changes from local file to Azure Blob and RabbitMQ to Azure Service Bus into one powerful, all-encompassing formula, and executes it against my current project.

Whether you're applying a fix in the Java upgrade or ensuring Azure migration consistency across teams, GitHub Copilot uses these learned patterns to accelerate transformation with precision and repeatability.

4. Build Issue Resolution

Modernization isn't complete until your application successfully builds. GitHub Copilot App Modernization for Java helps resolve issues automatically and performs test validations, ensuring error-free transformations and keeping your production pipelines running smoothly.

5. Automatic patching for CVEs

The GitHub Copilot App Modernization for Java scans for CVE vulnerabilities after the upgrade process is completed. When CVE issues are detected, the tool automatically fixes the issues within the Agent Mode, allowing the user to review the fixes. This improves the application's security posture and ensures compliance with organizational guidelines.

6. Automated Deployment to Azure

When you’re ready, GitHub Copilot for Azure helps facilitate automated deployment to Azure, completing the app modernization process. When the Copilot agent is requested to deploy your application, it creates the required Infrastructure as Code files, deploys the application, addresses any deployment errors encountered, and sets up CI/CD pipelines. GitHub Copilot for Azure is a separate extension today and efforts are underway to integrate it with GitHub Copilot App Modernization for Java.

What our customers are saying

 

Get Started Today                                                                                                                           

Modernize your first app :https://aka.ms/AM4JGetStarted
Upgrade your first app: https://aka.ms/ghcp-appmod/java-upgrade-docs
Deploy your app to Azure: https://aka.ms/copilot-agent-deploy
Self-paced workshop: https://aka.ms/AM4JWorkshop
Provide feedback: https://aka.ms/AM4JFeedback

Updated May 22, 2025
Version 4.0
No CommentsBe the first to comment