SOLVED

Login to Manage WVD via Powershell not working

%3CLINGO-SUB%20id%3D%22lingo-sub-1499571%22%20slang%3D%22en-US%22%3ELogin%20to%20Manage%20WVD%20via%20Powershell%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1499571%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20try%20this%20command%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAdd-RdsAccount%3C%2FSPAN%3E%3CSPAN%3E%20-DeploymentUrl%20%3C%2FSPAN%3E%3CSPAN%3E%22%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Frdbroker.wvd.microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2Frdbroker.wvd.microsoft.com%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Eand%20login%20with%20my%20gmail%20credential%20which%20is%20owner%20of%20my%20Azure%20subscription%2C%20I%20get%20the%20message%3A%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3EAADSTS50020%3A%26nbsp%3B%20User%20account%20%3CA%20href%3D%22mailto%3AXXXXXX%40gmail.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EXXXXXX%40gmail.com%3C%2FA%3E%26nbsp%3Bfrom%20identity%20provider%20live.com%20does%20not%20exist%20in%20tenant%20MS%20Azure%20Cloud%20and%20cannot%20access%20the%20application%20Windows%20Virtual%20Desktop%20Client%20in%20that%20tenant.%26nbsp%3B%20The%20account%20needs%20to%20be%20added%20as%20an%20external%20user%20in%20the%20tenant%20first.%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20someone%20point%20me%20in%20the%20right%20direction%3F%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1499571%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWVD%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1507032%22%20slang%3D%22en-US%22%3ERe%3A%20Login%20to%20Manage%20WVD%20via%20Powershell%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1507032%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F670751%22%20target%3D%22_blank%22%3E%40bettynumb1%3C%2FA%3E%26nbsp%3B%3A%20You%20need%20to%20use%20Azure%20AD%20credentials.%20See%20the%20article%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsvirtualdesktop%2FAdd-RdsAccount%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsvirtualdesktop%2FAdd-RdsAccount%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1512551%22%20slang%3D%22en-US%22%3ERe%3A%20Login%20to%20Manage%20WVD%20via%20Powershell%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512551%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F139744%22%20target%3D%22_blank%22%3E%40Eva%20Seydl%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%26nbsp%3B%20%26nbsp%3BI%20was%20confused%20by%20the%20fact%20that%20my%20global%20admin%20account%20in%20Azure%20AD%20wouldn't%20work.%26nbsp%3B%20It's%20a%26nbsp%3B%40gmail.com%20account%20and%20I%20realized%20it%20was%20listed%20as%20a%20Microsoft%20Account.%26nbsp%3B%20Once%20I%20created%26nbsp%3B%20a%20new%20Azure%20AD%20Global%20Admin%20all%20was%20well.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

When I try this command:

 

Add-RdsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"

 

and login with my gmail credential which is owner of my Azure subscription, I get the message:

 

AADSTS50020:  User account XXXXXX@gmail.com from identity provider live.com does not exist in tenant MS Azure Cloud and cannot access the application Windows Virtual Desktop Client in that tenant.  The account needs to be added as an external user in the tenant first.   

 

Can someone point me in the right direction?

Thanks.

 

2 Replies
Highlighted
Best Response confirmed by Eva Seydl (Microsoft)
Highlighted

@Eva Seydl 

 

Thank you.   I was confused by the fact that my global admin account in Azure AD wouldn't work.  It's a @gmail.com account and I realized it was listed as a Microsoft Account.  Once I created  a new Azure AD Global Admin all was well.