
An Intune compliance policy on its own only labels a device. It's Microsoft Entra Conditional Access that turns that label into an access decision, using the grant control Require device to be marked as compliant. Done well, this is one of the strongest controls an organization can deploy. Done carelessly, it can lock every user out of Microsoft 365, administrators included. This tutorial explains how the two services connect, walks through a worked example policy, and shows how to test safely with report-only mode, the What If tool and the sign-in logs before anyone is blocked.
All names and behaviours below are taken from current Microsoft Learn documentation (see Sources). If you are revising for interviews, the complete Microsoft Intune interview preparation guide asks about this topic in several forms.
How Intune compliance reaches Conditional Access
When a device enrolls in Intune, it registers in Microsoft Entra ID. Intune reports the device's compliance status to Entra ID, and a Conditional Access policy that uses Require device to be marked as compliant reads that status at sign-in to grant or block access. Some facts from Microsoft's grant-control documentation shape every design decision:
- Devices must be registered in Microsoft Entra ID before they can be marked as compliant.
- The control supports Windows 10 and later, iOS, Android, macOS and Linux Ubuntu devices that are registered with Microsoft Entra ID and enrolled with Intune.
- Microsoft Edge in InPrivate mode on Windows is treated as a noncompliant device.
- On Windows, iOS, Android, macOS and some non-Microsoft browsers, Entra ID identifies the device by a client certificate provisioned at registration. At the first browser sign-in, the user is prompted to select it.
- The device-code OAuth flow can't satisfy a managed-device requirement. Microsoft suggests the Require multifactor authentication control for that case.
- The control doesn't block Intune enrollment. Users can still enroll new devices even when the policy covers all users and all resources.
For licensing, Intune compliance doesn't need Microsoft Entra ID P1. But Microsoft's compliance documentation says that if you use Conditional Access, you need Microsoft Entra ID P1 or P2.
Before you create the policy
Microsoft's own policy article opens with a warning: "Without a compliance policy created in Microsoft Intune, this Conditional Access policy won't function as intended. Create a compliance policy first and ensure you have at least one compliant device before proceeding." Work through this checklist first:
- Compliance policies exist for every platform you will allow, and they are assigned. Check the Devices without compliance policy tile in Intune.
- The tenant-wide setting is deliberate. Under Endpoint security > Device compliance > Compliance policy settings, Mark devices with no compliance policy assigned as defaults to Compliant. Microsoft recommends Not compliant when you use Conditional Access, so that only devices confirmed as compliant get access. Make this change with the same care as the CA policy, because it changes who passes.
- At least two emergency access (break-glass) accounts exist and are ready to be excluded. There's a dedicated section on these below.
- You know your sync accounts. If you use Microsoft Entra Connect or Microsoft Entra Connect Cloud Sync, Microsoft says to exclude the Directory Synchronization Accounts directory role.
- You have the right role. Creating policies needs at least the Conditional Access Administrator role in Microsoft Entra ID.
A worked example policy
The scenario: a company wants every member of staff to reach Microsoft 365 only from Intune-compliant Windows and macOS laptops. Mobile access is handled separately with app protection. This is the policy we will build. The values follow Microsoft's published pattern for requiring device compliance, narrowed to two platforms.
| Policy section | Setting | Value in this example | Why |
|---|---|---|---|
| Name | Policy name | CA-Staff-RequireCompliant-WinMac | Microsoft advises a meaningful naming standard. |
| Users | Include | Group All-Staff for the pilot, later All users | Start small and widen after report-only review. |
| Users | Exclude | Group EmergencyAccess, plus the Directory Synchronization Accounts role | Prevents lockout and protects sync. |
| Target resources | Include | Office 365 Exchange Online, Office 365 SharePoint Online | Matches Microsoft's Defender integration example. Widen later. |
| Conditions | Device platforms | Include Windows and macOS | Mobile devices are covered by a separate app protection policy. |
| Conditions | Client apps | Browser and Mobile apps and desktop clients | Covers web and desktop Outlook, Teams and other clients. |
| Grant | Grant access | Require device to be marked as compliant | The control this tutorial is about. |
| Grant | For multiple controls | Require all the selected controls | The default. It doesn't matter with a single control. |
| Enable policy | State | Report-only, later On | Microsoft recommends report-only first. |
Before you include macOS in a report-only policy, read the report-only warning below. It is the one documented exception to "report-only can't hurt anyone".
Building it
- Sign in to the Microsoft Entra admin center as at least a Conditional Access Administrator, and go to Entra ID > Conditional Access > Policies > New policy. The same experience is available from the Microsoft Intune admin center under Endpoint security > Conditional Access.
- Under Users or workload identities, set the include group, then under Exclude add the emergency access group and the Directory Synchronization Accounts role.
- Under Target resources, select the apps. Microsoft's broader template uses All resources (formerly 'All cloud apps'). Only move to that once the pilot is clean.
- Set the device platform and client app conditions.
- Under Access controls > Grant, select Require device to be marked as compliant, then Select.
- Set Enable policy to Report-only and select Create.
Testing with report-only mode
In report-only mode, Entra ID evaluates the policy at every sign-in but doesn't enforce it. The results are written to the Conditional Access and Report-only tabs of each sign-in log entry. The possible results are:
| Result | Meaning |
|---|---|
| Report-only: Success | Conditions and the required non-interactive controls were satisfied. For example, the device check ran on a compliant device. |
| Report-only: Failure | Conditions matched, but the controls weren't satisfied. For example, the device failed the compliant device policy. These users would be blocked once you turn the policy on. |
| Report-only: User action required | The user would need to act, for example complete MFA. They aren't prompted in report-only mode. |
| Report-only: Not applied | Not all conditions matched, for example the user was excluded. |
Microsoft's Defender integration guide suggests waiting 24 hours for sign-in data to accumulate before you review. Three things to know while you review:
- The certificate-prompt warning. Microsoft says report-only policies that require a compliant device "can prompt users on macOS, iOS, and Android devices to select a device certificate during policy evaluation, even though device compliance isn't enforced." The prompts can repeat until the device is compliant. Microsoft's advice is to exclude Mac, iOS and Android platforms from report-only policies that check device compliance. In our example, that means testing Windows first and reviewing macOS through a small pilot group.
- The workbook needs Log Analytics. The Conditional Access Insights and Reporting workbook compares report-only and enforced results across users and apps. It needs Microsoft Entra ID P1 and a Log Analytics workspace that receives sign-in logs.
- Policy impact is in preview. The Policy impact (preview) view gives anyone with at least the Security Reader role a snapshot of a policy's effect on interactive sign-ins over 24 hours, 7 days or 1 month.
Report-only mode doesn't cover policies in the User actions scope.
Simulating sign-ins with the What If tool
Report-only mode shows what happened to real sign-ins. The What If tool answers "what would happen if this user signed in like this?" Find it at Entra ID > Conditional Access > Policies > What If.
- Identity, target resource, device platform and client app are required. Other conditions default to none.
- Only policies that are enabled or in report-only mode are evaluated.
- The result lists the policies that apply, with their grant and session controls, and the policies that don't apply, with the first condition that wasn't satisfied.
- It runs on the What If Evaluation API in Microsoft Graph, which expects every sign-in parameter you want evaluated. A policy with a location or risk condition won't match unless you supply that value.
- Specify applications by App ID. Microsoft notes that app groups such as Office 365 or Microsoft Admin Portals don't match.
- It doesn't test service dependencies. For example, a Microsoft Teams simulation doesn't consider a policy on Office 365 Exchange Online.
Run What If for a break-glass account before every change. If your example policy appears under policies that apply for that account, your exclusion is wrong.
Reading the sign-in logs when someone is blocked
When a user reports a block, ask them for the details behind More Details on the error page, especially the correlation ID. Then:
- Go to Entra ID > Monitoring & health > Sign-in logs (at least the Reports Reader role).
- Filter by Correlation ID, Username, Date, Resource or Conditional Access (failures only).
- Open the event's Conditional Access tab to see which policy interrupted the sign-in. The Device Info tab shows what Entra ID knew about the device.
- Use the policy's details view to compare the sign-in properties with the policy requirements, or run the sign-in diagnostic from Basic info > Troubleshoot Event.
Microsoft documents these common error codes. The browser shows them with an AADSTS prefix:
| Code | Error string |
|---|---|
| 53000 | DeviceNotCompliant |
| 53001 | DeviceNotDomainJoined |
| 53002 | ApplicationUsedIsNotAnApprovedApp |
| 53003 | BlockedByConditionalAccess |
| 53004 | ProofUpBlockedDueToRisk |
| 53009 | Application needs to enforce Intune protection policies |
A 53000 means Conditional Access worked as designed and the problem is on the device side. Our Intune compliance troubleshooting tutorial takes over from there. It covers check-in timing, assignment, dsregcmd and Defender risk. The sign-in log's Audience information also helps when a user "only opened Teams" but was blocked by a SharePoint policy, because one sign-in can request several resources.
Common lockout mistakes
Microsoft's troubleshooting article lists configurations to avoid. For all users and all resources, don't use Block access, and don't use Require device to be marked as compliant without preparation. Microsoft explains that for users who haven't enrolled their devices yet, "this policy blocks all access, including access to the Intune portal. If you're an admin without an enrolled device, this policy blocks you from getting back in to change the policy." The same warning applies to Require Hybrid Microsoft Entra domain joined device and Require app protection policy.
Other mistakes we see in labs and in the field:
- No break-glass exclusion, or excluding a single admin's named account instead of a dedicated group.
- Forgetting the Directory Synchronization Accounts role in hybrid identity tenants.
- Enabling before the compliance policies exist, so every device is noncompliant or not evaluated.
- Flipping "Mark devices with no compliance policy assigned as" to Not compliant on the same day without first checking the Devices without compliance policy report.
- Ignoring the seven-day Error rule. A compliance setting in Error keeps the previous state for up to seven days, then becomes Not compliant. A block can arrive a week after the change that caused it.
- Forgetting the pre-provisioning compliance reset. Compliance in Entra ID resets during the Autopilot pre-provisioning user flow, so a freshly delivered laptop can be briefly noncompliant. See our Autopilot deployment tutorial.
- Using the retired approved-client-app grant for mobile. Microsoft's grant documentation says the Require approved client app grant was retiring in early March 2026, and that new policies should use Require app protection policy instead.
Break-glass (emergency access) accounts done properly
Microsoft's emergency access guidance amounts to a short checklist:
- Maintain at least two emergency access accounts.
- Make them cloud-only accounts on the
*.onmicrosoft.comdomain, not federated or synchronized. - Give them the Global Administrator role as a permanent active assignment in Privileged Identity Management, not an eligible one.
- Protect them with phishing-resistant passwordless methods, such as a passkey (FIDO2), which Microsoft recommends, or certificate-based authentication. Use a different method from your normal admin accounts.
- Exclude them, ideally through a dedicated group such as EmergencyAccess, from Conditional Access policies that block or restrict sign-in. Report-only policies don't need the exclusion.
- Don't tie them to any individual's phone or personal details. Store credentials in separate, secure locations.
- Alert on every sign-in. Microsoft's example sends Entra sign-in logs to a Log Analytics workspace and creates an Azure Monitor alert rule on the accounts' object IDs.
- Validate them at least every 90 days, and after staff changes.
Microsoft explains why the exclusion matters: if an emergency access account is subject to a policy that "requires MFA, a compliant device, or another control, the account might be unusable during the exact emergency scenarios it's designed for."
If you do get locked out
Microsoft's guidance is simple. First check whether another admin can still sign in and disable the policy. If no admin in the organization can update it, submit a support request, and Microsoft support will review and update the blocking policies after confirming. A working, tested break-glass account usually means you never get to that second step.
A safe rollout sequence
- Create and assign compliance policies, then confirm real devices report Compliant.
- Review Devices without compliance policy, then decide on Mark devices with no compliance policy assigned as.
- Create the CA policy in Report-only for a pilot group, with Windows first.
- Run What If for a normal user, a pilot user and each break-glass account.
- After at least 24 hours, review the Report-only: Failure entries and fix those devices.
- Switch the pilot to On, then widen users, platforms and resources one step at a time, repeating the review each time.
Conditional Access design is core SC-300 material. Our SC-300 Identity and Access Administrator exam guide maps it to the exam. The Intune side, meaning compliance policies and enrollment, sits in the MD-102 Intune exam guide. For quick revision, the Intune interview questions hub has CA scenario questions. If you want to see sign-in and compliance evidence gathered automatically, look at our Intune troubleshooting agent project walkthrough.
Practise this at Cloud Soft Solutions
The Microsoft Intune course at Cloud Soft Solutions includes hands-on labs where you build this example policy in a lab tenant, test it with report-only mode and What If, trace a blocked sign-in, and set up break-glass accounts. Classes run in Ameerpet, Hyderabad, and online.
Sources
- How to configure grant controls in Microsoft Entra (checked 5 December 2026)
- How to require device compliance with Conditional Access (checked 5 December 2026)
- Conditional Access policy insights: monitoring and evaluation (report-only mode) (checked 5 December 2026)
- The Conditional Access What If tool (checked 5 December 2026)
- Troubleshooting sign-in problems with Conditional Access (checked 5 December 2026)
- Manage emergency access admin accounts (checked 5 December 2026)
- Device compliance policies in Microsoft Intune (checked 5 December 2026)
- Create device compliance policies in Microsoft Intune (checked 5 December 2026)
- Monitor results of your device compliance policies in Microsoft Intune (checked 5 December 2026)
- Configure Microsoft Defender for Endpoint with Intune and onboard devices (checked 5 December 2026)
- Windows Autopilot for pre-provisioned deployment (checked 5 December 2026)
📞 Call +91 96660 19191 · +91 99496 16388 · WhatsApp
Cloud Soft Solutions, 513, 5th Floor, Aditya Enclave, Nilagiri Block, beside Ameerpet Metro Station, Ameerpet, Hyderabad 500016, Telangana, India
Frequently Asked Questions
Which platforms support Require device to be marked as compliant?
Microsoft lists Windows 10 and later, iOS, Android, macOS and Linux Ubuntu devices that are registered with Microsoft Entra ID and enrolled with Intune.
Does Require device to be marked as compliant block Intune enrollment?
No. Microsoft states that the control doesn't block Intune enrollment, so users can enroll new devices even when the policy targets all users and all resources.
What does sign-in error 53000 mean?
53000 is DeviceNotCompliant. The browser shows it as AADSTS53000, and it means a Conditional Access policy required a compliant device and the device wasn't compliant.
Can report-only mode affect users?
Report-only mode doesn't enforce controls. However, Microsoft warns that report-only policies requiring a compliant device can prompt macOS, iOS and Android users to select a device certificate, and recommends excluding those platforms from such report-only policies.
How many emergency access accounts should a tenant have?
Microsoft recommends at least two cloud-only emergency access accounts on the onmicrosoft.com domain, excluded from Conditional Access policies that block or restrict sign-in, monitored with alerts and validated at least every 90 days.
Which policies does the What If tool evaluate?
Only policies that are enabled or in report-only mode. Identity, target resource, device platform and client app are required inputs, and the tool doesn't test Conditional Access service dependencies.



