Are you running apps on Exchange Web Services (EWS)? With EWS support ending in October 2026, this is the perfect time to modernize. We’re excited to announce a new hands-on tutorial that helps you accelerate migrations from EWS to Microsoft Graph, using AI tools you already have access to. This tutorial teaches you skills that you can apply to working in any legacy code base.
Why this tutorial?
Migrating legacy code can feel daunting. This tutorial turns this challenge into an opportunity to upskill with the latest AI-powered tools and erase years of technical debt at the same time.
The tutorial walks you through the migration process using a real-world ASP.NET MVC mail app as a baseline and uses GitHub Copilot to accelerate every step: analyzing legacy code, generating documentation, adding tests, refactoring, and finally swapping out EWS for the Microsoft Graph API. You’ll discover how AI can help you understand unfamiliar code, automate repetitive tasks, and troubleshoot tricky migration issues.
The migration tutorial helps you learn how to:
- Analyze and document legacy EWS codebases using GitHub Copilot and the Ews.Code.Analyzer package.
- Generate code standards, requirements, and code comments with GitHub Copilot.
- Add instrumentation, observability, and AI-based analytics with .NET Aspire.
- Generate unit tests with xUnit and NSubstitute or your favorite framework.
- Refactor for modularity and testability with AI tools.
- Implement Microsoft Graph API in place of EWS.
- Perform a partial migration with feature toggles while you wait for parity gaps to be filled.
- Use Copilot to fix, troubleshoot, and optimize your migration.
- Clean up and remove EWS dependencies for good.
Make your migration meaningful
Migrations can feel overwhelming, but embracing AI tools like Copilot can transform a tedious upgrade into a growth opportunity. You’ll not only eliminate a looming security risk but also gain practical experience with AI-assisted development—setting yourself and your team up for future success.
Whether you’re a seasoned developer or just curious about how Copilot can help with real-world tasks, this tutorial is a practical resource, packed with tips for making the most of AI tools. Turn a maintenance headache into a hands-on exploration of today’s AI-powered development, and you’ll go from legacy to legendary.
Ready to get started?
Try out the tutorial and share your experiences or questions in the comments. Let’s learn together and make this transition a win for everyone!
Happy coding,
Thomas & the Exchange Programmability Team
0 comments
Be the first to start the discussion.