DCToolbox icon indicating copy to clipboard operation
DCToolbox copied to clipboard

Enable-DCAzureADPIMRole is running two times and throwing error

Open ollimenzel opened this issue 3 years ago • 0 comments

I'm running the latest version of your PS-Commands. When I run e.g., Enable-DCAzureADPIMRole -RolesToActivate 'Power Platform Administrator' -Reason 'Admin Tasks' I am getting ask two times for the duration. The second time I get an error saying the the Permission of course is already active: Open-AzureADMSPrivilegedRoleAssignmentRequest: Error occurred while executing OpenAzureADMSPrivilegedRoleAssignmentRequest Code: RoleAssignmentExists Message: The Role assignment already exists. Is this a bug? Or do I need to do something differently? It would be great btw. to have something like a -duration parameter in the future to assign PIM just for a certain amount of time.

ollimenzel avatar Aug 24 '22 09:08 ollimenzel