New-RdsTenant : User is not authorized to query the management service.

%3CLINGO-SUB%20id%3D%22lingo-sub-666398%22%20slang%3D%22en-US%22%3ENew-RdsTenant%20%3A%20User%20is%20not%20authorized%20to%20query%20the%20management%20service.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-666398%22%20slang%3D%22en-US%22%3EHallo%2C%20I%20become%20the%20erorr%20%22New-RdsTenant%20%3A%20User%20is%20not%20authorized%20to%20query%20the%20management%20service.%22%20Thanks%20for%20your%20help%20Stefan%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-671209%22%20slang%3D%22en-US%22%3ERe%3A%20New-RdsTenant%20%3A%20User%20is%20not%20authorized%20to%20query%20the%20management%20service.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-671209%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24406%22%20target%3D%22_blank%22%3E%40Stefan%20Kie%C3%9Fig%3C%2FA%3E%26nbsp%3BHave%20you%20assigned%20the%20user%20the%20Tenant%20Creator%20Role%20in%20Windows%20Virtual%20Desktop%20Application%20under%20Enterprise%20Applications%20in%20Azure%20Active%20Directory%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1286221%22%20slang%3D%22en-US%22%3ERe%3A%20New-RdsTenant%20%3A%20User%20is%20not%20authorized%20to%20query%20the%20management%20service.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1286221%22%20slang%3D%22en-US%22%3E%3CP%3EHey%2C%3C%2FP%3E%0A%3CP%3Efor%20this%20to%20work%20you%20have%20to%20make%20sure%20the%20current%20user%20is%20assigned%20as%20a%20TenantCreator%20in%20the%20%22Windows%20Virtual%20Desktop%22%20application%20(in%20'Users%20and%20groups'%20blade).%3C%2FP%3E%0A%3CP%3EAlso%2C%20once%20you%20did%20that%2C%20wait%20at%20least%204-5%20minutes%20before%20proceeding%20to%20log-in%20and%20try%20to%20create%20the%20tenant.%20If%20you%20do%20that%20before%2C%20invoke%20Add-RdsAccount%20again%2C%20to%20re-login.%3C%2FP%3E%0A%3CP%3EI%20hope%20that%20helps.%3C%2FP%3E%0A%3CP%3ESincerely%2C%3C%2FP%3E%0A%3CP%3EAlex%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Contributor
Hallo, I become the erorr "New-RdsTenant : User is not authorized to query the management service." Thanks for your help Stefan
2 Replies

@Stefan Kießig Have you assigned the user the Tenant Creator Role in Windows Virtual Desktop Application under Enterprise Applications in Azure Active Directory?

Hey,

for this to work you have to make sure the current user is assigned as a TenantCreator in the "Windows Virtual Desktop" application (in 'Users and groups' blade).

Also, once you did that, wait at least 4-5 minutes before proceeding to log-in and try to create the tenant. If you do that before, invoke Add-RdsAccount again, to re-login.

I hope that helps.

Sincerely,

Alex