How It Works
Demo: Enable JIT Access for an Azure VM
Open Microsoft Defender for Cloud
Sign in to the Azure portal.
Search for Microsoft Defender for Cloud

Management, choose Environment settings

select your Azure Subscription

In the Settings menu, select “Defender Plans” then toggle the “Servers Plan” status to On and choose Save.

Enable Just In Time access to a VM
Click on the “Not configured” virtual machines tab.
Select the VM to protect.

Then go to Settings and choose Configuration.

Click “Enable just-in-time”

Request Temporary Access
Search for Defender for Cloud, go to Cloud Security > Workload protections, and choose Just-in-time VM access.

Now, the list of configured VMs with just-in-time VM access will be present.

Request Temporary Access
To request access to the VM that previously had JIT access enabled, go to the “Configured” tab. Select your VM and click “Request access”.

Choose port 3389, enter your source IP address, select how long access should be allowed, enter your request justification, and click the “Open ports” button at the bottom right.

After access is granted, connect to the VM with Remote Desktop.
Best Practices
- Limit access to trusted IP addresses.
- Set the shortest possible access duration.
- Review JIT activity for unexpected requests.
- Use least-privilege Azure RBAC permissions and strong authentication.
