Design a Microsoft Entra Conditional Access baseline: policy set, authentication strengths, device and risk conditions, break-glass exclusions, report-only testing and Graph deployment.
Conditional Access (CA) is the policy engine that decides whether a sign-in to Microsoft 365 is allowed, challenged or blocked. A small, well-structured set of policies stops most credential attacks. A large, ad hoc set causes lockouts and gaps.
Design principles
- One purpose per policy, named consistently (for example
CA001 - Require MFA - All users - All apps). - Assign to groups, never to hard-coded users, and keep exclusions in a documented group (
CA-Exclude-BreakGlass). - Start in report-only mode and review impact in the Conditional Access insights workbook before enforcing.
- Avoid overlapping policies that contradict each other; CA evaluates all that apply and applies the most restrictive grant.
Baseline policy set
- Require MFA for all users, all cloud apps. Exclude only the break-glass group.
- Block legacy authentication (client apps: Exchange ActiveSync and other clients). Legacy protocols cannot do MFA.
- Require phishing-resistant MFA for administrators using an authentication strength (FIDO2, Windows Hello for Business or certificate-based).
- Require compliant or hybrid-joined device for administrators and for apps with sensitive data (Exchange, SharePoint, Teams) from unmanaged networks.
- Block or step up on risk (Entra ID P2): require password change on high user risk, require MFA on medium and high sign-in risk.
- Require MFA to register or join devices and to register security information, using the user action target.
- Restrict admin portals (Azure management, Microsoft Admin Portals) to compliant devices.
- Block countries you never operate in, using named locations (a noise-reduction control, not a security boundary).
- Session controls: sign-in frequency for admins (for example 4 hours), no persistent browser session on unmanaged devices, and app-enforced restrictions for browser access to SharePoint from unmanaged devices.
Authentication strengths
Create a custom strength for admins that allows only phishing-resistant methods. Authentication strengths replace the blunt “require MFA” grant when you need to dictate which methods count. Check that every admin has registered a strong method before enforcing, or you will lock them out.
Break-glass accounts
Create two cloud-only Global Administrators with long random passwords and a FIDO2 key stored offline, exclude them from all CA policies, and alert on any sign-in:
SigninLogs
| where UserPrincipalName in ("breakglass1@contoso.onmicrosoft.com","breakglass2@contoso.onmicrosoft.com")
| project TimeGenerated, UserPrincipalName, IPAddress, AppDisplayName, ResultTypeTest them twice a year.
Deploy as code
Export or define policies as JSON and deploy through Microsoft Graph so changes are reviewed and versioned:
POST https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies
{
"displayName": "CA001 - Require MFA - All users - All apps",
"state": "enabledForReportingButNotEnforced",
"conditions": {
"users": {"includeUsers": ["All"], "excludeGroups": ["<break-glass-group-id>"]},
"applications": {"includeApplications": ["All"]}
},
"grantControls": {"operator": "OR", "builtInControls": ["mfa"]}
}Tools such as Microsoft365DSC or Terraform’s AzureAD provider keep tenants consistent across environments.
Rollout sequence
- Report-only for two weeks; review failures by user and app.
- Enforce for IT staff, then a pilot business unit, then everyone.
- Fix service accounts: move them to managed identities, workload identity federation or CA policies for workload identities.
- Monitor with sign-in logs and the CA insights workbook weekly.
Common mistakes
- Excluding a whole “trusted location” from MFA; compromised devices inside the network then bypass it.
- Forgetting guests and service principals.
- Using
All usersplus a long list of user exclusions that nobody reviews. - No emergency access process, then a policy error locks out every administrator.
IT Guiders designs, tests and deploys Conditional Access baselines for Microsoft 365 tenants.
conditional access policiesmicrosoft-solutions
