Powershell Enable PIM Role Assignment
We plan to utilize PIM for Azure Resources (Resource Groups), however it is currently not possible to automate thorugh Powershell. It would be nice if existing Roles could be made eligable and configurated with it's settings thorugh powershell when creating resources/resource groups through powershell.
stephen richardson commented
... and add the ability to use service principals to connect to pim.
Bjorn L commented
Agreed. If it can be done in a safe manner. We have a powershell script with a GUI to activate the roles. It works, but we also get an high alert that roles was activated outside Azure portal.
This should either be fixed or blocked.
I agree that this should be available. This may be useful as a workaround: