Forum Discussion
Error facing in deployment of WVD deployment
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
* 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.
- shintovincentCopper Contributor
* 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.
- suraj005Copper Contributor
shintovincent I was missing this step to redeploy rdbroker url. Thanks for your support.