Hi Ryan,
Try deploying it to Azure Automation via the Microsoft Graph Authentication module page.
Cited from https://www.powershellgallery.com/packages/Microsoft.Graph.Authentication/2.10.0
If this is helpful please accept answer.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
Hi Ryan,
Try deploying it to Azure Automation via the Microsoft Graph Authentication module page.
Cited from https://www.powershellgallery.com/packages/Microsoft.Graph.Authentication/2.10.0
If this is helpful please accept answer.