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.
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.
- Configure JIT VM Access & Adaptive Controls 100 min
- Azure VM Secure Access, Azure Arc and Defender for Endpoint 100 min
- 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
- Understand JIT VM Access Concepts
- Enable JIT VM Access on Target VMs
- Request and Approve JIT Access
- Configure Custom JIT Policies with Specific Ports and Time Ranges
- Audit JIT Access Requests with Activity Logs
- Enable Adaptive Application Controls
- Review and Approve Application Allowlists
- Handle Adaptive Application Control Alerts
- Configure File Integrity Monitoring (FIM)
- Review FIM Change Detection Results
- Create Workflow Automation with Logic Apps for Auto-Remediation
- Build a JIT and Adaptive Controls Monitoring Dashboard
Related labs
Enable Defender for Servers Plan 2
Activate Defender for Servers on Azure VMs, configure auto-provisioning for agents, review Secure Score, run vulnerability assessments, investigate security alerts, and remediate recommendations to protect your server workloads.
Implement Cloud Security Posture Management
Enable Defender CSPM, create custom security initiatives, configure governance rules, map controls to regulatory frameworks, build a compliance dashboard, and automate remediation to manage cloud security posture at scale.
Secure a Multi-Cloud Environment (AWS + Azure)
Connect AWS accounts to Defender for Cloud, deploy CSPM across both clouds, create unified compliance dashboards, and investigate cross-cloud attack paths.
AI Security Posture Management (DSPM for AI)
Discover AI workloads in Defender for Cloud, assess AI model deployment risks, configure security recommendations for Azure OpenAI and Azure AI services, and build an AI security governance dashboard.