I'm having trouble with the Connect-MgGraph interactive authentication in PowerShell Studio after updating the Microsoft.Graph modules. It seems that Connect-MgGraph now defaults to using Web Account Manager (WAM) on Windows. While the authentication window shows up just fine in Visual Studio Code, it's not appearing in PowerShell Studio. Has anyone else faced this problem, and if so, how did you resolve it? Thanks!
1 Answer
If you're having trouble with the interactive authentication in PowerShell Studio, you might want to try using the -UseDeviceCode option. It gives you a URL to copy into a browser for authentication instead of the UI window. Alternatively, consider setting up a service principal and authenticating with a certificate instead.

I'm not seeing the device code option in PowerShell Studio. It shows other code, but none related to that.