Skip to content
LessIT

Defender for Cloud

Configure JIT VM Access & Adaptive Controls

Set up Just-in-Time VM access policies, configure adaptive application controls, enable file integrity monitoring, create workflow automations for auto-remediation, and build a monitoring dashboard for healthcare VM environments.

Intermediate 100 min 12 steps

Where it fits: lab 1 of 3

Secure Azure workloads and access. Close management ports with just-in-time access and Bastion, onboard machines with Azure Arc and monitor Firewall, WAF and Key Vault in Sentinel.

  1. Configure JIT VM Access & Adaptive Controls 100 min
  2. Azure VM Secure Access, Azure Arc and Defender for Endpoint 100 min
  3. Deploy and Monitor Azure Firewall, WAF and Key Vault with Sentinel 7.5 h

What this lab covers

Just-in-Time (JIT) VM access reduces the attack surface by closing management ports on Azure VMs and opening them only when an administrator needs access for a defined time window. Adaptive application controls use machine learning to recommend application allowlists for your VMs, blocking unauthorized executables from running on production workloads. File Integrity Monitoring (FIM) tracks changes to critical system files, registry keys, and configuration files, alerting you when unexpected modifications occur. Workflow automation with Logic Apps enables auto-remediation of security alerts, closing the loop between detection and response without manual intervention. In this lab you will configure all four capabilities across a fleet of Azure VMs and build a unified monitoring dashboard.

The enterprise scenario

Scenario: MedSecure Health operates 150 Azure VMs across three regions handling electronic health records (EHR) and patient billing data subject to HIPAA regulations. System administrators require RDP and SSH access during scheduled maintenance windows but management ports must remain closed at all other times to satisfy audit requirements.

The security team needs to ensure only approved healthcare applications run on production VMs, preventing unauthorized software installations by clinical staff. Compliance auditors require evidence that critical system files on patient-facing servers have not been tampered with between audit cycles. The SOC team wants automated responses when a JIT access request is denied or when an unapproved application attempts to execute.

What you will learn

  • Understand how JIT VM access modifies NSG rules dynamically to reduce the attack surface
  • Enable JIT on target VMs and configure custom port policies with time-range restrictions
  • Request and approve JIT access through the portal, CLI, and PowerShell
  • Audit JIT access requests using Azure Activity Logs and KQL queries
  • Enable and configure adaptive application controls with machine-learning-based allowlists
  • Handle adaptive application control alerts and manage policy exceptions
  • Configure File Integrity Monitoring to track changes on critical system paths
  • Review FIM change detection results and correlate them with security events

Before you start

  • Azure Subscription: An active subscription with at least two Azure VMs deployed (Windows and Linux recommended)
  • Defender for Servers Plan 2: JIT, adaptive application controls, and FIM require Defender for Servers Plan 2 enabled on the subscription
  • Role: Security Admin or Contributor role; Owner role is required for Logic App connections
  • Completed Labs 01 and 02: Familiarity with Defender for Cloud basics from Lab 01 and Lab 02
  • Azure CLI: Version 2.50 or later installed locally or use Azure Cloud Shell
  • PowerShell: Az.Security and Az.Compute modules installed
  • Log Analytics Workspace: An existing workspace connected to Defender for Cloud for continuous export
  • Network Security Groups: At least one NSG attached to the target VMs (JIT modifies NSG rules dynamically)

The 12 steps

  1. Understand JIT VM Access Concepts
  2. Enable JIT VM Access on Target VMs
  3. Request and Approve JIT Access
  4. Configure Custom JIT Policies with Specific Ports and Time Ranges
  5. Audit JIT Access Requests with Activity Logs
  6. Enable Adaptive Application Controls
  7. Review and Approve Application Allowlists
  8. Handle Adaptive Application Control Alerts
  9. Configure File Integrity Monitoring (FIM)
  10. Review FIM Change Detection Results
  11. Create Workflow Automation with Logic Apps for Auto-Remediation
  12. Build a JIT and Adaptive Controls Monitoring Dashboard

Related labs