In Microsoft.Graph PowerShell SDK version 2.26.1, the Set-MgUserLicense cmdlet is broken. Even when following the documented syntax with -RemoveLicenses @(), the command fails with the error: ...
I don't know, if this is related to the ExchangeOnlineManagement module (my suspicison) or to Microsoft.Graph, but you should know; too, I guess: I updated Microsoft.Graph from 2.29.1. to 2.30.0 ...
Microsoft Corp will discontinue its Graph command-line interface tool next year, citing declining usage and overlap with existing developer tools as the company consolidates its software development ...