How to implement MSAL Authentication from ADAL Authentication in Azure PowerShell Script?

J S 20 Reputation points
2023-06-09T18:40:09.3866667+00:00

In my project we are using ADAL for authenticating the API's within Continuous Deployment (Release) pipelines in Azure DevOps using Azure PowerShell script as one of the steps within this release pipeline. Now we are trying to migrate from ADAL code to MSAL code within Azure PowerShell script, I couldn't find the correct code/solution on how to achieve this, any one who knows this kindly help me out.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,602 questions
Microsoft Entra
0 comments No comments
{count} votes

Accepted answer
  1. 2023-06-10T00:21:42.3933333+00:00

    Hello @J S , you can use MSAL from PowerShell trough MSAL.PS, a community driven project. Also, take a look to How to use MSAL.NET from PowerShell.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.