简体   繁体   中英

How do i add Microsoft Accounts to my Azure AD using PowerShell?

I can add new users to my AD using Command:

New-MsolUser -UserPrincipalName $signInAddress -FirstName $firstName -LastName $lastName -DisplayName $displayname -Title $title

but it requires the UPN to be in my AD domain.

I see related questions about adding accounts from other Azure AD (and currently that is not supported).

Henrik, Azure AD PowerShell doesn't support adding Microsoft Accounts to the directory. It can only be done using the Azure Management portal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM