Skip to content

Commit 5542e90

Browse files
Merge pull request #230955 from shlipsey3/recommendations-adal-to-msal-031523
recommendations-adal-to-msal-031523
2 parents 52ebe66 + 9fc4c4d commit 5542e90

File tree

2 files changed

+113
-0
lines changed

2 files changed

+113
-0
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
title: Azure Active Directory recommendation - Migrate from ADAL to MSAL | Microsoft Docs
3+
description: Learn why you should migrate from the Azure Active Directory Library to the Microsoft Authentication Libraries.
4+
services: active-directory
5+
author: shlipsey3
6+
manager: amycolannino
7+
ms.service: active-directory
8+
ms.topic: reference
9+
ms.workload: identity
10+
ms.subservice: report-monitor
11+
ms.date: 05/26/2023
12+
ms.author: sarahlipsey
13+
ms.reviewer: jamesmantu
14+
15+
ms.collection: M365-identity-device-management
16+
---
17+
18+
# Azure AD recommendation: Migrate from the Azure Active Directory Library to the Microsoft Authentication Libraries
19+
20+
[Azure AD recommendations](overview-recommendations.md) is a feature that provides you with personalized insights and actionable guidance to align your tenant with recommended best practices.
21+
22+
This article covers the recommendation to migrate from the Azure Active Directory Library to the Microsoft Authentication Libraries. This recommendation is called `AdalToMsalMigration` in the recommendations API in Microsoft Graph.
23+
24+
## Description
25+
26+
The Azure Active Directory Authentication Library (ADAL) is [currently slated for end-of-support](../fundamentals/whats-new.md#adal-end-of-support-announcement) on June 30, 2023. We recommend that customers migrate to Microsoft Authentication Libraries (MSAL), which replaces ADAL.
27+
28+
This recommendation shows up if your tenant has applications that still use ADAL.
29+
30+
## Value
31+
32+
MSAL is designed to enable a secure solution without developers having to worry about the implementation details. MSAL simplifies how tokens are acquired, managed, cached, and refreshed. MSAL also uses best practices for resilience. For more information on migrating to MSAL, see [Migrate applications to MSAL](../develop/msal-migration.md).
33+
34+
Existing apps that use ADAL will continue to work after the end-of-support date.
35+
36+
## Action plan
37+
38+
The first step to migrating your apps from ADAL to MSAL is to identify all applications in your tenant that are currently using ADAL. You can identify your apps in the Azure portal or programmatically.
39+
40+
### Identify your apps in the Azure portal
41+
42+
There are four steps to identifying and updating your apps in the Azure portal. The following steps are covered in detail in the [List all apps using ADAL](../develop/howto-get-list-of-all-active-directory-auth-library-apps.md) article.
43+
44+
1. Send Azure AD sign-in event to Azure Monitor.
45+
1. [Access the sign-ins workbook in Azure AD.](../develop/howto-get-list-of-all-active-directory-auth-library-apps.md)
46+
1. Identify the apps that use ADAL.
47+
1. Update your code.
48+
- The steps to update your code vary depending on the type of application.
49+
- For example, the steps for .NET and Python applications have separate instructions.
50+
- For a full list of instructions for each scenario, see [How to migrate to MSAL](../develop/msal-migration.md#how-to-migrate-to-msal).
51+
52+
### Identify your apps with the Microsoft Graph API
53+
54+
You can use Microsoft Graph to identify apps that need to be migrated to MSAL. To get started, see [How to use Microsoft Graph with Azure AD recommendations](howto-use-recommendations.md#how-to-use-microsoft-graph-with-azure-active-directory-recommendations).
55+
56+
Run the following query in Microsoft Graph, replacing the `<TENANT_ID>` placeholder with your tenant ID. This query returns a list of the impacted resources in your tenant.
57+
58+
```http
59+
https://graph.microsoft.com/beta/directory/recommendations/<TENANT_ID>_Microsoft.Identity.IAM.Insights.AdalToMsalMigration/impactedResources
60+
```
61+
62+
The following response provides the details of the impacted resources using ADAL:
63+
64+
```json
65+
{
66+
"id": "<APPLICATION_ID>",
67+
"subjectId": "<APPLICATION_ID>",
68+
"recommendationId": "TENANT_ID_Microsoft.Identity.IAM.Insights.AdalToMsalMigration",
69+
"resourceType": "app",
70+
"addedDateTime": "2023-03-29T09:29:01.1708723Z",
71+
"postponeUntilDateTime": null,
72+
"lastModifiedDateTime": "0001-01-01T00:00:00Z",
73+
"lastModifiedBy": "System",
74+
"displayName": "sample-adal-app",
75+
"owner": null,
76+
"rank": 1,
77+
"portalUrl": "
78+
df.onecloud.azure-test.net/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Branding/appId/{0}"
79+
"apiUrl": null,
80+
"status": "completedBySystem",
81+
"additionalDetails": [
82+
{
83+
"key": "Library",
84+
"value": "ADAL.Net"
85+
}
86+
]
87+
}
88+
```
89+
90+
### Identify your apps with Microsoft Graph PowerShell SDK
91+
92+
You can run the following set of commands in Windows PowerShell. These commands use the [Microsoft Graph PowerShell SDK](/graph/powershell/installation) to get a list of all applications in your tenant that use ADAL.
93+
94+
1. Open Windows PowerShell as an administrator.
95+
96+
1. Connect to Microsoft Graph:
97+
- `Connect-MgGraph-Tenant <YOUR_TENANT_ID>`
98+
99+
1. Select your profile:
100+
- `Select-MgProfile beta`
101+
102+
1. Get a list of your recommendations:
103+
- `Get-MgDirectoryRecommendation | Format-List`
104+
105+
1. Update the code for your apps using the instructions in [How to migrate to MSAL](../develop/msal-migration.md#how-to-migrate-to-msal).
106+
107+
## Next steps
108+
109+
- [Review the Azure AD recommendations overview](overview-recommendations.md)
110+
- [Learn how to use Azure AD recommendations](howto-use-recommendations.md)
111+
- [Explore the Microsoft Graph API properties for recommendations](/graph/api/resources/recommendation)

articles/active-directory/reports-monitoring/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ items:
147147
- name: Recommendation details
148148
expanded: true
149149
items:
150+
- name: Migrate ADAL to MSAL
151+
href: recommendation-migrate-from-adal-to-msal.md
150152
- name: Migrate apps from AD FS to Azure AD
151153
href: recommendation-migrate-apps-from-adfs-to-azure-ad.md
152154
- name: Migrate to Microsoft authenticator

0 commit comments

Comments
 (0)