Forum Discussion
How to connect MSOL in powershell using App Password?
App passwords are NOT supported, simply use Connect-MsolService without any parameter to trigger the ADAL dialog and complete the 2FA challenge as normal.
- VasilMichevJul 30, 2019MVP
We have bypass/exclusions that we can use for that, and almost anything you can do with the MSOL module is already possible via the Graph anyway.
- Helios CommsJul 31, 2019Iron Contributor
VasilMichev ahh yes, only recently started looking at Graph. To be honest, Graph is a bit of a sideways step or maybe slightly backwards compared to PowerShell cmdlets. I assume there is a strong case for using HTTP calls instead of cmdlets? It's almost as if cmdlets have fallen out of favour which is weird considering how much effort has gone into them. At least with Graph, permissions are under control.
- VasilMichevJul 31, 2019MVP
REST is supposedly more robust, they are actually working on redoing all the other PowerShell modules in such manner (Azure AD PowerShell is already a "wrapper" for Graph calls). But yeah, the Graph sucks when it comes to searching/filtering data, and definitely lacks the "friendliness" of PowerShell. It's a tool for devs mostly...