FIX: New-MgIdentityGovernancePrivilegedAccess GroupEligibilityScheduleRequest Expirationrule

The following policy rules failed: [“ExpirationRule”] Status: 400 ErrorCode: RoleAssignmentRequestPolicyValidationFailed At work we have automation in place for deploying and updating Privileged Identity Management (PIM) configurations for a customer. I didn’t build the automation myself, someone else did that before I joined InSpark, but I’ve been maintaining parts of it ever since. The setup is … Continue reading FIX: New-MgIdentityGovernancePrivilegedAccess GroupEligibilityScheduleRequest Expirationrule

How to manage most Rest APIs with just a few PowerShell functions

A cmdlet around the endpoint, or a cmdlet per method? Disclaimer: every REST API works different, so this script should be an example of how you can build a function for each REST API. Nowadays there are more and more Rest APIs that we can use instead of Cmdlets (which use the Rest API in … Continue reading How to manage most Rest APIs with just a few PowerShell functions