Home

Get-RdsRoleAssignment "Parameter name: xxx is not valid"

%3CLINGO-SUB%20id%3D%22lingo-sub-1154872%22%20slang%3D%22en-US%22%3EGet-RdsRoleAssignment%20%22Parameter%20name%3A%20xxx%20is%20not%20valid%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1154872%22%20slang%3D%22en-US%22%3E%3CP%3EWhenever%20I%20try%20to%20run%20the%20cmdlet%26nbsp%3BGet-RdsRoleAssignment%20I%20get%20the%20following%20error%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EGet-RdsRoleAssignment%20%3A%20Specified%20argument%20was%20out%20of%20the%20range%20of%20valid%20values.%0AParameter%20name%3A%20Scope%20%2FDefault%20Tenant%20Group%2FX5%2FDesktop%20Application%20Group%20is%20not%20valid%0AAt%20line%3A1%20char%3A1%0A%2B%20Get-RdsRoleAssignment%0A%2B%20~~~~~~~~~~~~~~~~~~~~~%0A%20%20%20%20%2B%20CategoryInfo%20%20%20%20%20%20%20%20%20%20%3A%20NotSpecified%3A%20(%3A)%20%5BGet-RdsRoleAssignment%5D%2C%20ArgumentOutOfRangeException%0A%20%20%20%20%2B%20FullyQualifiedErrorId%20%3A%20System.ArgumentOutOfRangeException%2CMicrosoft.RDInfra.RDPowershell.Authorization.GetRdsR%20%20%20%20%20oleAssignment%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20logged%20in%20with%20our%20WVD%20admin%20account%20(%3CA%20href%3D%22mailto%3Awvdadmin%40domain.tld%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ewvdadmin%40domain.tld%3C%2FA%3E)%20which%20have%20the%20roles%20assigned%20as%20can%20be%20seen%20below%3A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Annotation%202020-02-06%20090833.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F169345i723276B25DF8743A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Annotation%202020-02-06%20090833.png%22%20alt%3D%22Annotation%202020-02-06%20090833.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20help%20me%20get%20past%20this%20issue%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1154872%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWVD%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Whenever I try to run the cmdlet Get-RdsRoleAssignment I get the following error:

Get-RdsRoleAssignment : Specified argument was out of the range of valid values.
Parameter name: Scope /Default Tenant Group/X5/Desktop Application Group is not valid
At line:1 char:1
+ Get-RdsRoleAssignment
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-RdsRoleAssignment], ArgumentOutOfRangeException
    + FullyQualifiedErrorId : System.ArgumentOutOfRangeException,Microsoft.RDInfra.RDPowershell.Authorization.GetRdsR     oleAssignment

 

I am logged in with our WVD admin account (wvdadmin@domain.tld) which have the roles assigned as can be seen below:Annotation 2020-02-06 090833.png

 

Can anyone help me get past this issue?