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.

https://github.com/Trevor-Davis/AzureScripts/blob/main/Enable%20Just%20In%20Time%20Access%20To%20VM/jit.ps1

Add a Comment

Your email address will not be published.