question

FilipNeshev-3047 avatar image
0 Votes"
FilipNeshev-3047 asked FilipNeshev-3047 edited

Error when enabling PIM role from powershell

Hello,

When I run Open-AzureADMSPrivilegedRoleAssignmentRequest to activate a Role that I am Eligible for, I get the following error :

Open-AzureADMSPrivilegedRoleAssignmentRequest : Error occurred while executing OpenAzureADMSPrivilegedRoleAssignmentRequest
Code: InvalidRoleAssignmentRequest
Message: The role assignment request is invalid.
InnerError:
RequestId: 15a8746c-e048-467a-a948-a124f3c49749

HttpStatusCode: BadRequest
HttpStatusDescription: Bad Request
HttpResponseStatus: Completed

  • Open-AzureADMSPrivilegedRoleAssignmentRequest -ProviderId 'aadRoles' ...

  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Open-AzureADMSP...signmentRequest], ApiException
    + FullyQualifiedErrorId : Microsoft.Open.MSGraphBeta.Client.ApiException,Microsoft.Open.MSGraphBeta.PowerShell.OpenAzureADMSPrivilegedRoleAssignmentRequest


Please note that I have no issues enabling this role from the web GUI

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers