Create two emergency access accounts

Azure Portal, Hands On15 minutesFreeSteps checked 13 November 2026By Cloud Hands On

In this task you'll create emergency access accounts.

If MFA breaks, a Conditional Access policy locks everyone out, or the only admins are on holiday, you need a way back in. Emergency access ("break-glass") accounts are two cloud-only Global Administrator accounts kept for exactly that.

They use the tenant's onmicrosoft.com domain (so they don't depend on your own domain or on-premises sync), have very long passwords or passkeys kept somewhere safe, are left out of Conditional Access policies that could lock them out, and are watched: any sign-in should raise an alert.

Example. Fernhill Cloud keeps two emergency accounts for each customer. Their passkeys are in two different safes, any sign-in raises a high-priority alert, and the on-call lead tests one of them every quarter.

Before you start

You need: Global Administrator. Time: 15 minutes.

Where to look

  1. Home
  2. Microsoft Entra ID
  3. Users
  4. + New user
  5. Create new user

Steps

  1. Open Users, then + New user, Create new user.
  2. Fill in User principal name (pick your onmicrosoft.com domain in the list next to it) and a clear Display name, such as Emergency access 1. Auto-generate password is ticked: use the eye or copy button to take the password and store it (or later a passkey) somewhere safe, split between two people if you can.
  3. On the Assignments tab, select Add role. In Directory roles, search for Global Administrator, tick it and select Select. Then Review + create and Create.The user list can take a minute to show the new account: select Refresh.
  4. Repeat for Emergency access 2.
  5. If you use Conditional Access, exclude both accounts from policies that could block them. Set up an alert on their sign-ins (for example through Log Analytics).
  6. Write down where the credentials are and test one account every few months.

Commands

# Create a cloud-only account (then give it Global Administrator, as in the task Give a user an Entra admin role)
az ad user create --display-name "Emergency access 1" --user-principal-name emergency1@<tenant>.onmicrosoft.com --password "<long random password>"

Watch out for

Cost
Free.
Security
These are the most powerful accounts you'll have. Use long random passwords or passkeys, store them offline, never use them for daily work, and alert on every sign-in.
Common mistakes
Using a normal person's account as the emergency account, syncing it from on-premises, or forgetting to exclude it from Conditional Access.

Clean up

  1. Users

If you created them only to practise, delete both accounts and then permanently delete them from Deleted users.

Words to know

Cloud-only
Created in Entra ID itself, not synced from an on-premises directory.
Break-glass
An account kept for emergencies, used only when normal access fails.

Tick off each step and track your progress in the guide.

Open this task in Azure Portal, Hands On

Keep going