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
App Permission: TenantCreator
Still I am receiving error as
New-RdsTenant : User is not authorized to query the management service.ActivityId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxPowershell commands to diagnose the failure:Get-RdsDiagnosticActivities -ActivityId xxxxxxxxxxxxxxxxxxxxxxxxxxxAt 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
View best response
* 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.
@shintovincent I was missing this step to redeploy rdbroker url. Thanks for your support.