Microsoft Entra ID in Azure: The Complete Advanced Guide
A book-quality walkthrough of the identity service behind Azure and Microsoft 365: how people, apps, devices, and workloads prove who they are, how access is decided, and how to design, secure, govern, and operate an identity platform that lasts.
Imagine a large office tower with thousands of workers, visitors, delivery drivers, and robots. At the front desk, a security team checks identity cards, issues badges, decides which floors each badge opens, notices when a badge is used at a strange hour, and cancels badges when people leave. Every door in the tower trusts the badge system instead of checking identity on its own. Microsoft Entra ID is that front desk for the cloud. Whenever someone signs in to Azure, Microsoft 365, or thousands of other applications, Entra ID is the service that decides whether the person, program, or device is who it claims to be, and what it may do.
This guide teaches Entra ID from the beginning. Each new term is explained when it first appears, each major idea has an everyday comparison, and later chapters go deep into what architects and security engineers decide: how to structure a tenant, how sign-in really works, how to enforce multifactor authentication and Conditional Access, how to remove standing administrator privilege, how to replace stored secrets with managed identities, how to govern guests and access over time, and how to prepare for the retirements and mandatory changes arriving in 2026. No prior identity knowledge is needed.
1Identity Basics You Need First
Entra ID makes sense only when a few simple ideas are clear.
Identity
An identity is a digital record that represents something that needs access: a person, an application, a server, a phone, or a piece of automation. The identity has a name and attributes, and it can hold credentials, which are proofs such as passwords, security keys, or certificates. Everything in cloud security starts with knowing which identity is asking.
Authentication and authorization
Authentication answers the question “who are you?” It is the act of proving identity. Authorization answers “what are you allowed to do?” It is the act of checking permissions after identity is known. The two are separate steps, and confusing them is the root of many design mistakes.
At an airport, showing your passport at the counter is authentication. The boarding pass that lets you into one specific plane, and not any other, is authorization. A passport alone does not open every gate, and a boarding pass is worthless without a verified traveler.
Directory
A directory is a database that stores identities and their relationships: which users belong to which groups, which devices belong to whom, which applications exist. Older companies ran Active Directory on their own servers inside the office network. Entra ID is a directory built for the internet and the cloud, where users, applications, and devices may be anywhere.
Single sign-on
Single sign-on, abbreviated SSO, lets a person sign in once and then open many applications without typing credentials again. The applications trust the identity service, which vouches for the user. SSO improves security as well as comfort, because fewer passwords exist to be forgotten, reused, or stolen.
Principal
Any identity that can be given permissions, such as a user, a group, or an application identity.
Credential
The proof presented to show identity: a password, a code, a key, a certificate.
Token
A signed, short-lived digital pass issued after sign-in, which applications accept as proof.
Tenant
One organization’s dedicated instance of the identity service.
Role
A named bundle of permissions, assigned to principals.
Least privilege
The rule that every identity should hold only the access it needs, for only as long as it needs it.
Modern attackers rarely break through firewalls. They log in with stolen or guessed credentials. That is why identity is now called the new security perimeter.
2What Is Microsoft Entra ID?
Entra ID is Microsoft’s cloud identity and access management service.
Definition and history
Microsoft Entra ID is the cloud-based directory and identity platform that signs in users and applications and controls access to resources. It was previously named Azure Active Directory, often shortened to Azure AD. Microsoft renamed it in 2023 as part of the Entra product family. The functions are the same service under a new name, and you will still see the old name in older articles, tools, and some settings.
Not the same as classic Active Directory
Beginners often assume Entra ID is Active Directory running in Azure. It is not. Classic Active Directory Domain Services uses protocols such as Kerberos and LDAP and organizes computers in domains and organizational units. Entra ID uses web protocols such as OAuth 2.0, OpenID Connect, and SAML, and it is flat, with no organizational units and no group policy. The two can be connected, which is the subject of the hybrid identity chapter, but they are different technologies.
| Aspect | Active Directory Domain Services | Microsoft Entra ID |
|---|---|---|
| Where it runs | Servers you operate | Microsoft cloud service |
| Main protocols | Kerberos, NTLM, LDAP | OAuth 2.0, OpenID Connect, SAML, and related web standards |
| Structure | Forests, domains, organizational units | Flat tenant with groups and administrative units |
| Device management | Group Policy | Device registration or join plus Intune policy |
| Best for | Traditional on-premises servers and file shares | Cloud and software-as-a-service applications, modern apps |
Active Directory is the security office inside one company building, with its own rules and its own paper forms. Entra ID is a city-wide identity bureau that issues cards accepted by many buildings across many companies. Both can work together, but one serves a single building and the other serves the whole city.
What it provides
Sign-in and single sign-on
For Microsoft 365, Azure, and thousands of third-party and custom applications.
Multifactor and passwordless authentication
Extra proofs such as phone approvals, security keys, and passkeys that resist stolen passwords.
Conditional Access
A policy engine that decides at every sign-in whether to allow, require more proof, or block.
Role-based administration and privileged access
Fine-grained administrator roles with time-limited activation.
Identity for workloads
Managed identities and workload identity federation for programs that need access without stored secrets.
Governance
Access reviews, entitlement management, and lifecycle workflows that keep access tidy over time.
Entra is a product family, not a single service. It also includes products such as Entra External ID for customers and partners, Entra ID Governance, Entra Permissions Management, Entra Private Access, Entra Internet Access, and Entra Verified ID. This guide focuses on Entra ID itself.
Scale and availability
Entra ID runs as a globally distributed service with data centers across many regions, designed so that the failure of one location does not stop sign-ins. Customers do not size servers, apply patches, or schedule upgrades. The service handles very large volumes of authentications every day. This shared responsibility matters in planning: Microsoft operates the platform, while you remain responsible for configuration, policy, and the accounts and applications inside your tenant. Most real incidents come from the second part, not from failure of the platform itself.
3Entra ID in 2026: What Is Changing
A trustworthy guide must describe the service as it is now, including the dated changes that affect real tenants. Verify every date on Microsoft’s current pages before acting, because schedules shift.
Mandatory multifactor authentication
Microsoft is requiring multifactor authentication for Azure management. Phase 1 covers sign-ins to the Azure portal, the Entra admin center, and the Intune admin center, and began rolling out in the second half of 2024, with the Microsoft 365 admin center following in February 2025. Phase 2 began on 1 October 2025 and rolls out gradually. It covers create, update, and delete operations through the Azure command-line tools, Azure PowerShell, the Azure mobile app, infrastructure-as-code tools that use those clients, the control-plane REST interface, and the Azure SDK. Read operations do not require it. According to Microsoft’s documentation, workload identities such as managed identities and service principals are not affected, but user accounts used as service accounts are, and the page lists no exemptions for user accounts.
Microsoft’s page states that a Global Administrator could postpone Phase 2 until 1 July 2026. Because that date has now passed, check your tenant’s status. Automation that signs in as a regular user with a password will fail once enforcement reaches your tenant, so convert it to workload identities.
Other dated changes from Microsoft’s what’s-new page
| When | Area | Change | Action |
|---|---|---|---|
| May 2026 | Conditional Access | General availability of enforcing Conditional Access, such as multifactor, on every privileged role activation | Consider requiring a strong check at every activation |
| March 2026 | Passkeys | Synced passkeys and passkey profiles reached general availability, letting administrators target different requirements by group | Plan phishing-resistant sign-in for admins first |
| June 2026 | Authenticator | Blocking of rooted or jailbroken devices for work accounts becomes generally available | Communicate to users and support teams |
| June 2026 | Entra Connect | Hard-matching a new on-premises user to an existing cloud user that holds an Entra role is no longer allowed | Review sync practices for privileged accounts |
| July 2026 onward | Entra Connect | Notifications begin for a phased migration from Connect Sync to Cloud Sync | Assess readiness and feature gaps |
| November 2026 | Provisioning | SAP SuccessFactors basic authentication deprecated by SAP | Move provisioning to workload identity authentication |
Agents become identities
Microsoft introduced Entra Agent ID, which treats autonomous AI agents as first-class identities with owners called sponsors, lifecycle controls, and Conditional Access. The platform reached general availability in April 2026 according to Microsoft’s page, while the earlier agent registry in the Entra admin center was retired on 1 May 2026 in favor of Agent 365. Organizations building agents should treat them as identities that need governance, not as scripts.
Older programming interfaces retire
Microsoft has been retiring Azure AD Graph and the older PowerShell modules built on it, in favor of Microsoft Graph and the Microsoft Graph PowerShell tools. Older versions of the Azure command-line tools and Azure PowerShell needed updates because of the Azure AD Graph retirement. Treat any script that mentions the old module names as technical debt with a deadline, and check Microsoft’s announcements for the current status.
4Tenants, Directories, and Subscriptions
The relationship between a tenant and Azure subscriptions confuses nearly every beginner.
The tenant
A tenant is a dedicated, isolated instance of Entra ID that an organization receives when it signs up for a Microsoft cloud service. It holds that organization’s users, groups, applications, and policies. Each tenant has a unique identifier and at least one domain name, such as the company’s own domain. People often use the words tenant and directory interchangeably, and they refer to the same thing.
Subscriptions trust one tenant
An Azure subscription is a billing and resource container. Every subscription trusts exactly one tenant to provide identities and to hold the role assignments for its resources. A tenant can be trusted by many subscriptions. You can move a subscription to a different tenant, but the role assignments and managed identities do not carry over cleanly, so plan carefully.
flowchart TD
T["Entra ID tenant: users, groups, apps, policies"] --> MG["Management group hierarchy"]
MG --> S1["Subscription: production"]
MG --> S2["Subscription: development"]
MG --> S3["Subscription: shared services"]
S1 --> RG1["Resource groups and resources"]
S2 --> RG2["Resource groups and resources"]
T --> M365["Microsoft 365 services"]
T --> SAAS["Third party applications"]
T --> EXT["Guest users from other tenants"]
The tenant is the city’s citizen register. Each subscription is a separate building that accepts that register’s ID cards. A building can only recognize cards from one register, but one register can serve many buildings.
One tenant or several?
Single tenant
- One set of users, groups, and policies to govern
- Simple sharing and single sign-on across everything
- Lower administrative cost
- Consistent security policy
Multiple tenants
- Hard isolation for acquisitions, regulated units, or test purposes
- Separate administrators with no shared fate
- Duplicated policy, licensing, and monitoring effort
- Cross-tenant collaboration needs extra configuration
The usual guidance is to use one production tenant and create separate tenants only for strong reasons such as legal separation, a merger in transition, or a safe place to test tenant-wide settings. Many companies keep a small non-production tenant for experiments with Conditional Access and tenant settings, because mistakes at tenant level affect everyone.
Create Azure management groups to organize subscriptions, and assign Azure roles at that level instead of subscription by subscription. It keeps access rules short and consistent as the estate grows.
5The Objects in a Tenant
A tenant is made of a small number of object types. Knowing them makes the portal feel familiar.
Users
Employees and members, with attributes such as department and manager. Can be cloud-only or synchronized from on-premises.
Guest users
People from other organizations invited to collaborate, signing in with their own home identity.
Groups
Sets of users, devices, or other groups, used to assign access in bulk. Types include security groups and Microsoft 365 groups, and membership may be assigned or dynamic.
Applications and service principals
The definition of an application and its local identity in a tenant.
Managed identities
Automatically managed identities for Azure resources, with no secret to store.
Devices
Registered, joined, or hybrid joined computers and phones whose state can be used in access decisions.
Administrative units
Containers that limit an administrator’s reach to part of the directory, such as one region or school.
Custom domains
Company-owned names verified for sign-in addresses.
Groups and dynamic membership
Assigning access to groups instead of individuals is a foundation of manageable identity. Dynamic groups compute their membership automatically from user or device attributes, so that everyone in a department, or every managed laptop, joins the group without manual work. When an attribute changes, the person moves in or out. This relies on accurate attributes, so data quality in the directory becomes a security control.
Assigning permissions one person at a time is like handing out building keys individually and hoping to remember who has which. A group is a key ring labeled “Finance team”. Dynamic membership is a clerk who adds your key to the Finance ring when HR changes your department and removes it when you leave.
Administrative units and delegation
Not every administrator should control the entire tenant. Administrative units let you give a regional helpdesk the power to reset passwords only for users in its region. This supports least privilege and reduces the damage if a helpdesk account is compromised.
Leaving old users, stale guest accounts, and unused groups in the directory forever. Dormant identities are favorite targets, because nobody notices when they are misused. Remove or review them regularly.
Naming and attribute quality
Because dynamic groups, access packages, and lifecycle workflows depend on attributes, the directory is only as good as its data. Department, job title, manager, employee type, and country should come from the authoritative human resources source and be kept consistent. A typing mistake in a department name can quietly leave a person out of a group or put them in the wrong one. Agree a data standard, automate attribute flow from the source system where possible, and report on missing or inconsistent values regularly.
6Authentication Methods: From Passwords to Passkeys
How a person proves identity is the biggest factor in whether an account can be taken over.
The three kinds of proof
Authentication factors fall into three families: something you know, such as a password or PIN; something you have, such as a phone or a security key; and something you are, such as a fingerprint or face. Multifactor authentication combines at least two different families, so that stealing one is not enough.
Methods available in Entra ID
| Method | What it is | Strength |
|---|---|---|
| Password | A secret string typed by the user | Weak alone. Reused, guessed, phished, and leaked often |
| SMS or voice code | A code delivered by text or call | Better than none, but exposed to interception and SIM swapping |
| Authenticator app notification or code | An approval or time-based code in the Microsoft Authenticator app | Good, though approval fatigue attacks exist unless number matching is used |
| Hardware security key | A physical device using the FIDO2 standard | Phishing-resistant |
| Passkey | A cryptographic credential bound to a device, or synced, unlocked by biometric or PIN | Phishing-resistant |
| Windows Hello for Business | A device-bound credential unlocked by biometric or PIN | Phishing-resistant |
| Certificate-based authentication | A certificate on a smart card or device | Phishing-resistant, strong for regulated environments |
| Temporary Access Pass | A time-limited code issued by an administrator | For onboarding and recovery only |
Why phishing-resistant matters
Most multifactor methods can be defeated by a convincing fake sign-in page that relays the user’s code to the real service. Phishing-resistant methods, such as passkeys and security keys, tie the proof to the real website address, so a fake site simply cannot obtain a working response. Microsoft’s own what’s-new page shows heavy investment here: synced passkeys, passkey profiles, passkey registration campaigns, and a move toward letting users with passkeys sign in without a password.
A one-time code is like a secret handshake you can be tricked into performing for an impostor. A passkey is like a lock that opens only for the exact door it was made for. Showing it to a fake door produces nothing the impostor can reuse.
Authentication methods policy
Administrators control which methods are allowed and for whom through the authentication methods policy. Newer designs use passkey profiles to set different requirements for different groups, for example allowing only hardware-bound keys for administrators, while allowing synced passkeys for general staff. Combine this with registration campaigns that nudge users to enroll better methods.
Start phishing-resistant methods with administrators and other high-value accounts, then expand. A small, well-protected group yields a large security gain with little change management.
7Protocols and Tokens: OAuth, OpenID Connect, and SAML
Applications do not see your password. They receive tokens, which are issued through standard protocols.
Three standards
OAuth 2.0
A framework for authorization. It lets an application obtain limited access to a resource, such as an interface to read a calendar, on behalf of a user or on its own behalf.
OpenID Connect
A layer on top of OAuth that adds authentication. It tells the application who the user is by issuing an identity token.
SAML
An older, XML-based standard for sign-in to web applications, still common in enterprise software. The identity provider sends a signed assertion about the user to the application.
The tokens
| Token | Purpose | Lifetime |
|---|---|---|
| ID token | Tells the application who signed in | Short |
| Access token | Presented to an interface to prove permission to call it | Short, commonly about an hour |
| Refresh token | Lets the application get new access tokens without asking the user again | Long, but revocable and subject to policy |
Access tokens are signed by Entra ID and contain claims, which are statements such as the user’s identifier, the tenant, the application, the permissions granted, and the time of expiry. A receiving service checks the signature and the claims instead of calling the directory every time. This is why short lifetimes matter: a stolen access token works until it expires.
An access token is a day pass stamped by the front desk, valid for one building and a few hours. A refresh token is the receipt that lets you return to the desk for a new day pass without showing all your documents again, as long as the desk still considers you in good standing.
Continuous access evaluation
Because tokens live for a while, Microsoft added continuous access evaluation. Supporting services can react to critical events, such as a user being disabled, a password change, or a location change, and demand fresh authentication in near real time instead of waiting for tokens to expire. This narrows the window in which a stolen token is useful.
Treating token lifetime as the only control. A refresh token stolen from a device can persist for a long time. Combine device compliance requirements, continuous access evaluation, and token protection features where available.
8Internal Working: The Life of a Sign-In
Following one sign-in from start to finish shows where every control fits.
Step one: redirect to the identity provider
A user opens an application. The application sees no valid session and redirects the browser to the Entra ID sign-in endpoint, naming itself and the permissions it wants.
Step two: primary authentication
Entra ID identifies which tenant the user belongs to, usually from the sign-in name. It then verifies the first factor, such as a passkey or password. For federated or synchronized domains, this step may be delegated to an on-premises system, as described in the hybrid chapter.
Step three: policy evaluation
Now the policy engine takes over. Entra ID collects signals: who the user is, which group memberships apply, which application is requested, the device state, the network location, the client type, and the real-time risk assessed by Identity Protection. It evaluates every Conditional Access policy that applies and combines the outcome. The result may be allow, block, or allow only after more proof, such as multifactor authentication, a compliant device, or acceptance of terms.
Step four: token issuance
If all requirements are met, Entra ID issues tokens and the browser returns to the application. The application validates the tokens and creates its own session. Every step is written to the sign-in logs, which administrators can query later.
sequenceDiagram
participant U as User
participant A as Application
participant E as Entra ID
participant P as Policy engine
participant L as Sign in logs
U->>A: Open application
A->>U: Redirect to Entra sign in
U->>E: Present first factor
E->>P: Evaluate signals and Conditional Access
P-->>E: Require multifactor and compliant device
E->>U: Request second factor
U->>E: Complete second factor
E->>L: Record result and applied policies
E->>A: Issue ID and access tokens
A->>U: Signed in session
A sign-in is like entering a secure building. You show your card at the door, which is proof. A guard checks a list of rules about today’s visitors, your device, and your behavior, which is policy. If all is well you receive a visitor badge for a limited time, and the visit is written in a log.
When a user complains of being blocked or repeatedly prompted, open the sign-in log entry for that attempt. It lists which Conditional Access policies applied and whether each succeeded, failed, or was not applicable, which usually reveals the cause in minutes.
Where delays and failures hide
Most sign-in trouble is not in the first factor. It hides in the policy step, where a device is unmanaged, a location is not recognized, or a required method is not registered, and in the application step, where the app rejects a token because of a missing claim or an expired certificate. Knowing the four steps tells you which log to open first. If the sign-in log shows success but the user still cannot work, the problem is in the application. If it shows failure with a policy reason, adjust the policy or the user’s situation. If the attempt does not appear at all, the request never reached Entra ID.
9App Registrations, Enterprise Applications, and Service Principals
Two portal blades with similar names cause endless confusion. They are two views of two linked objects.
The application object
When a developer creates an app registration, Entra ID stores an application object in the tenant where it was created, called the home tenant. This object is the global blueprint. It describes the application’s name, identifiers, redirect addresses, the permissions it requests, and the credentials it uses to prove itself.
The service principal
For an application to be used in a tenant, a service principal must exist in that tenant. It is the local instance, and it is what actually receives role assignments, user assignments, consent grants, and Conditional Access. In the portal, service principals appear under enterprise applications. An application used in many tenants has one application object and one service principal per tenant.
| Object | Where shown | Purpose |
|---|---|---|
| Application object | App registrations | The definition: identifiers, requested permissions, credentials, redirect addresses |
| Service principal | Enterprise applications | The local identity in a tenant: access assignments, consent, policies, sign-in settings |
| Managed identity | Enterprise applications, filtered by type | A service principal whose credentials are managed automatically by Azure |
The application object is a franchise’s master recipe book kept at head office. The service principal is each local branch’s license and staff list. Branch managers, not head office, decide who works there and which customers are served.
Permissions and consent
Applications ask for permissions to call interfaces such as Microsoft Graph. There are two kinds. Delegated permissions let the application act as the signed-in user, limited to what that user can do. Application permissions let the application act as itself with no user, which is powerful and usually requires administrator consent. Consent is the act of approving what an application asks for.
Overly broad consent is a classic attack. A malicious application tricks a user into granting access to mail or files, and the attacker never needs the password. Restrict user consent to verified publishers and low-risk permissions, and use an admin consent workflow for everything else.
Credentials of applications
Applications prove themselves using client secrets, certificates, or federated credentials. Secrets are strings that expire and leak easily. Certificates are stronger. Federated credentials, covered in the workload identity chapter, remove stored secrets entirely. Set a short expiry on any secret, track expirations, and migrate to federation or managed identities wherever possible.
10Single Sign-On and Application Integration
Entra ID connects to thousands of applications. The method depends on what the application supports.
Ways to integrate
| Method | Used when | Notes |
|---|---|---|
| OpenID Connect or OAuth | Modern and custom applications | Preferred for new work |
| SAML | Many established enterprise and software-as-a-service products | Requires exchanging metadata and mapping claims |
| Password-based SSO | Older web applications with only a login form | A fallback; the identity service stores and fills credentials |
| Application proxy | On-premises web applications that must be reached from outside | Publishes internal apps securely without opening inbound firewall ports |
| Header or secure hybrid access partners | Legacy apps relying on headers or cookies | Bridges old apps to modern sign-in |
The application gallery
The gallery lists thousands of prebuilt integrations with step-by-step setup. Choosing a gallery application usually creates the service principal and pre-fills common settings, which saves time and errors. For custom applications, register the app and choose the protocol that the code supports.
Assigning access
User assignment required
Enable the setting that requires users to be assigned before they can sign in, so the application is not open to every account in the tenant.
Assign groups, not individuals
Group assignment keeps access aligned with business roles and pairs well with entitlement management.
App roles
Applications can define roles, such as reader and approver, which are assigned in the directory and delivered as claims in tokens.
SSO integration is like giving every shop in a shopping mall the ability to accept the mall’s membership card. Some shops have a modern card reader, which is OpenID Connect. Some have an older reader, which is SAML. A few only have a paper sign-in book, so the mall’s staff fills it in on your behalf, which is password-based SSO.
Keep a catalog of every enterprise application with an owner, the protocol in use, certificate expiry for SAML signing, and the group that grants access. Expired SAML certificates are a common cause of sudden outages.
11Conditional Access: The Policy Engine
Conditional Access is where Entra ID turns signals into decisions. It is the single most important control to understand.
The shape of a policy
Every Conditional Access policy follows an if-then pattern. The assignments say who and what the policy applies to. The access controls say what must happen. If a sign-in matches the assignments, the controls are enforced.
| Part | Options |
|---|---|
| Users | All users, selected users and groups, directory roles, guests, with exclusions |
| Target resources | All resources, specific applications, user actions such as registering security information |
| Conditions | Sign-in risk, user risk, device platform, location or network, client application type, device filters |
| Grant controls | Block, require multifactor, require authentication strength, require compliant device, require approved app, require terms of use |
| Session controls | Sign-in frequency, persistent browser session, app-enforced restrictions, continuous access evaluation settings |
Conditional Access is the airport security desk with a rulebook. Ordinary travelers on domestic flights pass quickly. Travelers going to sensitive destinations, carrying unusual luggage, or arriving from a flagged location face extra checks. The rulebook is evaluated for everyone, every time.
Policies worth having
Require multifactor for all users
The single biggest improvement for most tenants.
Require phishing-resistant strength for administrators
Use authentication strengths so that admin roles need passkeys or security keys.
Block legacy authentication
Older protocols cannot do multifactor and are heavily abused.
Respond to risky sign-ins and users
Require multifactor or password change when Identity Protection detects risk.
Require compliant devices for sensitive apps
Only managed, healthy devices reach sensitive data.
Control guest access
Require multifactor and terms of use for external users.
Safe rollout
Start in report-only mode
The policy is evaluated and logged but not enforced, showing who would be affected.
Review the impact
Check sign-in logs and the insights workbook for unexpected blocks and affected applications.
Pilot with a group
Enforce for a small friendly group first and gather feedback.
Roll out and monitor
Expand in waves and keep emergency accounts excluded in a controlled way.
Creating a policy that blocks everyone, including the administrator who made it. Always test with what-if tools, keep emergency access accounts, and never edit a tenant-wide policy without a second administrator watching.
Authentication strengths and session controls
Instead of simply requiring multifactor, a policy can require a named authentication strength, which is a set of allowed method combinations. Built-in strengths include basic multifactor, passwordless multifactor, and phishing-resistant multifactor, and custom strengths can be defined. Session controls shape how long a person stays signed in. A short sign-in frequency for administrators, and a longer one for low-risk applications on compliant devices, balances security with comfort. Too many prompts train users to approve anything, so aim for fewer, stronger checks.
Organizing policies so they stay understandable
Tenants with fifty overlapping Conditional Access policies become impossible to reason about. Use a clear naming convention that shows the target, the control, and the purpose, group policies by persona such as administrators, employees, guests, and workloads, and avoid creating a new policy for every complaint. Document the intent of each policy in its description, including the owner and the date of last review. Prefer fewer, broader policies with well-managed exceptions over many narrow ones, and retire policies that no longer apply. Clarity is itself a security control, because nobody can protect what nobody understands.
12Mandatory MFA for Azure: Preparing Your Tenant
Microsoft’s enforcement affects people and automation, and the automation is where surprises happen.
What is covered
| Phase | Covers | Operations |
|---|---|---|
| Phase 1 | Azure portal, Entra admin center, Intune admin center, and later the Microsoft 365 admin center | Any create, read, update, or delete sign-in |
| Phase 2 | Azure CLI, Azure PowerShell, Azure mobile app, infrastructure-as-code tools, control-plane REST interface, and Azure SDK | Create, update, and delete only. Read is not enforced |
Phase 2 is enforced at Azure Resource Manager, so any tool that signs in as a user to change resources is affected. Microsoft Graph interfaces are generally out of scope. Break-glass emergency accounts are included, and Microsoft recommends passkeys or certificate-based authentication for them. Workload identities and sync accounts are not affected. Guests satisfy the requirement either in their home tenant, passing the claim through cross-tenant settings, or in the resource tenant.
Preparation steps
Make sure multifactor is in place
Use a Conditional Access policy where licensed, or security defaults otherwise, or enforce through Azure Policy.
Find user-based automation
Search sign-in logs for non-interactive sign-ins by users to the Azure management clients. Each is a script or pipeline using a person’s account.
Convert to workload identities
Use managed identities or service principals with federated credentials. Replace code that sends a username and password directly, since that flow cannot satisfy multifactor.
Update tools
Use current versions of the command-line tools and PowerShell, which support the required sign-in behavior.
Fix emergency access
Give break-glass accounts a phishing-resistant method and test it.
Mandatory multifactor is like a bank requiring a second key for the vault. The tellers adapt quickly. The trouble comes from the night robot that used to open the vault with a single spare key. Each such robot needs its own authorized badge before the new rule starts.
Microsoft’s page said the Phase 2 postponement option ran until 1 July 2026, and that no opt-out exists afterward. If you postponed, treat enforcement as imminent or already active. Verify your tenant’s state in the Azure portal notifications and the published page.
13Identity Protection and Risk-Based Access
Not every sign-in is equally suspicious. Identity Protection scores risk so that policy can react.
Two kinds of risk
Sign-in risk
The likelihood that a particular sign-in is not the real owner, based on signals such as unfamiliar location, anonymous network, impossible travel, or password spray patterns.
User risk
The likelihood that an account is compromised, for example because its credentials appeared in a leak.
Risk levels are low, medium, or high. Conditional Access can use them directly. A common pair of policies requires multifactor for medium or high sign-in risk, and requires a secure password change for high user risk. Self-service remediation lets legitimate users clear their own risk by proving identity, reducing helpdesk load. This capability is part of the premium license tier.
Risk scoring is a bank noticing that your card, normally used in your home town, is suddenly used in another country within minutes. The bank does not block everything. It asks you to confirm. If your details were also found on a stolen list, it insists on replacing the card.
Working with detections
| Activity | Purpose |
|---|---|
| Review risky users and sign-ins | Find accounts needing attention and confirm or dismiss |
| Export risk data to a security tool | Combine identity signals with endpoint and network alerts |
| Tune and test policies | Use report-only mode before enforcing risk-based rules |
| Respond to workload identity risk | Detect leaked or unusual use of application credentials |
Risk-based policies work best on top of a strong baseline, not instead of one. Require multifactor for everyone, and use risk as the trigger for stronger steps such as password change or blocking.
14Roles: Entra Roles Versus Azure Roles
Two separate permission systems exist, and mixing them up leads to either blocked work or hidden over-permission.
| Aspect | Entra roles | Azure roles |
|---|---|---|
| Controls | The directory: users, groups, applications, policies, authentication methods | Azure resources: virtual machines, storage, networks, databases |
| Scope | Tenant, administrative unit, or single object | Management group, subscription, resource group, or resource |
| Examples | Global Administrator, User Administrator, Application Administrator, Security Reader | Owner, Contributor, Reader, and many service-specific roles |
| Managed in | Entra admin center | Azure access control pages |
The two are independent. A Global Administrator of the tenant does not automatically have access to Azure subscriptions, but can elevate access to manage all subscriptions through a special setting. This elevation is powerful and should be rare, audited, and removed after use.
Entra roles are the keys to the personnel office and the badge printer: who exists and how they prove it. Azure roles are the keys to the factory floors and machines. A chief of personnel does not automatically get into the factory, but can arrange to hand themselves a key, which must be noticed.
Principles for roles
Prefer narrow roles over Global Administrator
Dozens of built-in Entra roles exist. A password reset duty needs a helpdesk role, not full control. Keep Global Administrators to a very small number.
Assign to groups
Role-assignable groups allow access reviews and delegated membership management for roles.
Use custom roles for special cases
Compose exactly the permissions needed when no built-in role fits.
Separate daily and admin accounts
Administrators should use dedicated accounts for privileged work, never the account that reads email and browses the web.
Giving the Owner role at subscription level to many engineers for convenience. Owner can grant access to others and delete anything. Most people need Contributor on specific resource groups, or a narrower service role.
15Privileged Identity Management and Just-in-Time Access
The safest administrator permission is the one that does not exist until it is needed.
Eligible versus active
Privileged Identity Management, usually called PIM, turns permanent role assignments into eligible ones. An eligible administrator holds no power by default. When a task arises, the person activates the role for a limited time, perhaps one or two hours, after meeting requirements such as multifactor authentication, a written justification, a ticket number, or approval by another person. When time expires, the power disappears. All activations are logged and can trigger alerts.
flowchart LR
E["Eligible administrator: no standing power"] --> R["Request activation with reason"]
R --> C{"Requirements met?"}
C -- "MFA and approval" --> A["Active for limited time"]
C -- "No" --> D["Denied and logged"]
A --> X["Time expires: role removed"]
A --> L["Activation recorded in audit log"]
Standing privilege is a master key hanging on your belt all year. Just-in-time access is a key stored in a safe: you sign for it, use it for an hour, and return it. Anyone who steals your belt gets nothing.
What PIM covers
Entra roles
Activate administrator roles for the directory.
Azure resource roles
Activate Owner or Contributor on subscriptions and resource groups.
Privileged access groups
Make membership of a group, which itself carries roles, time-limited.
Access reviews of roles
Regularly confirm that eligible assignments are still needed.
Microsoft’s what’s-new page lists general availability, in May 2026, of enforcing Conditional Access, such as multifactor authentication, on every PIM activation. This closes a gap where a user who already satisfied multifactor earlier in a session could activate roles without a fresh strong check. PIM requires the governance-level premium licensing, so confirm what your agreement includes.
Begin by making all Global Administrator assignments eligible, keeping only two emergency accounts permanent. Then work down the list of high-impact roles. Each conversion removes standing privilege and shows how little permanent access most people truly need.
Approval, alerts, and reviews around PIM
The strongest PIM setups pair activation with oversight. Sensitive roles require approval from a named group, and notifications go to the security team on each activation. Alerts highlight roles assigned outside PIM, roles that are never used, and too many people holding the same role. Periodic reviews remove eligible assignments that are no longer justified. Over time, the data shows which roles are truly used and which can be narrowed, turning a one-off project into a continuous reduction of risk.
16Workload Identities: Managed Identities and Federation
Programs need identities too, and the best program identity has no secret to steal.
The secret problem
For years, applications authenticated with client secrets stored in configuration files, build systems, and vaults. Secrets expire, get copied into tickets, and are discovered in repositories. A leaked secret works from anywhere until someone notices. Workload identity features exist to eliminate this class of risk.
Managed identities
A managed identity is an identity that Azure creates and manages for a resource such as a virtual machine, a web app, a function, or a container app. The resource asks the platform for a token, and the platform gives one without any password. There are two types.
| Type | Lifecycle | Best for |
|---|---|---|
| System-assigned | Tied to one resource and deleted with it | A single resource with its own needs |
| User-assigned | A standalone resource that can be attached to many resources | Shared identity across several resources, or pre-granted access before deployment |
Workload identity federation
Programs running outside Azure, such as pipelines on a code platform or workloads in another cloud or a Kubernetes cluster, can use federated credentials. You configure Entra ID to trust tokens from an external identity provider that meet stated conditions, such as a particular repository and branch. At run time, the program presents the external token and exchanges it for a short-lived Entra token. No secret is stored anywhere.
flowchart LR
EXT["External workload: pipeline or cluster"] --> TOK["Gets signed token from its own platform"]
TOK --> EX["Presents token to Entra ID"]
EX --> V{"Matches federated credential trust?"}
V -- Yes --> AT["Short lived Entra access token"]
V -- No --> DN["Rejected"]
AT --> RES["Azure resources and Graph"]
A client secret is a spare house key copied and left with contractors. A managed identity is a lock that recognizes the contractor’s van by itself. A federated credential is a reception desk that accepts a verified letter from the contractor’s head office, then issues a visitor pass that lasts only for the visit.
Governing workload identities
Inventory and ownership
Every service principal should have a named owner. Orphaned application identities with powerful permissions are a leading source of unnoticed risk.
Conditional Access for workloads
Policies can restrict service principals by location, and risk detection covers leaked credentials for them, with premium licensing.
Short secret lifetimes
Where a secret cannot be avoided, set short expiry and alert before expiration.
Treat the phrase “we have a service account user with a password” as a task to fix. With mandatory multifactor for Azure management now applying to user accounts used as service accounts, converting them to workload identities is both a security and a reliability job.
17Hybrid Identity: Connecting On-Premises Active Directory
Most established companies run both worlds, and the bridge between them deserves careful design.
Synchronization
Microsoft Entra Connect Sync is a server-based tool installed on premises that copies users, groups, and selected attributes from Active Directory to Entra ID. Microsoft Entra Cloud Sync is a lighter alternative using lightweight agents and cloud-based configuration, supporting multiple disconnected forests. Microsoft’s what’s-new page says notifications begin in July 2026 for a phased migration from Connect Sync to Cloud Sync, with customers needing advanced features or having large directories not in the first waves. Review feature parity before planning.
Three sign-in options
| Option | How passwords are checked | Considerations |
|---|---|---|
| Password hash synchronization | A hash of a hash of the password is synchronized, and Entra ID checks sign-ins in the cloud | Simplest and most resilient, enables leaked-credential detection, works even if on-premises systems are down |
| Pass-through authentication | Entra ID passes the check to an on-premises agent | Passwords never stored in the cloud, but depends on on-premises availability |
| Federation | A separate federation service issues the sign-in assertion | Most complex and a larger attack surface; used for special requirements such as certain smart card scenarios |
Microsoft generally recommends password hash synchronization, optionally with seamless single sign-on, for most organizations, and treats federation as the option to move away from when possible.
Synchronization is a courier copying the staff list from the old office to the new city bureau every few minutes. Password hash sync gives the bureau a sealed fingerprint of each person so it can verify them itself. Pass-through authentication phones the old office each time. Federation sends visitors back to the old office to be stamped before they can enter.
Operational care
Protect the sync server
It holds the keys to both directories. Treat it as a tier-zero system, patched, minimally accessed, and monitored.
Watch sync health
Use health monitoring to alert on failures, stale synchronization, and attribute conflicts.
Mind matching rules
Microsoft’s what’s-new page says from June 2026 a new on-premises user can no longer be hard-matched to an existing cloud user holding an Entra role. Confirm this affects how you merge accounts.
Keep privileged accounts cloud-only
Administrators of the cloud should not be synchronized from on-premises, because a compromise of on-premises systems would then compromise the cloud.
Assuming synchronization is a one-time project. It is a production service. Attribute errors, expired agents, and stale servers quietly cause access problems or security gaps for years.
Planning a move to cloud-first authentication
Organizations that still federate sign-in often run a federation farm, load balancers, certificates, and proxy servers, all of which can fail or be attacked. Moving to password hash synchronization is usually a staged process: enable synchronization, test with a pilot group, verify that all applications and policies work, switch the domain to managed authentication, and later decommission the federation servers. Keep a rollback plan and communicate changes to support teams. The reward is fewer servers, fewer outages, and access to cloud-based detections such as leaked credentials.
18External Collaboration: Guests, B2B, and Customer Identity
Business happens across organizations. Collaboration should not mean losing control.
B2B collaboration
Business-to-business collaboration lets you invite people from other organizations as guest users. They sign in with their own work identity, or with a one-time code or social account where allowed, and receive access to your applications and documents. You never manage their passwords. Their account lifecycle remains with their home organization, which is both an advantage and a risk, since you may not know when they leave that company.
Cross-tenant access settings
Inbound and outbound rules
Decide which external organizations may access your resources, and which of your users may go to which external tenants.
Trust claims
Choose whether to accept multifactor and device compliance claims from a partner’s tenant, avoiding double prompts while keeping the requirement.
Tenant restrictions
Limit which external tenants your own users may sign in to from your network or devices, preventing data movement to personal tenants.
Customer-facing identity
For apps used by customers, Microsoft Entra External ID provides sign-up, sign-in, and profile management at large scale, separate from the workforce tenant. It supports social accounts, branded experiences, and customizable flows. Keep customer identities out of the workforce tenant, since their security and lifecycle needs are different.
Guests are visitors who bring their own company badge and receive a limited visitor pass in your building. Cross-tenant settings are the reception rules about which companies’ badges you accept. External customer identity is the separate public membership desk for shoppers, not employees.
Letting guests accumulate for years. A contractor who finished in 2022 may still hold access to a team site. Use access reviews and entitlement management with expiry for every guest.
19Identity Governance: Reviews, Entitlements, and Lifecycle
Access tends to grow and never shrink. Governance is the discipline that makes it shrink.
Entitlement management
Bundles of access called access packages that users request, with approvals, expiry, and automatic removal.
Access reviews
Scheduled campaigns where managers, owners, or users themselves confirm whether access is still needed, with automatic removal of unconfirmed access.
Lifecycle workflows
Tasks that run at joiner, mover, and leaver events: create accounts, send welcome messages, adjust groups, disable accounts.
Privileged access governance
PIM and reviews that keep administrator access minimal.
The joiner, mover, leaver cycle
Joiner
A new hire appears from the human resources system and receives birth-right access through dynamic groups and a starter access package.
Mover
A change of department changes dynamic group membership, removes old access, and offers new packages.
Leaver
On the last day, accounts are disabled, sessions revoked, access removed, and manager and mailbox actions started.
Governance is the building manager who gives new staff a standard set of keys, adds specific keys on request with an expiry date, asks every quarter whether each key holder still needs their keys, and collects everything on the last day.
These capabilities require governance-level licensing in addition to the premium tiers. Even without them, you can adopt the habit using groups, manual reviews, and consistent offboarding. The tooling automates the habit, and the habit matters more than the tooling.
Start with the highest-risk population, which is guests and privileged roles. Reviewing a few hundred accounts well beats reviewing everything poorly and teaching reviewers to approve without reading.
Making reviews meaningful
Reviews fail when reviewers cannot tell what they are approving. Show them clear names, last sign-in dates, and the reason access was granted. Choose reviewers who actually know the work, such as managers and resource owners, rather than a central team that guesses. Set a sensible default for unanswered reviews, usually removal for guests and privileged access. Keep campaigns short and focused, and report the results to leadership. When people see that access truly disappears, the process earns respect and participation rises.
20Devices in Entra ID
Identity is stronger when the device is known and healthy.
Three device states
| State | Meaning | Typical use |
|---|---|---|
| Registered | A personal device known to the directory, signed in with a work account | Bring-your-own-device phones and laptops |
| Joined | A company-owned device joined directly to Entra ID | Cloud-first organizations with no on-premises domain |
| Hybrid joined | A device joined to on-premises Active Directory and registered in Entra ID | Estates with existing domain-joined computers |
Compliance and Conditional Access
Device management with Intune evaluates devices against compliance rules, such as disk encryption, a minimum operating system version, and active protection. A Conditional Access policy can then demand a compliant device before allowing access to sensitive data. The result links user, device, and application in one decision. Microsoft’s June 2026 note says the Authenticator app blocks rooted and jailbroken devices for work accounts, which adds a further device-health signal.
A trusted person carrying a stolen, malware-infected phone is like a trusted employee arriving with a suitcase that might hide anything. Device checks inspect the suitcase as well as the person’s badge.
Begin by requiring compliant devices for administrators and for the most sensitive data. Broad enforcement comes later, after enrollment is mature and support teams are ready for exceptions.
21Licensing Tiers
Features are gated by license. Knowing the tiers prevents design on features you do not own. Always check Microsoft’s current licensing pages, as bundles change.
| Tier | What it adds | Typical fit |
|---|---|---|
| Free | Core directory, user and group management, basic single sign-on, security defaults | Small tenants and Azure-only use |
| Premium P1 | Conditional Access, dynamic groups, self-service password reset with writeback, hybrid features, application proxy | Most organizations |
| Premium P2 | Identity Protection risk policies, Privileged Identity Management | Organizations with strong privilege and risk needs |
| ID Governance | Entitlement management, access reviews at scale, lifecycle workflows | Regulated and large organizations |
| Suite offerings | Combined bundles that add network access, permissions management, and verified identity features | Broad zero-trust programs |
Licensing tiers are like floors of a security building. The ground floor gives you a door and a lock. Higher floors add cameras, guards, and records. You pay for what you use, and you must not plan to use the camera room when you only rented the ground floor.
Licensing habits
Map features to need
List the controls you require, such as risk-based access and privileged activation, and confirm the tier for each.
License the users who benefit
Many features need licenses for users in scope. Plan scopes so that policy coverage matches licensed population.
Remove license waste
Reclaim licenses from leavers and unused accounts, using group-based licensing for automation.
22Monitoring: Sign-In Logs, Audit Logs, and Workbooks
An identity system without logs is a locked door with no camera.
The core logs
| Log | Records | Use |
|---|---|---|
| Interactive sign-ins | Sign-ins where a person supplied a factor | Troubleshooting, anomaly hunting |
| Non-interactive sign-ins | Token renewals and background activity by clients on behalf of users | Finding scripts and silent token use |
| Service principal sign-ins | Application and workload sign-ins | Tracking automation and application abuse |
| Managed identity sign-ins | Sign-ins by managed identities | Confirming resource access |
| Audit logs | Changes to the directory: roles, users, policies, applications | Change tracking, investigations, compliance |
| Provisioning logs | Actions by provisioning to connected applications | Diagnosing user lifecycle sync |
Portal retention is limited, commonly seven days on the free tier and thirty days on premium. For longer retention and richer analysis, send logs through diagnostic settings to a Log Analytics workspace, a storage account, or an event hub. In a workspace, you can write alerts for events such as new Global Administrator assignments, changes to Conditional Access, credential additions to applications, and spikes in failed sign-ins.
flowchart LR
ENT["Entra ID logs"] --> DS["Diagnostic settings"]
DS --> LAW["Log Analytics workspace"]
DS --> ST["Storage account for archive"]
DS --> EH["Event hub to SIEM"]
LAW --> AL["Alerts on high risk changes"]
LAW --> WB["Workbooks and reports"]
Sign-in logs are the door camera showing who entered. Audit logs are the maintenance book showing who changed the locks. Both must be sent to an archive that burglars cannot reach, and someone must watch for suspicious entries.
Alerts worth having
New privileged role assignment outside PIM, new credential on a high-privilege application, change or deletion of a Conditional Access policy, emergency account sign-in, and impossible travel for administrators.
Any sign-in to a break-glass account should create an immediate high-severity alert. These accounts should almost never be used, so every use deserves attention.
Building a short monitoring routine
Daily, glance at high-severity alerts such as emergency account use and risky administrator sign-ins. Weekly, review failed sign-ins by application, new application credentials, and changes to policies. Monthly, review the secure score, expiring certificates and secrets, guests added, and unused privileged roles. Quarterly, test emergency access and review the Conditional Access policy list for exclusions that no longer make sense. A routine measured in minutes per day catches the quiet changes that attackers rely on you not noticing.
23Emergency Access and a Security Baseline
A strong identity design includes a plan for the day the normal door is locked.
Emergency access accounts
Emergency access accounts, often called break-glass accounts, are cloud-only accounts holding the highest role, intended for the rare day when normal administrators are locked out by a misconfigured policy, a failed multifactor service, or an outage of the federation system. Keep at least two. Name them clearly, give them long random passwords stored securely in separate places, and, importantly, give them a phishing-resistant method because mandatory multifactor now applies to them as well. Microsoft recommends passkeys or certificate-based authentication for these accounts.
Exclude them carefully
Exclude them from policies that could lock them out, but protect them with at least one dedicated policy that requires a strong method, and alert on every use.
Test regularly
Sign in with each account on a schedule and record the result. An untested emergency account is a hope, not a control.
Keep them out of daily life
They never read email, never serve as service accounts, and never act as a convenience login.
Break-glass accounts are the fire axe behind the glass. You hope never to use them, you check that the glass and the axe are still there, and the moment someone breaks the glass, an alarm rings.
A baseline checklist
Multifactor for all, phishing-resistant for admins
Enforced through Conditional Access and authentication strengths.
Legacy authentication blocked
Verify through sign-in logs that no important system still relies on it.
Standing privilege removed
Eligible assignments with approval and short activation.
Restricted consent and registration
Admin consent workflow for risky permissions, and controls on who may register applications.
Logs retained and monitored
Diagnostic settings, alerts, and regular review.
Secure score reviewed
Use the built-in recommendations as a living to-do list.
One secondary source listed 1 July 2026 as a date for deprecating self-service app registration, but its other dates conflicted with each other, so I could not confirm it from Microsoft’s own pages. Whatever the date, restricting who can register applications is good practice. Verify before relying on any single date.
24Identity for AI Agents
Software that acts on its own needs an identity, an owner, and limits, just like a person.
Why agents are different
An autonomous agent may call many services, read data, and take actions without a person approving each step. If it shares a developer’s credentials or a broad service account, nobody can tell what it did, or limit what it may do. Microsoft Entra Agent ID gives each agent its own identity in the directory, with a sponsor accountable for it, lifecycle controls, and eligibility for Conditional Access. According to Microsoft’s what’s-new page, the platform became generally available in April 2026, uses OAuth 2.0, and supports agent protocols. It also notes that sponsorship can transfer to a manager automatically through lifecycle workflows when a sponsor leaves, and that Conditional Access protections for agent accounts are in preview from June 2026.
Imagine a robotic assistant in your office. If it carries your own badge, every door it opens looks like you did it, and it can go anywhere you can. If it has its own badge, a named supervisor, and a limited list of doors, you always know who did what, and you can switch off the badge when the job ends.
| Control | Purpose for agents |
|---|---|
| Unique identity per agent | Clear attribution in logs and ability to revoke access individually |
| Named sponsor | A human accountable for the agent’s purpose and lifecycle |
| Least-privilege permissions | Narrow scopes instead of inherited user rights |
| Conditional Access and risk | Restrict by location, device context, and detected risk |
| Lifecycle and expiry | Retire agents that are unused or orphaned |
Microsoft’s page says the earlier agent registry blades in the Entra admin center were retired on 1 May 2026 in favor of Agent 365, and that the registry interface is deprecated, with agents registered through it needing re-registration. Check current documentation before building on any agent registry interface.
25Cleaning Up Legacy: Old Protocols, Modules, and Libraries
Every tenant carries technical debt from the Azure AD years. A planned cleanup avoids deadline emergencies.
| Legacy item | Replacement | Why |
|---|---|---|
| Legacy authentication protocols such as basic authentication for mail clients | Modern authentication with OAuth 2.0 and multifactor | Legacy protocols cannot do multifactor and are heavily attacked |
| Azure AD Graph interface | Microsoft Graph | Microsoft is retiring the old interface, so applications and older tool versions must be updated |
| Older directory PowerShell modules | Microsoft Graph PowerShell | The old modules depend on retired interfaces |
| Older authentication libraries | Current Microsoft Authentication Library versions | Older libraries lack modern protections and are unsupported |
| Per-user multifactor and old self-service password reset policies | Conditional Access and the unified authentication methods policy | One policy surface is easier to manage and audit |
| Client secrets for applications | Managed identities, federated credentials, or certificates | Removes stored secrets |
| Federation servers | Cloud authentication with password hash synchronization | Fewer servers to defend and fewer outages |
A cleanup method
Discover usage from logs
Sign-in logs show which clients and protocols are actually in use, and by which accounts and applications.
Use the built-in recommendations and reports
Entra surfaces recommendations and retirement notices that point to specific affected applications.
Assign owners and dates
Each finding gets an owner and a target date earlier than Microsoft’s.
Block, then retire
Once usage drops to zero, enforce a block so it cannot return.
Retiring legacy is like replacing the old wiring in a house. You trace which rooms use which circuits, rewire one room at a time, and only remove the old cable when the lights stay on everywhere. Doing it after the inspector sets a deadline is always more expensive.
Subscribe to the Entra release notes and message center announcements and review them monthly. Dated changes appear there first, and a small monthly habit prevents most surprises.
26Patterns and Anti-Patterns
Experience from many tenants shows recurring good and bad designs.
Problem
Administrators hold permanent powerful roles, and their daily accounts are also used for email and browsing.
Approach
Create separate cloud-only administrator accounts, make roles eligible through PIM with multifactor and approval, require phishing-resistant authentication strength for those accounts, and keep two monitored emergency accounts.
Result
A phished daily account yields no administrator power, and every elevation is justified, time-limited, and logged.
Problem
Pipelines and applications use stored secrets that expire unexpectedly and leak occasionally.
Approach
Use managed identities for Azure-hosted workloads and federated credentials for external pipelines, scoping Azure roles to the narrowest resource group.
Result
No secrets to store or rotate, and a stolen configuration file contains nothing usable.
Problem
Access accumulates as people change roles and external partners come and go.
Approach
Drive access through groups and access packages with expiry, run recurring access reviews on guests and privileged groups, and automate leaver tasks.
Result
Access reflects current duties and shrinks automatically unless re-confirmed.
Problem
A shared user account with a password is used by a pipeline to deploy to Azure, and is excluded from multifactor policies “because it is a service.”
Why It’s Harmful
A single leaked password grants full deployment power. Microsoft’s mandatory multifactor now applies to such user accounts, so the pipeline will also fail.
Correct Approach
Use a workload identity with federated credentials and least-privilege Azure roles.
Problem
Conditional Access policies exclude large groups of users or whole applications to “fix” a complaint, and exclusions are never reviewed.
Why It’s Harmful
Exclusions become permanent holes, and attackers search for exactly those accounts and apps.
Correct Approach
Keep exclusions minimal, documented, time-limited, and reviewed, and fix the root cause of the complaint.
27Real-World Scenarios
Four short stories show how the controls combine.
Scenario one: a software company facing mandatory multifactor
A software company discovered that its deployment pipelines signed in to Azure as three shared engineer accounts. Sign-in logs showed non-interactive activity to the management clients. The team created service principals with federated credentials for each pipeline, scoped roles to specific resource groups, retired the shared accounts, and updated the command-line tools. When enforcement reached the tenant, nothing broke, while a neighboring team that postponed the work saw its releases fail.
Scenario two: a hospital group with hybrid identity
A hospital group kept Active Directory for clinical systems and used Entra ID for email and collaboration. It moved from federation to password hash synchronization, kept the synchronization server in a protected tier, required compliant devices for patient-data applications, and made all administrator accounts cloud-only with eligible roles. An outage of the on-premises federation system no longer stopped staff from signing in to cloud applications.
Scenario three: a consulting firm with many guests
A consulting firm collaborated with hundreds of client staff. It adopted access packages for each client project with automatic expiry, required multifactor from guests while accepting trusted claims from partner tenants, and ran quarterly reviews where project owners confirmed continued need. The number of active guests fell by more than half within a year, and onboarding became faster because requests followed a standard path.
Scenario four: a retailer recovering from a phishing attack
A retailer’s employee was phished and an attacker used a stolen token to read mail. The retailer then required phishing-resistant authentication for administrators and finance staff, enforced device compliance for mail and files, enabled continuous access evaluation, restricted user consent for applications, and routed identity logs to a monitored workspace with alerts for new inbox rules and new application credentials. A later attempt triggered a risk-based block within minutes.
28Best Practices and Common Mistakes
A quick reference of what experienced identity teams do and what they avoid.
Do
- Require multifactor for everyone, and phishing-resistant methods for administrators
- Deploy Conditional Access in report-only mode first, then enforce in waves
- Make privileged roles eligible and time-limited through PIM
- Use managed identities and federated credentials in place of secrets
- Assign access through groups, packages, and expiry
- Keep two tested and monitored emergency accounts
- Send identity logs to a workspace and alert on high-risk changes
- Review Microsoft’s release notes and retirement notices every month
Avoid
- Many permanent Global Administrators
- User accounts with passwords acting as service accounts
- Large, permanent exclusions from Conditional Access
- Unrestricted user consent to applications
- Synchronizing privileged cloud administrators from on premises
- Leaving guests, stale users, and old applications forever
- Editing tenant-wide policy without testing or a second pair of eyes
- Ignoring dates published for retired interfaces and tools
A sensible first ninety days
For a tenant with weak controls, the first month should secure the highest-value accounts: create emergency accounts, require multifactor for administrators, and block legacy authentication in report-only mode before enforcing. The second month should widen coverage: multifactor for all users, passkey registration for administrators, restricted consent, and logging to a workspace. The third month should reduce standing power and secrets: PIM for roles, conversion of user-based automation to workload identities, and the first access reviews of guests. Each step is valuable on its own and makes the next safer.
29Troubleshooting Playbook
Most identity problems fall into a few families. Work through them in order, and use the logs first.
| Symptom | Likely cause | First action |
|---|---|---|
| User blocked unexpectedly | A Conditional Access policy requirement not met | Open the sign-in log entry and read the Conditional Access tab |
| Repeated multifactor prompts | Short sign-in frequency or token not persisting | Review session controls and browser settings |
| Script fails to sign in after enforcement | User-based automation hitting mandatory multifactor | Move to a service principal or managed identity and update tools |
| Application returns an access denied message | User not assigned, missing consent, or missing role | Check assignment, consent grants, and app roles on the service principal |
| SAML application suddenly fails | Expired signing certificate or mismatched claims | Check certificate expiry and claim mapping |
| New on-premises user not in the cloud | Synchronization error or filtered out of scope | Check sync health, errors, and scope rules |
| Guest cannot access a resource | Cross-tenant settings, policy conflicts, or no invitation redeemed | Review inbound settings and the guest’s sign-in log |
| Locked out of all administrator roles | Misconfigured policy or lost second factor | Use an emergency account and then correct the policy |
flowchart TD
S["User cannot sign in or reach app"] --> Q1{"Sign in attempt appears in logs?"}
Q1 -- No --> F1["Check network, DNS, domain, and sync status"]
Q1 -- Yes --> Q2{"Failure at authentication step?"}
Q2 -- Yes --> F2["Check method registration, lockout, password, and TAP"]
Q2 -- No --> Q3{"Conditional Access failed?"}
Q3 -- Yes --> F3["Read policy result, device state, location, risk"]
Q3 -- No --> Q4{"App denies after sign in?"}
Q4 -- Yes --> F4["Check assignment, consent, app roles, certificate"]
Q4 -- No --> F5["Check token claims and application configuration"]
Tools that help
What-if for Conditional Access
Simulates a user and context to show which policies would apply, before or after a change.
Sign-in and audit logs
The first stop for almost every problem, with correlation identifiers for support cases.
Insights workbooks
Show the effect of policies across the tenant, including report-only results.
When opening a support case, include the correlation identifier, request identifier, timestamp, and user from the sign-in log. These details let engineers trace the exact event quickly.
30Frequently Asked Questions
Short answers to questions that beginners and architects ask most often.
31Summary and Key Takeaways
Microsoft Entra ID is the identity control plane for Azure, Microsoft 365, and thousands of other applications. Good outcomes come from strong authentication, careful policy, minimal standing privilege, workload identities without secrets, and steady governance.
- Identity is the perimeter. Attackers log in, so authentication strength and policy decide most outcomes.
- Tenant and subscription differ. One tenant provides identity for many subscriptions; plan structure early and prefer one production tenant.
- Tokens carry trust. Understand OAuth, OpenID Connect, SAML, and token lifetimes, and use continuous access evaluation.
- Conditional Access is the engine. Start in report-only mode, require multifactor for everyone, and phishing-resistant strength for administrators.
- Mandatory multifactor is here. Azure management clients enforce it for user accounts, so convert user-based automation to workload identities.
- Remove standing privilege. Use PIM, separate admin accounts, narrow roles, and tested emergency accounts.
- Eliminate secrets. Use managed identities and federated credentials, and own every service principal.
- Govern over time. Use access packages, reviews, and lifecycle workflows, monitor logs, and track Microsoft’s retirement notices monthly.