As far as i know, there is no feasible option yet available to achieve this either via API or PS. I understand its work in progress within Microsoft down the line for PIM alerts.
I want to set up or fetch alert setting on PIM Azure AD roles using Command line or API or ARM template
My plan is to prevent users from self-elevating via PIM more than x number of times in an hour.
Ref - https://learn.microsoft.com/en-us/azure/active-directory/privileged-identity-management/pim-how-to-configure-security-alerts#roles-are-being-activated-too-frequently
Is there any way to configure these alerts via ARM templates, API or any Command Line?
Sign in to comment
Sort by: Most helpful
You can use the following module to connect and check some configurations for PIM. However, the task you can perform are very limited at this point.
Connect-PimService Disable-PrivilegedRoleAssignment Disconnect-PimService Enable-PrivilegedRoleAssignment Get-PrivilegedRoleAssignment Show-PimServiceConnection