Hello everyone,
I'm struggling to get a connection going within an Azure runbook with Connect-MgGraph to allow me to run commands such as Get-MgUserAuthenticationPhoneMethod
Could anyone give me a tip to get started please?
I've already installed the Microsoft.Graph.Identity.Signins module in my automation account. I've tried using the following as per documentation but it does not work in the context of a runbook:
Connect-MgGraph -Scopes UserAuthenticationMethod.ReadWrite.All
Select-MgProfile -Name beta
https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-userdevicesettings


