migrating-adal-to-msal

Convert Azure AD authentication code from ADAL to MSAL.

19|2|Updated May 13, 2026
One-click install
npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill migrating-adal-to-msal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrating-adal-to-msal
Source: https://github.com/microsoft/upgrade-agent-plugins/tree/main/plugins/upgrade-agent/extenders/upgrade-dotnet/upgrade/skills/lazy/libraries/migrating-adal-to-msal
Command: npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill migrating-adal-to-msal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Microsoft.Authentication.Client, and includes scripts (resource) components.

What problem does it solve?

This Skill provides an automated migration solution from ADAL (Microsoft.IdentityModel.Clients.ActiveDirectory) to MSAL (Microsoft.Authentication.Client) for secure Azure AD authentication, eliminating manual and error-prone tasks.

Core Features & Use Cases

  • ADAL to MSAL Conversion: Migrate from ADAL to MSAL, leveraging built-in migration support for Azure AD.
  • Scalable Automation: Simplify and scale Azure AD authentication transitions in multi-client or complex projects.
  • Use Case: A developer transitioning to the latest Microsoft identity framework would use this skill to update their projects and libraries for the MSAL replacement of ADAL.

Quick Start

Use the migrating-adal-to-msal skill to convert Azure AD authentication in your application to use MSAL.

Frequently Asked Questions about migrating-adal-to-msal

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate Azure AD authentication from ADAL to MSAL?

To migrate Azure AD authentication from ADAL to MSAL, use this Skill to automate the conversion of legacy authentication code. It handles library updates, scope adjustments, and configuration for MSAL-based tokens to ensure secure single sign-on.

What is the best way to update Microsoft.IdentityModel.Clients.ActiveDirectory to MSAL?

The best way to update Microsoft.IdentityModel.Clients.ActiveDirectory to MSAL is using automated migration scripts. This Skill scales the transition across multi-client projects, eliminating manual code replacement and configuration errors.

Can I automate ADAL to MSAL migration for complex multi-client projects?

Yes, you can automate ADAL to MSAL migration for complex multi-client projects. This Skill provides scalable automation to simplify the Azure AD authentication transition across multiple clients and application configurations.

Does MSAL migration require adjusting scopes and token configurations for Azure AD?

Yes, MSAL migration requires adjusting scopes and token configurations for Azure AD. This automation handles scope adjustments and MSAL-based token setup to ensure correct configuration for modern Microsoft application development.

Why should I transition my client and server applications from ADAL to MSAL?

You should transition client and server applications from ADAL to MSAL to maintain secure Azure AD single sign-on. The migration leverages built-in MSAL support and eliminates error-prone manual tasks for modern identity framework development.

What are the limitations of automating ADAL replacement with MSAL?

The automation focuses on client and server applications using Microsoft.Authentication.Client. It handles ADAL replacement scenarios with library updates and scope adjustments, but complex custom authentication flows may require additional manual configuration.