wiki:connect_to_microsoft_azuread_via_powershell
Table of Contents
Connect to Microsoft Azure AD via powershell
This is for multifactor authentication.
1. Open Powershell as Admin.
2. Install module:
Install-Module MSOnline
3. Connect and check if it is successful
Connect-MsolService
Get-MsolUser
You should get a list of users and their emails.
4. Install the correct module. Usually this is
Install-module AzureAD
However preview is requried for example this setup.
Install-module AzureADPreview
5. Connect to Azure:
Connect-AzureAD
This should open a window to login.
Tested on
- Windows 10 64-bit
- Powershell 5.1.18362.628
See also
References
wiki/connect_to_microsoft_azuread_via_powershell.txt · Last modified: 2021/04/21 13:39 by antisa