LowCodeStacks™
Sign in

Break-glass accounts and Conditional Access without locking yourself out

How to run Conditional Access without ever locking the administrators out: two cloud-only break-glass accounts with passkeys, excluded from blocking policies and alerted on every sign-in; every new policy in report-only mode first and checked with the What If tool; and a quarterly drill so the accounts work on the day they're needed.

Identity & securityFix a problem11 min read

Checked against Microsoft Learn 7 sources · Updated By · drafted with AI help, checked by a personHow we write guides

Conditional Access is the most powerful control in Microsoft Entra ID, and the one most able to lock every administrator out of the tenant with a single misconfigured policy: require a compliant device for all users before any device is compliant, block a country that includes your own office, require MFA through an identity provider that's down. Microsoft's answer is procedural rather than technical: keep emergency access accounts that no policy can block, prove every policy in report-only mode before it's enforced, and rehearse. This guide is that procedure, with the settings that make the accounts safe rather than a back door.

How to roll out a Conditional Access policy without locking the administrators out. Every new blocking policy goes through four steps: exclude the break-glass group, such as EmergencyAccess, from every policy that blocks or restricts sign-in; create the policy in report-only mode, where it is evaluated and logged at every sign-in but nothing is enforced; check the policy impact view, then run the What If tool for a break-glass account, a guest and your own admin account; then switch it On, to a pilot group first and then everyone. The group holds two break-glass accounts: cloud-only on the onmicrosoft.com domain, Global Administrator as permanent active rather than eligible, with a passkey each and the credentials in a safe. They are watched by an alert on any sign-in by either account, and a drill at least every 90 days and after staff changes.
Every blocking policy excludes the break-glass group and is proven in report-only before it's switched on.

Why the accounts exist

An emergency access account is for the day normal administration can't happen: the federated identity provider is down so nobody can sign in; every admin's MFA device is unreachable; the last Global Administrator has left and the account is gone or disabled on-premises; a network outage stops phones; or every privileged role is eligible in PIM with an approval step and no approver left to approve. Microsoft says to keep two or more, used only in an emergency or a drill, and monitored so any other use is noticed at once.

Mandatory MFA applies to them too. That's why the credential has to be one that works without a phone, a person or a network you don't control.

Create the break-glass accounts

SettingValueWhy
Account typeCloud-only, on the *.onmicrosoft.com domain, not synced or federatedAn on-premises or identity-provider outage must not take them down
RoleGlobal Administrator, assigned as permanent active in PIM, not eligibleActivation needs an approver and MFA; both can be exactly what's broken
AuthenticationA passkey (FIDO2 security key) per account, or certificate-based authentication if you already run a PKI; a different method from the one your normal admin accounts useSatisfies mandatory MFA, works offline, and shares no dependency with the everyday method
Password and keysLong, stored in a fireproof safe in a separate location (or split between two people); the key must not expire or fall under automated clean-up for inactivityKnown to several authorised people, tied to nobody's phone or laptop
Not associated withAny individual's user account, device or personal details; no self-service password reset to a personal numberA departure or a lost phone must not break them
Used fromA designated secure workstation or Privileged Access WorkstationThe account is the most powerful in the tenant

Some organisations instead give each administrator a personal emergency account; it adds accountability at the cost of more accounts to protect. Either way, keep the cloud and on-premises emergency access separate, with no dependency between them.

Exclude them, and the right service accounts

Put the accounts in a dedicated security group, for example EmergencyAccess, and exclude that group from every Conditional Access policy that blocks or restricts sign-in. Report-only policies don't block, so they need no exclusion. A policy that requires MFA, a compliant device or a named location can stop the account working during the exact emergency it exists for; the passkey is what protects it instead.

Microsoft's standard exclusion list has two entries, and the second is widely misunderstood:

  • Emergency access accounts, as above.
  • Service accounts and service principals. Conditional Access policies scoped to users don't apply to service principals and managed identities at all, so "excluding" them from a user policy changes nothing; but a user account used as a service account is in scope and will break. Replace those with managed identities (our mandatory MFA guide walks through it), and govern real service principals with Conditional Access for workload identities, a separate policy type that needs a Workload Identities Premium licence and can block single-tenant service principals by location or risk.

When you create a policy, Entra warns if you're about to include yourself with no exclusion. Heed it: exclude at least one administrator from any new blocking policy until it's proven, and keep the break-glass group excluded for good. If the worst happens, Microsoft's "What to do if you're locked out" guidance starts with these accounts.

Test every policy before you enforce it

  1. Create it in report-only mode. The policy is evaluated at every sign-in and the result is logged, but nothing is enforced or prompted. The sign-in log's Report-only tab shows, per sign-in, whether the policy would have succeeded, failed, needed user action (an MFA prompt), or not applied. One caveat: report-only policies that require a compliant device can prompt macOS, iOS and Android users to pick a device certificate; exclude those platforms from report-only compliance checks.
  2. Read the impact. The policy impact view on the policy (Security Reader or above) shows a snapshot over 24 hours, 7 days or a month with sample sign-ins; the Conditional Access insights and reporting workbook (Entra ID P1 and a Log Analytics workspace receiving sign-in logs) shows report-only and enforced results side by side for a time range, apps and users. Change an enforced policy the same way: clone it to report-only with the change, compare, then apply.
  3. Run the What If tool (Conditional Access > Policies > What If) for the cases that matter: a break-glass account from an unknown location, a service principal, a guest, your own admin account from a personal device. It lists which policies would apply, which wouldn't and why, including policies in report-only mode. Give it the specific app ID and all the sign-in conditions; the current API evaluates exactly what you provide, so an app group such as "Microsoft Admin Portals" doesn't match, and unspecified conditions aren't assumed.
  4. Enforce by switching the toggle from Report-only to On, to a pilot group first, then everyone. Conditional Access has no A/B testing; a phased rollout is a small included group that grows.

