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 Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,354 questions
{count} votes