Azure Active Directory/PowerShell in SMA
The basis for this question stems entirely around syncing Office 365 license information into Asset Management. Generally speaking, I have the script/runbook written but it won't execute unless I'm the one actually doing it. It probably goes without saying, but if this could be accomplished the reporting around this area becomes much richer by virtue of being in SCSM's CMDB.
Best Answer
-
John_Long Customer Advanced IT Monkey ✭✭✭For a follow-up to this, see @Adam_Dzyacky's post here ! https://community.cireson.com/discussion/comment/2918/#Comment_2918
6
Answers
I do remember MSOL cmdlets having a funky prereq of some sort.
Needless to say the "get-msoluser" line fails instantly since connect-msolservice doesn't work with the above error. And again - this works as expected on the $computerWithAzurePSComponents if I'm the one doing it by hand.