Conditional Access Policy
A Conditional Access policy is a Microsoft Entra ID rule that decides, at sign-in, whether to allow, block, or require extra proof such as MFA. It uses signals like user, location, device compliance, and sign-in risk.
Conditional Access Policy
Conditional Access works as "if this, then that" logic. If a user signs in from outside a trusted location, then require MFA. If a device is not compliant, then block access to admin portals. It needs Microsoft Entra ID P1 or higher, and it is the standard way to enforce MFA at scale instead of per-user settings.
What Signals Can a Policy Use?
- Users and groups: Who the policy applies to, including admin roles.
- Target resources: Which apps, such as the Azure management portal.
- Conditions: Location, device platform, client app, and sign-in risk.
- Grant controls: Require MFA, a compliant device, or block access.
- Session controls: Sign-in frequency and token lifetime limits.
How Do You Roll One Out Without Locking Everyone Out?
Create the policy in Report-only mode, review the sign-in logs to see who would have been affected, then enforce it. Always exclude at least two emergency break-glass accounts.
az rest --method POST \ --uri "https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies" \ --body @ca-policy-require-mfa.jsonWhy It Matters in Production
A payments company like PhonePe can require MFA and a compliant managed device for every admin who opens the production Azure portal, so a stolen password from an unmanaged laptop cannot reach production.
SecurityKeep two cloud-only break-glass accounts excluded from policies, with strong phishing-resistant sign-in methods and alerting on every use.
Common MistakeLeaving a policy in Report-only mode and assuming it protects you. Report-only logs the outcome but enforces nothing.
Frequently Asked Questions
How is Conditional Access different from enabling MFA for everyone?
Blanket MFA challenges every sign-in the same way. Conditional Access evaluates context and can require MFA only when risk is high, or block sign-in entirely from a bad location or device.
Do I need a licence for Conditional Access?
Yes, Microsoft Entra ID P1 or higher. Smaller tenants without it can use security defaults, which apply a fixed baseline.
What does Report-only mode do?
It evaluates the policy at each sign-in and records what would have happened, without blocking or challenging anyone. Use it to test impact first.