T Techclick ← All lessons
Microsoft · Azure security · Lesson 4 of 10

Conditional Access: never lock the tenant without a door

You rolled “MFA for all users” on the tenant at 18:30. Including the only Global Admin. Including the automation SP. Nobody signs in. Microsoft’s answer was already in the design: report-only first, MFA for admins, and a break-glass account excluded and monitored. In this lab that account is bg-emergency.

Updated 2026-08-18·18 min read·L2 primary·Quiz at end

After this page you can

The ticket

All Global Admins are stuck on an MFA loop. CA includes All users, All cloud apps, Grant: MFA + compliant device. The intern’s laptop is not compliant. There is no excluded emergency account. You are now locked out of techclick-lab.in.

Quick interview answer

Conditional Access is Entra’s policy engine: assignments (users/groups/roles), target resources, conditions (device, location, risk), grant (MFA, compliant device), session. Ship new policies in report-only, read the What If / sign-in insights, then On. Keep at least one cloud-only emergency (break-glass) account excluded from CA, with a long secret, stored offline, and alerted on every sign-in. Do not use it as a daily admin. Do not exclude “all admins” — exclude the emergency object only.

Hero · locked door
Conditional Access lock with excluded break-glass account
Report-only is a dress rehearsal. Break-glass is the spare key, not the front door.
Lab data · dummy only

Tenant techclick-lab.in · MG tc-root / tc-landing / tc-workloads · subs sub-hub sub-spoke-app · hub VNet 10.40.0.0/16 · spoke 10.41.0.0/16 · Azure Firewall 10.40.0.4 · VPN GW public 203.0.113.50 · on-prem FortiGate WAN 203.0.113.10. Not a live tenant.

Mental model

ObjectJobThis lab
CA policyIf this identity + app + condition → grantCA-Admin-MFA
Report-onlyEvaluate, do not enforceFirst 7 days of a new policy
Break-glassCloud-only, excluded, monitoredbg-emergency@techclick-lab.in
What IfSimulate a sign-inBefore you flip On
Who is in the policy
Directory roles MFA + report-only → On Named locations optional condition bg-emergency excluded + alerted

Exclude the emergency account. Monitor it. Do not exclude the Global Admin role.

How to choose

PolicyUseTrap
MFA for directory rolesThis class + any prod tenantAlso targeting bg-emergency
All users / all apps / compliant deviceAfter report-only + device estate is realDay-one On
Block legacy authYes, after you find the printer that still uses itBlind On, then Exchange dies
https://portal.azure.com
Training mock · not live
HomeMicrosoft Entra IDVirtual networksAzure Firewall
Microsoft Entra ID → Protection → Conditional Access

CA-Admin-MFA

Report-only
Directory roles: Global Admin, Security Admin
bg-emergency@techclick-lab.in
Require multifactor authentication
Alert on any sign-in for bg-emergency
Report-only first. Exclude only the emergency account. Training mock.

Runbook

  1. Side A — spare key

    Create cloud-only bg-emergency. Long password in the offline safe. No MFA device that can be lost with the rest. Exclude from every CA policy. Do not assign standing daily work to it.

  2. Side B — policy

    New CA: directory roles → MFA. State = report-only. What If Priya (admin) and What If bg-emergency (must not apply).

  3. Side C — prove

    Sign-in log: result = report-only. Alert rule on bg-emergency. Then flip On. Keep a second person who can reach the safe.

az · dummy
az ad user show --id bg-emergency@techclick-lab.in --query userPrincipalName -o tsv
# bg-emergency@techclick-lab.in

az rest --method GET --url "https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies" --query "value[].displayName" -o tsv
# CA-Admin-MFA
# CA-Block-Legacy

# Portal: Entra → Sign-in logs → filter user bg-emergency
# Expected day-to-day: zero rows. Any row = incident.

Four failures

1 · CA includes break-glass

You built a lock and hid the key inside the house that just locked.

2 · On without report-only

Automation, guest, or a legacy protocol dies at 02:00.

3 · Break-glass used as daily admin

Then it gets MFA “like everyone else.” Then you have no emergency.

4 · No monitor

An excluded account with Global Admin and no alert is a gift to an attacker.

How to prove it

Close only when

1) What If shows MFA for admins and skip for bg-emergency. 2) Report-only insights exist. 3) An alert exists for that UPN. 4) You did not flip All users / All apps / On in one click.

Traps

MoveResult
Exclude the Global Admin roleNo admin is covered — attackers love this
Share bg-emergency password in TeamsIt is no longer break-glass
Sync break-glass from on-prem ADNow on-prem outage locks Azure too

Knowledge check

Judgment items. One best answer. Reasons send you back to the matching section.

Q1

Before enforcing a new CA policy…

Correct: b. Report-only first.
Q2

bg-emergency should be…

Correct: b. Break-glass design.
Q3

You locked every Global Admin out. First designed recovery?

Correct: b. That is why it exists.
Q4

Excluding the Global Admin role from CA is bad because…

Correct: a. Trap.
Q5

Conditional Access lives in…

Correct: b. Entra policy engine.
Q6

A sign-in log row for bg-emergency on a quiet Tuesday means…

Correct: b. Failure 4.

Azure security class series: Shared + Entra · Landing zone · NSG vs Firewall vs WAF · Conditional Access · Key Vault + MI · Private Link · Defender + Sentinel · Hub-spoke · Identity path · Interview

Sources

Related: Azure session factory · Migration series.