JAz.PIM icon indicating copy to clipboard operation
JAz.PIM copied to clipboard

Add -Wait parameter for optionally waiting for role activation to complete

Open janegilring opened this issue 3 years ago • 5 comments

Would it make sense to add a -Wait parameter to the Enable-*Role commands in order for the commands to check for the status going from PendingProvisioning to Provisioned (similar to the portal experience)?

janegilring avatar May 18 '22 16:05 janegilring

It's on the to-do list, I already have the scaffolding for it.

JustinGrote avatar May 18 '22 16:05 JustinGrote

@janegilring added it for Azure AD in v0.0.8, give it a spin. Azure Resource roles will be a bit more complicated... https://github.com/JustinGrote/JAz.PIM/pull/9

JustinGrote avatar May 18 '22 23:05 JustinGrote

Very nice, it worked fine. Activation took 71 seconds in my test.

janegilring avatar May 19 '22 04:05 janegilring

I decided I'm probably gonna make this the default experience and swap the parameter to -NoWait instead

JustinGrote avatar May 19 '22 17:05 JustinGrote

Makes sense to me

janegilring avatar May 19 '22 18:05 janegilring