Connect- MsolService with Powershell Runbook and MFA

Hi.

I would like to run an script automatically via an Azure PowerShell Runbook which uses the MsolOnline (Connect-MsolService) cmdlet and authenticates using an account with MFA enabled. What's the best way to login with Connect-MsolService automatically on a script when the account being used has MFA?

Thanks

submitted by /u/smurfs85
[link] [comments]

Read more here: https://www.reddit.com/r/AZURE/comments/n4oyor/connect_msolservice_with_powershell_runbook_and/

Content Attribution

This content was originally published by /u/smurfs85 at Microsoft Azure, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: