azsk / DevOpsKit-docs

MIT License
496 stars 208 forks source link

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

Open VanessaRussell opened 2 years ago

VanessaRussell commented 2 years ago

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?