diff --git a/README.md b/README.md index 3788018..fc26161 100644 --- a/README.md +++ b/README.md @@ -276,12 +276,27 @@ $ az-pim-cli activate group --name my-entra-id-group --duration 5 $ az-pim-cli list roles == my-entra-id-role == - Owner + - Contributor # Activate the first matching role for the Entra role 'my-entra-id-role' -$ az-pim-cli activate role --name my-entra-id-role --duration 5 +$ az-pim-cli activate role --name "my-entra-id-role" --duration 30 2024/05/31 15:00:10 Activating role 'Owner' for Entra role 'my-entra-id-role' with reason 'config' (ticket: []) 2024/05/31 15:00:23 The role 'Owner' for Entra role 'my-entra-id-role' is now Active + +# Activate nominated role for the Entra role 'my-entra-id-role' +$ az-pim-cli activate role --name "my-entra-id-role" --role "Contributor" --duration 30 +2024/05/31 15:00:10 Activating role 'Contributor' for Entra role 'my-entra-id-role' with reason 'config' (ticket: []) +2024/05/31 15:00:23 The role 'Contributor' for Entra role 'my-entra-id-role' is now Active ``` +### Troubleshooting + +#### Error: The following policy rules failed: [\"ExpirationRule\"]" + +Make sure you set duration (e.g. --duration 30) when activate the group, resource or role. + +#### Error: The following policy rules failed: [\"TicketingRule\"]" + +Make sure you set ticket number (e.g. -T "ticket") when activate the group, resource or role. ### Configuration options