Create two emergency access accounts
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
- Home
- Microsoft Entra ID
- Users
- + New user
- Create new user
Steps
- Open Users, then + New user, Create new user.
- 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.
- 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.
- Repeat for Emergency access 2.
- 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).
- 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
- 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