PowerShell Script: Enable Just in Time Access to Azure Virtual Machine

Security is excellent and much needed, but sometimes a delay when we have a lot of plates spinning simultaneously.  

In my case, when logging into a Windows VM running in my Azure tenant from my house, I have to log into Azure, find the VM, and then request Just in Time access.  

Multiple straightforward steps, though nonetheless, multiple steps.  

Instead, just run this script.

Modify the variables at the top of the script, and you should be good to go.


Add a Comment

Your email address will not be published. Required fields are marked *