Entra ID
The cloud side of hybrid identity - on-prem accounts synced up, then gated by Conditional Access, with one hard rule: never write a policy that can lock out the break-glass account.
What it is & why I use it
Entra ID is the cloud identity plane for AutomationLab. On-prem Active Directory is the source of authority; an identity-sync bridge projects those accounts into Entra so cloud services can authenticate against the same identities. On top of that, Conditional Access decides the terms under which access is actually granted - not just who you are, but from where, on what, and with what assurance.
I use it because modern access is not a binary "authenticated or not" - it is policy. Conditional Access is where "require a second factor," "only from a compliant device," and "block risky sign-ins" get expressed and enforced for cloud-facing identity.
How I use it in the lab
- Synced from on-prem. Accounts originate in on-prem AD and flow up through the sync bridge, so the same identity works across both worlds and authority stays on one side.
- Conditional Access as the gate. Policies express the conditions for access - factor requirements, device posture, blocking risky patterns - rather than trusting a password alone.
- Layered with the other controls. Conditional Access sits alongside the second factor and the zero-trust edge, so cloud access requires identity and conditions and the factors below it.
- A protected break-glass account. An emergency account is deliberately excluded from the policies that could lock everyone out, and is monitored precisely because it is exempt (see the gotcha).
Architecture
In action
Lessons learned & gotchas
- Test policies on a scoped group first. Rolling a new Conditional Access policy straight to all users is how tenant-wide lockouts happen. Pilot it on a small group, confirm the behaviour, then widen - the blast radius of an identity policy is everyone.
- Exclusions are security-relevant, not just convenience. Every account excluded from a protective policy is an exception to your own rules - so exclusions are kept few, deliberate, and monitored, never quietly accumulated.
- Authority on one side, enforcement on the other. Accounts are authoritative on-prem while access conditions are enforced in the cloud - keeping that split clear avoids "why did my change not take?" confusion about which system owns what.
Impact
Entra ID extends the lab's identity into the cloud and lets access be governed by conditions instead of a bare password. The lesson that outranks the rest is operational humility: the same policy that protects the tenant can lock you out of it, so you build the escape hatch first, test it, and only then turn the policy on for everyone.
Code & further reading
Any published policy notes are scrubbed of tenant, domain, usernames, and addresses before they go public.