Cant'get access token using Graph API using certificate from Powershell

Saúl Zenteno Martinez 1 Reputation point
2022-04-01T17:06:49.247+00:00

I'm trying to follow this article https://learn.microsoft.com/en-us/azure/active-directory/reports-monitoring/tutorial-access-api-with-certificates where we basically use a cert to access the Graph api using ´ Get-MSCloudIdMSGraphAccessTokenFromCert ´.

I've configured everything that the article ask for but when I reach the point to make the call to obtain the access token using
Get-MSCloudIdMSGraphAccessTokenFromCert -TenantDomain "mydomain.com" -ClientID 363917dc-e4ea-4ee4-9277-a58aa5095227 -Certificate (dir cert:\CurrentUser\My\CERTFOOTPRINT) I get the following error

   InvalidOperation: Unable to find type [AdalHelper].
Windows for business | Windows Server | User experience | PowerShell
{count} votes

Your answer

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