Skip to content
Visual explainer 2h 30m to learn 5 steps

Device compliance in Conditional Access

Trace a compliance result into a Conditional Access decision and resolve disagreements between device, Intune and Entra.

By Invicly Tech, , in Microsoft Entra & Microsoft 365 Administration. About 11 minutes to read.

Topic 19 of 31

In short

Conditional Access can require that a device is marked as compliant before granting access. Intune evaluates the device against compliance policies and writes the result to the device object in Microsoft Entra ID; at sign-in, Conditional Access reads that result. When the device, Intune and Entra disagree, you trace the same device ID through each view and force a fresh check-in.

Explained simply

Conditional Access is the Microsoft Entra feature that decides whether a sign-in is allowed. One of its strongest rules is: only allow devices that Intune says are compliant. That way, company data only reaches laptops and phones that meet your security rules.

Conditional Access does not inspect the device itself. Intune checks the device and writes a simple yes or no onto the device's record in Entra. At sign-in, Conditional Access reads that yes or no. If it says no, or the device is unknown, access is blocked.

Problems often come from the three views disagreeing. The laptop says it is fine, Intune says it is compliant, but the sign-in is still blocked. The fix is to compare the same device ID in each place and check how fresh each result is.

A forced check-in, called a sync, often clears a stale result. You can start one from the Intune admin center, from the Company Portal app, or from Windows Settings. Then wait a few minutes and try the sign-in again.

Conditional Access needs Microsoft Entra ID P1, and Intune needs its own licence. Both come with Microsoft 365 Business Premium, E3 and E5 and their trials. Without a tenant, follow the synthetic sign-in logs in this article step by step.

Press Play on a diagram to walk through it one step at a time.

SequenceFrom compliance check to access decision
Device
Intune
Entra ID
App
  1. 1Check in and report settings
    Device to Intune: Check in and report settings
  2. 2Compliance result: compliant or not
    Intune to Device: Compliance result: compliant or not
  3. 3Write isCompliant to device object
    Intune to Entra ID: Write isCompliant to device object
  4. 4User signs in, device ID sent
    Device to Entra ID: User signs in, device ID sent
  5. 5Conditional Access checks flag; token or block
    Entra ID to Device: Conditional Access checks flag; token or block
  6. 6Call app with token if granted
    Device to App: Call app with token if granted
CompareThree views of the same device
Device
  • dsregcmd /status for join state
  • Company Portal shows status
  • Settings > Access work or school
  • Can sync on demand
Intune
  • Compliance state per policy
  • Last check-in time
  • Per-setting results
  • Sync action
Entra
  • Device object and ID
  • Compliant and MDM columns
  • Sign-in log Device info
  • Conditional Access result
MapCommon causes of a compliance mismatch
Blocked but should be allowed
  • Timing
    • Device not synced since fix
    • Result not yet written to Entra
  • Identity
    • Re-enrolled, new Device ID
    • Duplicate stale object
  • Sign-in context
    • Browser without device identity
    • Private browsing window
  • Policy
    • Failing setting, e.g. BitLocker off
    • No compliance policy assigned

In depth

Requiring a compliant device safely

Build the policy in the Entra admin center under Conditional Access. Users: a pilot group first, and always exclude your emergency access accounts. Target resources: start with one app, such as Office 365. Conditions: optionally limit to Windows and macOS at first. Grant: Require device to be marked as compliant. You can combine it with Require multifactor authentication.

Set the policy to Report-only. For a week, read the sign-in logs and the Conditional Access insights workbook to see who would have been blocked. Fix those devices, then switch the policy On for the pilot, and later widen it. Mobile devices need thought: browsers on unmanaged phones cannot pass a device check, so plan app protection policies for them. Rollback is setting the policy back to Report-only or Off.

  • Exclude emergency access accounts
  • Start in Report-only
  • Pilot group before all users
  • Plan for unmanaged mobile devices

Following compliance into a sign-in

Trace the path in order. First, Intune: the device's Device compliance page shows each policy and setting with its result and the last check-in time. Second, Entra: the device object shows Compliant Yes or No and MDM Microsoft Intune. Third, the sign-in log: open the failed sign-in, then the Device info tab. It shows Device ID, join type, Compliant and Managed. The Conditional Access tab shows which policy failed and which grant control was not met.

A common failure code is 53000, meaning the device is not in the required compliant state. If Device ID is blank, the device was not identified. On Windows, Edge signed in with the work profile passes device identity; Chrome needs Microsoft's sign-in extension or the matching browser policy. Many third-party browsers and private windows will not pass it at all.

FlowTracing a blocked sign-in
  1. 1
    Sign-in log

    Failure code, Device ID, policy that failed

  2. 2
    Entra device

    Same Device ID? Compliant and MDM columns

  3. 3
    Intune device

    Per-setting results and last check-in

  4. 4
    Device itself

    dsregcmd /status and Company Portal

  5. 5
    Fix and sync

    Correct the setting, then force a check-in

Why the views disagree

Most mismatches fall into a few groups. Timing: the device fixed a setting but has not checked in, so Intune and Entra still show the old result. Grace period: Intune shows In grace period, which counts as compliant until it ends. Identity: the device was reset and re-enrolled, so the sign-in uses a new Device ID while you look at an old object with the same name. Context: the user signed in from a browser or app that did not pass device identity, so Entra saw no device at all. Assignment: no compliance policy targets the device, and the tenant setting treats that as compliant or not compliant depending on your choice.

Write down the Device ID from the sign-in log first; every other check should use that ID.

  • Stale result: sync
  • New Device ID: clean up duplicates
  • Blank device: wrong browser or app
  • No policy assigned: check tenant default

