SOLVED
Home

PowerShell New-RdsTenant Error

%3CLINGO-SUB%20id%3D%22lingo-sub-382693%22%20slang%3D%22en-US%22%3EPowerShell%20New-RdsTenant%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-382693%22%20slang%3D%22en-US%22%3E%3CP%3EI%20get%20the%20following%20error%20when%20running%20the%20New-RdsTenant%20command.%26nbsp%3B%20Any%20thoughts%20on%20where%20to%20start%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENew-RdsTenant%20%3A%20User%20is%20not%20authorized%20to%20query%20the%20management%20service.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20guide%20I've%20been%20following%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Ftenant-setup-azure-active-directory%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Ftenant-setup-azure-active-directory%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20gone%20through%20the%20%22Grant%20Azure%20Active%20Directory%20permissions%20to%20the%20Windows%20Virtual%20Desktop%20service%22%20multiple%20times%20just%20to%20make%20sure%20I%20didn't%20miss%20something.%26nbsp%3B%20Also%2C%20when%20I%20look%20at%20the%20Windows%20Virtual%20Desktop%20enterprise%20application%20permissions%20in%20Azure%20AD%20it%20seems%20like%20it%20has%20the%20assigned%20permissions%20to%20graph%20and%20Azure%20AD.%26nbsp%3B%20Is%20this%20error%20related%20to%20something%20else%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20attached%20the%20permissions%20screenshot%20just%20in%20case%20it%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-382809%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20PowerShell%20New-RdsTenant%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-382809%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%3BYep%2C%20that%20did%20the%20trick.%26nbsp%3B%20Thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-382796%22%20slang%3D%22en-US%22%3ERE%3A%20PowerShell%20New-RdsTenant%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-382796%22%20slang%3D%22en-US%22%3EHow%20much%20time%20did%20past%20between%20the%20consent%20and%20tenant%20creation%3F%20Sometimes%20it%20might%20take%20up%20to%20an%20hour.%20Please%20try%20again.%3C%2FLINGO-BODY%3E
Christopher Anderson
Occasional Contributor

I get the following error when running the New-RdsTenant command.  Any thoughts on where to start?

 

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

 

Here is the guide I've been following:

https://docs.microsoft.com/en-us/azure/virtual-desktop/tenant-setup-azure-active-directory

 

I've gone through the "Grant Azure Active Directory permissions to the Windows Virtual Desktop service" multiple times just to make sure I didn't miss something.  Also, when I look at the Windows Virtual Desktop enterprise application permissions in Azure AD it seems like it has the assigned permissions to graph and Azure AD.  Is this error related to something else?

 

I attached the permissions screenshot just in case it helps.

 

 

2 Replies
Solution
How much time did past between the consent and tenant creation? Sometimes it might take up to an hour. Please try again.

@Eva Seydl Yep, that did the trick.  Thanks!

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies