Forum Discussion
New-RdsRoleAssignment : User is not authorized to query the management service
- Apr 08, 2019was my bad, I successfully executed this command to grant permission RDS Owner to "Windows Virtual Desktop Svc Principal" I have just used wrong TenantName
//Alexander
Add-RdsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"
New-RdsRoleAssignment -RoleDefinitionName "RDS Owner" -ApplicationId $svcPrincipal.AppId -TenantGroupName $myTenantGroupName -TenantName $myTenantName
So this fails for the service principal? What account did you use for the Add-RdsAccount prompt...
I used my Global Admin credential. And the same account when I am checking has RDS Owner role and also this account was used to create new wvd tenant.
//Alexander
- alexander tikhomirovApr 08, 2019Brass Contributorwas my bad, I successfully executed this command to grant permission RDS Owner to "Windows Virtual Desktop Svc Principal" I have just used wrong TenantName
//Alexander- mntsupportAug 18, 2020Copper Contributor
alexander tikhomirov Where did you find your tenant name? I've been looking for WAY too long and the Get-RdsTenant and Get-RdsContext commands won't work for me.
- John-MarcumJul 16, 2019MVP
alexander tikhomirov You are obviously trying to follow the same guide I am trying to follow. Did you use you Azure AD tenant name here: $myTenantName = "blahblahblah.onmicrosoft.com" or did you use what was defined in this command New-RdsTenant -Name blahblahblahblahblah????