PowerShell - Connecting to Azure Active Directory using Microsoft Account -



PowerShell - Connecting to Azure Active Directory using Microsoft Account -

i have azure subscription subscription administrator business relationship microsoft account. added microsoft business relationship co-administrator. i'm told when add together co-administrator, gets added subscription's default advertisement guest user. want accomplish alter user type guest member. this, advised utilize azure advertisement powershell , struggling.

i've installed related ps modules (based on link: https://msdn.microsoft.com/en-us/library/azure/jj151815.aspx).

so here's doing:

first, command issuing:

$msolcred = get-credential

i prompted entering credentials provide , run next command:

connect-msolservice -credential $msolcred

when this, next error:

connect-msolservice : user name or password incorrect. verify user name, , type password again. @ line:1 char:1 + connect-msolservice -credential $cred -verbose + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : operationstopped: (:) [connect-msolservice], microsoftonlineexception + fullyqualifiederrorid : 0x80048821,microsoft.online.administration.automation.connectmsolservice

i tried putting username domainname.onmicrosoft.com\username still same result.

so questions are:

is possible connect azure advertisement via powershell using microsoft account? if possible, how should specify username? have tried both username domainname\username , got same error. if not possible, what's alternate solution? should create user in advertisement , set user in role has permission manage users (as want do)?

any insights regarding highly appreciated.

signing in aad powershell microsoft business relationship not supported. approach (make new user "native" directory) way go.

powershell azure azure-active-directory

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -