Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What command(s) do I run in the place of Set-AzSKPIMConfiguration in order to activate my PIM roles via script? #212

Closed
VanessaRussell opened this issue Apr 15, 2022 · 2 comments

Comments

@VanessaRussell
Copy link

Cross posting here as AzTS has been stated as the AzSK replacement; however, I'm still struggling to figure out which command(s) I should switch to.

I have been using

Set-AzSKPIMConfiguration -ResourceGroupName $ResourceGroupName -RoleName $RoleName -DurationInHours $Duration -Justification $Reason -SubscriptionId $subscriptionId -ActivateMyRole -ErrorAction Stop

to activate my PIM roles via script as it has always been quicker than via the portal.

Now that I've discovered that AzSK was sunset last year, I am trying to figure out what module/command I need to migrate to. Unfortunately, there doesn't seem to be much in the way of migration documentation.

Can anyone point me in the right direction of what command(s) I should be using now in order to accomplish this task?

@TarunKrShukla
Copy link
Contributor

Hi Vanessa,

AzTS is the replacement of AzSK for core security scanning capabilities but there are some features (like PIM helper commands, ARM Checker) which are not migrated to AzTS. AzSK was sunset last year and not actively maintained now but all PIM helper commands are working and you can still use those for PIM role activation.

There are some other modules released by PG team which you can explore as well:

1. AzureADPreview
This module is still in preview but contains commands like Open-AzureADMSPrivilegedRoleAssignmentRequest which can help for PIM role activation.
You can find more about this module here.

2. Az.Resources
In the latest version 6.0.0, team has introduced few funtions like New-AzRoleAssignmentScheduleRequest which can help for PIM role activation.
You can find more details about this module here.

@Aboli-msft
Copy link
Contributor

Hi Vanessa, closing this thread as there had not been any further communication. Please feel free to reach out us at [email protected] in case of any further queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants