MgGraph is not recognized as a name of a cmdlet, function, script file, or executable program

Ryan Close 20 Reputation points
2023-12-05T20:52:37.6566667+00:00

I have an "Automation Account" in Azure that has a Runbook that will not connect to "MgGraph" The first error in the ""All Logs" 'Connect-MgGraph: Line | 2 | Connect-MgGraph -Identity | ~~~~~~~~~~~~~~~ | The term 'Connect-MgGraph' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.'

Microsoft.Graph.Authentication is loaded in the Automation Account "Modules" version 10.2

Import-Module Microsoft.Graph.Authentication is present in the script

Then -- Connect-MgGraph -Identity

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,194 questions
{count} votes

0 additional answers

Sort by: Most helpful