What a policy shows with its impact panel open, as of June 2026 (the newest screenshot of the panel itself is from September 2025):

  1. View policy impact (Preview), on the policy's toolbar, opens the Policy impact panel.
  2. Sign-in activity over time: sign-ins the policy would allow (Success), block (Failure) or not apply to (Not applied), filtered by Date range (here Last 1 month) and Result, with the totals below the chart.
  3. Sample sign-ins on a date where policy controls were not met: examples of the sign-ins that failed, so you can check who would have been stopped.
  4. Enable policy: Report-only, On or Off. Switching to On while the policy covers your own account brings up Don't lock yourself out!, with the choice to exclude yourself.
A Conditional Access policy named Require MFA for all users in the Microsoft Entra admin center, under the breadcrumb Home, Conditional Access, Policies, with the Policy impact panel open beside it. On the policy: Delete, View policy information and View policy impact (Preview). Under Assignments, Users, agents or workload identities reads All users included and specific users excluded; Target resources reads All resources (formerly 'All cloud apps'); Network is Not configured; Conditions has 0 conditions selected. Under Access controls, Grant, marked required, has 1 control selected, then Session, also marked required. Enable policy is set to On rather than Report-only or Off, and a red box warns Don't lock yourself out!, with the options Exclude current user, admin@lowcodestacks.com, and, selected, I understand that my account will be impacted by this policy; the panel covers the rest of the warning. A Save button is below. The Policy impact panel explains that it shows the impact of this policy on recent sign-in activity and links to the Conditional Access Insights and reporting page. Under Sign-in activity over time are the filters Date range: Last 1 month, Data format: Percentage, Show dates as: UTC (greyed out) and Result: All, and Reset filters. A stacked area chart of daily sign-ins from September 20 to October 20, 2026, mostly green for success with thin orange and grey bands for failure and not applied, drops at every weekend and peaks on October 14. Below it: Total sign-ins 100%, Success 96.32%, Failure 1.14%, Not applied 2.54%. Then Sample sign-ins on October 14, 2026 where policy controls were not met, examples of failed sign-ins that didn't meet the policy's requirements, lists three: Avery Lee at 4:52:31 PM and 4:49:07 PM, and Jordan Blake at 11:16:44 AM, all to Azure Portal.
Recreated by LowCodeStacks from Microsoft Learn screenshots (CC BY 4.0): a Conditional Access policy with its Policy impact panel in the Microsoft Entra admin center, interface as of June 2026 (the Policy impact panel as of September 2025, its newest screenshot), with made-up names and figures.

Alert on every sign-in, and drill quarterly

Alert. Send Entra sign-in logs to a Log Analytics workspace, then create an alert rule in Azure Monitor with a custom log search for the accounts' object IDs, threshold greater than 0, severity 0, with an action group that emails and texts the administrators:

kusto
SigninLogs
| where UserId == "<object id of break-glass 1>" or UserId == "<object id of break-glass 2>"
| project TimeGenerated, UserPrincipalName, UserId, IPAddress, ResultType, ResultDescription

On the rule's Condition tab, what the Alert logic section shows, as of April 2026:

  1. Threshold type: Static.
  2. Operator: Greater than.
  3. Threshold value: 0, so a single matching sign-in fires the alert.
  4. Frequency of evaluation: how often the query runs, here every 5 minutes.
The Alert logic section of an Azure Monitor alert rule. Threshold type, marked Preview, is set to Static rather than Dynamic. Operator is Greater than. Threshold value, a required field, is 0, with a green check mark. Frequency of evaluation, also required, is 5 minutes.
Recreated by LowCodeStacks from Microsoft Learn screenshots (CC BY 4.0): the Alert logic settings of an Azure Monitor log search alert rule, interface as of April 2026, with made-up example values.

Any firing means one of three things, and each needs a short written review afterwards: a planned drill, a real emergency, or misuse.

Drill, at least every 90 days and after any staff change: confirm the authorised list and the written procedure; sign in with each account on the current Conditional Access configuration and perform an administrative task; check no MFA or password-reset method points at an individual's device; check the device or key can reach the internet over two independent networks; and, after someone with access leaves, change the safe combinations. Regulated organisations can use the alert, the review and the drill records as the audit evidence that emergency access is governed.

Keep a contingency policy ready. A disabled Conditional Access policy that restores access for critical users during an identity-provider outage, written and tested in advance, is faster and safer than editing live policies under pressure.

Sources

Add LowCodeStacks as a preferred source on Google

Did this fix it?

Get the weekly email

New guides and updates from LowCodeStacks, every Tuesday. One email a week, no more.

From LowCodeStacks, Regina, SK, contact@lowcodestacks.com. You can unsubscribe any time, from the link in every email or in your privacy settings. See the Privacy notice.

Comments

No comments yet. Share what worked for you.

Sign in to comment. Comments show under a display name you choose, never your email.