Compliance Policies & Conditional Access
📦 Module: 3 of 7
🎯 Exam: MD-102
⏱ Read time: ~22 min
MD-102 Exam Alignment
MD-102
- Know that a compliance policy defines rules a device must meet to be considered compliant — it does NOT enforce settings itself (that’s configuration profiles). A non-compliant device triggers actions you define
- Know that non-compliance actions include: mark device non-compliant immediately or after a grace period, send notification email to user, remotely lock the device, or retire/wipe the device
- Know that Intune integrates with Entra ID Conditional Access — a CA policy can require “device must be marked compliant” as a grant control, blocking non-compliant devices from accessing M365 resources
- Know the grace period: you can configure a number of days before a non-compliant device is blocked — giving users time to fix compliance issues without immediate lockout
📋 What Is a Compliance Policy?
A compliance policy is a set of rules and conditions assigned to devices (via user or device groups). Intune evaluates each enrolled device against all applicable policies and marks the device as Compliant or Not compliant.
💡 Key distinction: Compliance vs Configuration
- Configuration profile → pushes a setting TO the device (e.g., enables BitLocker, sets minimum PIN length)
- Compliance policy → checks if the device HAS a setting (e.g., is BitLocker enabled? is a PIN set?)
- A device can be compliant even without a configuration profile — as long as the device natively meets the compliance requirements
- A device with a configuration profile applied but that hasn’t yet applied the settings would be non-compliant during the grace period
⚙️ Common Compliance Policy Settings
| Category | Setting | Example Requirement |
|---|---|---|
| Device Health | Jailbreak / root detection | Block jailbroken iOS or rooted Android devices — these have had OS security protections removed |
| Windows Health Attestation | Require Secure Boot, code integrity, BitLocker reported via TPM health attestation service | |
| Defender for Endpoint risk score | Block devices with Machine Risk Score above Medium — integrates with Defender threat intelligence | |
| OS Version | Minimum OS version | Windows 11 22H2 minimum — devices running older OS versions are non-compliant |
| Maximum OS version | Block devices running newer OS not yet validated by IT (rarely used) | |
| Valid operating system builds | Allow only specific Windows build ranges for strict enterprise environments | |
| Security | Password / PIN required | Require screen lock with PIN, password, or biometric |
| Password complexity | Minimum 8 characters, alphanumeric, no simple passwords | |
| Encryption | Require device storage to be encrypted (BitLocker on Windows, FileVault on Mac) |
⏱️ Non-Compliance Actions & Grace Period
| Action | When It Fires | Description |
|---|---|---|
| Mark device non-compliant | Immediately (0 days) or after grace period | Changes the compliance state. This is the trigger for Conditional Access to block resource access. Default action — always present. |
| Send email to end user | Day 1 (e.g., immediately on non-compliance) | Sends a notification email to the device’s primary user listing the non-compliance reasons and remediation steps. |
| Remotely lock device | Day 7 (e.g., after a week without remediation) | Locks the device screen remotely. For Windows, requires a PIN to unlock. Prompts user to remediate compliance without wiping data. |
| Retire | Day 30 (escalation) | Removes company data and un-enrolls the device from Intune. Less destructive than wipe — leaves the device functional but removes corporate access. |
| Wipe | As a final escalation | Factory resets the device. Use with care. More common for lost/stolen devices via device-level action than as a scheduled compliance action. |
🔒 Intune + Entra ID Conditional Access Integration
Compliance policies alone don’t block access — they only report the compliance state. To block non-compliant devices from accessing resources, you need a Conditional Access policy in Entra ID that uses Require device to be marked as compliant as a grant control.
| Flow Step | What Happens |
|---|---|
| 1. Device enrolled | Device is enrolled in Intune and a compliance policy is assigned |
| 2. Compliance evaluated | Intune evaluates the device against the policy — device is Compliant or Not compliant. This state is reported to Entra ID. |
| 3. User accesses resource | User tries to open Outlook or SharePoint on their device |
| 4. Conditional Access checks | Entra ID evaluates the CA policy — checks if the device is marked compliant in Intune |
| 5. Outcome | ✅ Compliant → Access granted. ❌ Non-compliant → Access blocked with “You can’t get there from here” error and remediation link |
💡 Best Practices
- Always configure a grace period of at least 3–7 days for the “mark non-compliant” action before Conditional Access blocks access — new devices need time to complete all compliance checks after enrolment
- Pair compliance policies with notification message templates (Devices → Compliance → Notifications) that include clear remediation steps — users should understand exactly why they’re blocked and how to fix it
- Start Conditional Access policies in Report-only mode first — this logs who would have been blocked without actually blocking anyone, allowing you to assess impact before enforcing
🎓 Interview Q&A
An Intune compliance policy requires BitLocker encryption on Windows devices. A laptop without BitLocker enabled tries to access Exchange Online. A Conditional Access policy requires devices to be compliant. What is the outcome?
You create a compliance policy with a 7-day grace period for the “mark device non-compliant” action. A device fails compliance evaluation on Day 1. What happens on Day 1 vs Day 8?
Where is the Conditional Access policy that requires device compliance configured — in Intune or Entra ID?
An admin deploys a new compliance policy requiring OS version Windows 11 22H2 minimum. Devices running Windows 10 are immediately blocked from accessing Microsoft 365. How should the admin have rolled this out to avoid sudden user lockouts?
A compliance policy has been assigned to a user group. A device not enrolled in Intune belongs to a user in that group. What is the device’s compliance state from Intune’s perspective?