SOLVED

Error facing in deployment of WVD deployment

%3CLINGO-SUB%20id%3D%22lingo-sub-1256818%22%20slang%3D%22en-US%22%3EError%20facing%20in%20deployment%20of%20WVD%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1256818%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20create%20a%20WVD%20Teanant%20using%20command%26nbsp%3B%3C%2FP%3E%3CP%3ENew-RdsTenant%20-Name%20startreck%20-AadTenantId%20xxxxxxxxxxxx%20-AzureSubscriptionId%20xxxxxxxxx%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPermissions%20I%20am%20having%3C%2FP%3E%3CP%3EAAD%20Tenant%3A%20Global%20Admin%3C%2FP%3E%3CP%3ESubscription%3A%20Owner%3C%2FP%3E%3CP%3EApp%20Permission%3A%20TenantCreator%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStill%20I%20am%20receiving%20error%20as%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENew-RdsTenant%20%3A%20User%20is%20not%20authorized%20to%20query%20the%20management%20service.%3CBR%20%2F%3EActivityId%3A%20xxxxxxxxxxxxxxxxxxxxxxxxxxxxx%3CBR%20%2F%3EPowershell%20commands%20to%20diagnose%20the%20failure%3A%3CBR%20%2F%3EGet-RdsDiagnosticActivities%20-ActivityId%20xxxxxxxxxxxxxxxxxxxxxxxxxxx%3CBR%20%2F%3EAt%20line%3A3%20char%3A1%3CBR%20%2F%3E%2B%20New-RdsTenant%20-Name%20startreck%20-AadTenantId%20xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20FromStdErr%3A%20(Microsoft.RDInf...nt.NewRdsTenant%3ANewRdsTenant)%20%5BNew-RdsTenant%5D%2C%20RdsPowerShellException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20UnauthorizedAccess%2CMicrosoft.RDInfra.RDPowershell.Tenant.NewRdsTenant%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20suggest%20me%20what%20might%20be%20the%20possibilities%20for%20this%20error%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1257583%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20facing%20in%20deployment%20of%20WVD%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1257583%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F596933%22%20target%3D%22_blank%22%3E%40suraj005%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20Make%20sure%20you%20are%20logged%20in%20as%20the%20right%20user%20while%20executing%20the%20command%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EAdd-RdsAccount%20-DeploymentUrl%20%22https%3A%2F%2Frdbroker.wvd.microsoft.com%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E*%20Under%20Enterprise%20Applications%20assign%20the%20role%20again%20by%20editing%20the%20user.%20This%20happened%20to%20me%20a%20couple%20times%20and%20assigning%20the%20TenantCreator%20role%20to%20the%20same%20user%20again%20solved%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1261375%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20facing%20in%20deployment%20of%20WVD%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1261375%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F597284%22%20target%3D%22_blank%22%3E%40shintovincent%3C%2FA%3E%26nbsp%3B%20I%20was%20missing%20this%20step%20to%20redeploy%20rdbroker%20url.%20Thanks%20for%20your%20support.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi Team,

I am trying to create a WVD Teanant using command 

New-RdsTenant -Name startreck -AadTenantId xxxxxxxxxxxx -AzureSubscriptionId xxxxxxxxx

 

Permissions I am having

AAD Tenant: Global Admin

Subscription: Owner

App Permission: TenantCreator

 

Still I am receiving error as 

 

New-RdsTenant : User is not authorized to query the management service.
ActivityId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Powershell commands to diagnose the failure:
Get-RdsDiagnosticActivities -ActivityId xxxxxxxxxxxxxxxxxxxxxxxxxxx
At line:3 char:1
+ New-RdsTenant -Name startreck -AadTenantId xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : FromStdErr: (Microsoft.RDInf...nt.NewRdsTenant:NewRdsTenant) [New-RdsTenant], RdsPowerShellException
+ FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.RDInfra.RDPowershell.Tenant.NewRdsTenant

 

Please suggest me what might be the possibilities for this error

2 Replies
Highlighted
Best Response confirmed by suraj005 (New Contributor)
Solution

@suraj005 

* Make sure you are logged in as the right user while executing the command

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

* Under Enterprise Applications assign the role again by editing the user. This happened to me a couple times and assigning the TenantCreator role to the same user again solved it.

Highlighted

@shintovincent  I was missing this step to redeploy rdbroker url. Thanks for your support.