Forum Discussion

suraj005's avatar
suraj005
Copper Contributor
Mar 26, 2020

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

  • 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.

  • shintovincent's avatar
    shintovincent
    Copper Contributor

    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.

Resources