Forcing a check-in and verifying

Windows devices check in with Intune regularly, roughly every eight hours once enrolment settles, so waiting can be slow. Force a sync from the Intune admin center (device > Sync), from Company Portal (Settings > Sync), or in Windows Settings under Accounts > Access work or school > Info > Sync. With Graph PowerShell, Sync-MgDeviceManagementManagedDevice does the same.

After syncing, confirm in order: Intune shows the new compliance result and a fresh last check-in time; the Entra device shows Compliant Yes; a new sign-in succeeds and its log shows the policy as Success. Keep the before and after evidence in the ticket. If the device stays noncompliant, the per-setting view tells you which rule is failing, which is the real fix.

Learn it in 5 short steps

About 30m each. Track them with a timer in your plan.

  1. 1
    Require a compliant device~30m
  2. 2
    Follow compliance into sign-in~30m
  3. 3
    Compare device, Intune and Entra views~30m
  4. 4
    Force a device check-in~30m
  5. 5
    Resolve a mismatch~30m

Key points

  • Conditional Access does not check the device itself; it trusts the compliance flag Intune wrote to Entra.
  • The sign-in log must show a device ID; if it is empty, the device was not identified at all.
  • Match the device ID across the device, Intune and Entra before changing anything.
  • Force a check-in with Sync from Intune or Company Portal, then retry after the result updates.
  • Pilot the policy in report-only mode and exclude emergency access accounts.

Key terms

Tap a card to flip it. 0/5 known

Examples

text
Sign-in log entry (synthetic)
User:        ana@contoso.com
Application: Office 365 Exchange Online
Status:      Failure  53000
Reason:      Device is not in required device state: compliant
Device info: DeviceId 1a2b3c4d-...-0001, Join type Microsoft Entra joined,
             Compliant No, Managed Yes
CA policy:   CA010 Require compliant device  ->  Failure (grant control not satisfied)

Read the device ID, the compliant flag and the policy that failed.

Ana is blocked after a laptop rebuild

Ana's sign-in to Outlook fails with 53000. Step 1: the sign-in log shows Device ID ...0042, Compliant No. Step 2: in Entra there are two LAPTOP-ANA objects: ...0001 (Compliant Yes, last sign-in a month ago) and ...0042 (Compliant No). Step 3: Intune shows ...0042 enrolled today with BitLocker Not compliant because encryption is still running. Step 4: wait for encryption to finish, then Sync. Step 5: Intune shows Compliant, Entra shows Yes, Ana's next sign-in succeeds. Step 6: disable the stale ...0001 object.

text
Sign-in log (synthetic)
09:14 UTC  ana@contoso.com  Exchange Online  Failure 53000
  DeviceId ...0042  Compliant No  Managed Yes
  CA010 Require compliant device: Failure
09:52 UTC  ana@contoso.com  Exchange Online  Success
  DeviceId ...0042  Compliant Yes  Managed Yes
  CA010 Require compliant device: Success

Blocked in Firefox, fine in Edge

Ben can open SharePoint in Edge but not in Firefox on the same compliant Entra joined laptop. Step 1: the failed sign-in shows a blank Device ID. Step 2: the successful sign-in from Edge shows the correct Device ID and Compliant Yes. Step 3: conclusion: the device is fine; Firefox did not pass device identity. Step 4: either enable Firefox's Windows single sign-on option through policy, which supports Entra device identity, or tell users to use Edge for company apps. No change to Intune or Conditional Access is needed.

Quick reference

  • Grant control: Require device to be marked as compliant
  • Intune evaluates; Entra stores isCompliant; Conditional Access reads it at sign-in
  • Error 53000: device is not in the required compliant state
  • Blank Device ID in sign-in log = device not identified
  • Force sync: Intune > device > Sync, or Company Portal, or Access work or school
  • Always match by Device ID across device, Intune and Entra
  • Start in Report-only; exclude emergency access accounts

Common mistakes

  • Signing in from a browser that does not pass device identity, so the device appears unknown.
  • Looking at a stale device object with the same name instead of the one whose ID is in the sign-in log.
  • Turning the policy on for all users without report-only testing and an emergency access exclusion.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1Which service decides whether the device is compliant?

Question 2

2A failed sign-in shows no Device ID. What is the most likely cause?

Question 3

3A user fixed the failing setting ten minutes ago, but is still blocked. Best next step?

Question 4

4Why must you match Device IDs rather than names?

Question 5

5What should every new compliance-based Conditional Access policy exclude?

0/5 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Read the synthetic sign-in log in the first worked example and answer: which device ID failed, which policy blocked it, and what changed before the success?

  2. Exercise 2medium

    In a trial tenant, create a report-only policy that requires a compliant device for Office 365 for a pilot group, then sign in from a compliant and a noncompliant VM and read the report-only results.

  3. Exercise 3hard

    Write a read-only Graph PowerShell check that takes a Device ID from a sign-in log and prints the Entra compliance flag next to Intune's compliance state and last sync time.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Does Conditional Access require Intune?
Conditional Access itself needs Entra ID P1. The compliant device control needs a compliance result, which comes from Intune or a supported partner MDM.
How long until a fixed device is allowed?
After the device syncs and Intune updates Entra, usually within minutes. Without a manual sync it can take hours.
What does In grace period mean?
The device fails a check but the policy allows time to fix it. It counts as compliant until the grace period ends.
Can unmanaged phones still use email under this policy?
Not through a policy that requires a compliant device. Many organisations add a separate policy using app protection for mobile apps instead.

Go deeper

ShareXLinkedInWhatsApp