From b1e772ddf35449da99f1d55c0624bb02fbe63b72 Mon Sep 17 00:00:00 2001 From: Bill Wang Date: Wed, 23 Oct 2024 22:53:55 +1100 Subject: [PATCH 1/3] docs: improve README for #66 --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3788018..b70e987 100644 --- a/README.md +++ b/README.md @@ -276,11 +276,17 @@ $ 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 ``` ### Configuration options From 18f9ab0e809623d21e2799ab635fd9ef7f6a5ae5 Mon Sep 17 00:00:00 2001 From: Bill Wang Date: Wed, 23 Oct 2024 23:02:31 +1100 Subject: [PATCH 2/3] docs: improve README for #66 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b70e987..d193178 100644 --- a/README.md +++ b/README.md @@ -276,7 +276,7 @@ $ az-pim-cli activate group --name my-entra-id-group --duration 5 $ az-pim-cli list roles == my-entra-id-role == - Owner - - contributor + - 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 30 From 16b79c6915810d43878d4c4ab7a93f37d1a41e8d Mon Sep 17 00:00:00 2001 From: Bill Wang Date: Wed, 23 Oct 2024 23:13:24 +1100 Subject: [PATCH 3/3] docs: improve README for #66 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index d193178..fc26161 100644 --- a/README.md +++ b/README.md @@ -288,6 +288,15 @@ $ az-pim-cli activate role --name "my-entra-id-role" --role "Contributor" --dura 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