Command line tool to list and activate Azure PIM Role Assignments.
git clone https://github.com/j-sokol/az-pim-cli-v2
cd az-pim-cli
go build -o az-pim-cli cmd/main.go
mv ./az-pim-cli /usr/local/bin
This application accepts the following command-line parameters:
-l
: List available role assignments
az-pim-cli -l
-a
: Activate role-r
: Role to activate-s
: Scope of activation (i.e. Subscription / Resource)
Here's an example of how to use this application:
az-pim-cli -a -r 'key vault administrator' -s 'subscribtion_name'