Microsoft Entra ID vs Microsoft AD FS

Entra ID fits organizations whose sign-in already runs on Microsoft 365 or Azure, and AD FS is mainly for keeping an existing on-premises federation running during a migration. When neither suits a team that must run sign-in itself, Keycloak or authentik is the self-hosted route to plan.

On this page

Microsoft Entra ID vs Microsoft AD FS: which one fits your sign-in estate

For most Microsoft 365 and Azure estates, Microsoft Entra ID is the platform to plan for, and AD FS is a bridge you keep only while applications are migrated. Microsoft's AD FS overview states that instead of upgrading to the latest version of AD FS, Microsoft highly recommends migrating to Entra ID. Entra ID Free is included with Microsoft cloud subscriptions such as Azure and Microsoft 365 and provides MFA, SSO to SaaS apps, basic reports and self-service password change. Paid tiers add capabilities beyond Free, with Entra ID P1 listed from $7.00 per user per month on an annual commitment (Microsoft Entra pricing page) and included in Microsoft 365 E3 and Business Premium. Check which of these your current licenses already cover before you price a move.

AD FS fits when a federation server is already in place and relying parties cannot move yet. Microsoft describes AD FS as extending single sign-on to internet-facing applications for customers, partners and suppliers, and extranet access requires the Web Application Proxy role service. Microsoft's migration guidance says to move applications that use SAML and OpenID Connect first, while applications on older protocols are integrated through Application Proxy or Secure Hybrid Access partners. Run the AD FS Migration Readiness Script on the AD FS server to see which apps are ready, then compare the results with the AD FS application activity report in Entra ID to find the apps that still send sign-ins to your farm.

The decision turns on three inventories to finish before you choose. First, the applications: list every relying party with its protocol and owner, because SAML and OpenID Connect apps move most easily. Second, the MFA setup: AD FS accepts third-party MFA providers through an extensible mechanism with no certification program, so confirm what your provider needs and what Entra MFA would replace. Third, the infrastructure you intend to keep running: every AD FS and Web Application Proxy server must join the same AD DS domain, and each relying party must receive the new certificate whenever the token-signing certificate changes, or its sign-ins fail. Those answers show whether you migrate, retire AD FS or keep it running for a defined period.

Which sign-in scenario points to which option

This table maps common sign-in scenarios to the better fit between Microsoft Entra ID and Microsoft AD FS, and shows where Keycloak or authentik fits instead. Each reason uses published capability and requirement facts, so confirm details in your own tenant, farm and licensing. Microsoft recommends moving AD FS users to Entra ID, so self-hosting usually wins only when data location or non-Microsoft and Linux estates lead.

Sign-in scenarioBetter fitReason
Microsoft 365 and Azure sign-in onlyMicrosoft Entra IDEntra ID Free comes with Microsoft cloud subscriptions such as Azure and Microsoft 365, with MFA and SaaS SSO included.
AD FS farm serving many relying partiesMicrosoft Entra ID, moved in stagesMicrosoft recommends moving off AD FS to Entra ID. Move SAML and OpenID Connect apps first; older protocols go through Application Proxy or partners.
Partner extranet access through Web Application ProxyKeycloak, with partners on OIDC or SAML 2.0AD FS extranet needs a separate Web Application Proxy server. Keycloak serves OIDC and SAML 2.0 without that role, so confirm your proxy design.
Non-Microsoft apps and Linux host estateKeycloak for web apps, authentik for hostsKeycloak supports OIDC, OAuth 2.0 and SAML 2.0 under Apache 2.0. authentik's free edition adds LDAP, RADIUS and Kerberos for Linux hosts.
Site that must keep identity on-premisesKeycloak or authentik on your own serversEntra tenant location is set at creation and cannot change later. Keycloak runs on your servers and federates existing AD over LDAP.
Licensed Entra features already in Microsoft 365Microsoft Entra IDP1 is included in Microsoft 365 E3 and Business Premium, and P2 in E5. Confirm bundled features before pricing a replacement.

How AD FS sign-in runs on your own servers

AD FS is the federation server role in Windows Server, so every sign-in it handles runs on servers you build, patch and back up yourself. All AD FS servers in a farm must be joined to the same AD DS domain, which ties the farm to the health of that Active Directory domain. Microsoft lists 2 GB of RAM and 32 GB of disk as the minimum for each AD FS or Web Application Proxy server, and 4 GB of RAM and 100 GB of disk as the recommended size. A farm on the Windows Internal Database supports up to 30 federation servers and 100 relying party trusts, and larger farms need SQL Server. Before you size hardware, count your relying party trusts and decide on the database, since that choice shapes the farm design from the start.

Extranet access is where the design gets harder. Web Application Proxy is required for extranet access, and it cannot be installed on the same computer as a federation server, so the proxy tier needs its own machines. If you choose a third-party proxy, it must support the MS-ADFSPIP protocol, so get that confirmed in writing before you buy. Microsoft's AD FS overview describes how AD FS extends single sign-on to internet-facing applications for customers, partners and suppliers, so test that path in a lab before go-live. Plan for certificate changes too: when the token-signing certificate changes, every relying party must receive the new certificate or its sign-ins fail, so keep a current list of relying parties and their owners.

Before you commit hardware to a farm, run the AD FS Migration Readiness Script on the AD FS server to see which applications can already move. Microsoft's guidance says apps that use SAML or OpenID Connect should move first, while apps on older protocols are integrated through Application Proxy or Secure Hybrid Access partners. Microsoft's AD FS overview also highly recommends migrating to Microsoft Entra ID over upgrading to the latest AD FS version, so any plan to keep AD FS needs a documented reason. Confirm with Microsoft which AD FS version you run and whether it still receives support, and count the relying parties that depend on older protocols before you size the farm.

Microsoft Entra ID vs Microsoft AD FS capabilities side by side

This table compares how Microsoft Entra ID and Microsoft AD FS handle the capabilities that most often drive a review of federation. Read each row for the licensing or extra server that a capability depends on, since AD FS needs Windows Server infrastructure and Entra ID features are mostly set by license tier. The main takeaway is that AD FS depends on your own servers and an AD DS domain, while Entra ID shifts that work to a cloud service.

CapabilityMicrosoft Entra IDMicrosoft AD FS
SaaS single sign-onIncluded in Entra ID Free, which covers SSO to SaaS apps. Each application is set up as an enterprise app.Extends SSO to internet-facing apps through relying party trusts that you configure and run on your own servers.
Multifactor authenticationIncluded in Entra ID Free.Third-party MFA providers plug in through an extensible mechanism. Microsoft runs no certification program for them.
User list exportAdmins download the user list as CSV from the Entra admin center, including userPrincipalName, mail and department.Users sit in AD DS, so the list comes from directory tooling. Confirm the export method for your farm.
Directory synchronizationEntra Connect syncs AD users, groups and password hashes. It is free with an Azure subscription, but Connect Health needs P1.Relies on AD DS directly. All AD FS servers must join the same AD DS domain.
Extranet accessInternet-facing sign-in runs on the Entra cloud service. Confirm which Application Proxy or partner option your on-premises apps need.Requires the Web Application Proxy role on a separate computer. Third-party proxies must support MS-ADFSPIP.
Claims in tokensClaims are set per enterprise app. Confirm the claim set each application needs before cutover.UserInfo returns only the subject claim, so extra claims must be issued in custom ID tokens.
HostingCloud service. Data location is set by the country or region chosen at tenant creation and cannot be changed later.Runs on your Windows Server farm. WID supports up to 30 federation servers and 100 relying party trusts; larger farms need SQL Server.
Migration toolingAD FS application activity report in Entra ID, which helps sort apps by sign-in use before moving them.AD FS Migration Readiness Script runs on the AD FS server. Microsoft recommends moving to Entra ID instead of upgrading.

Microsoft Entra ID vs Microsoft AD FS cost: what each bill is made of

Entra ID is billed per user, and some of its features already come inside Microsoft 365 plans. AD FS has no published per-user price, so its cost sits in Windows Server licenses, server capacity, SQL Server for larger farms and staff time. Build both sides from the same user count and application list.

Entra ID Free and bundled licenses

Microsoft Entra ID Free is included with Microsoft cloud subscriptions such as Azure and Microsoft 365. It covers MFA, SSO to SaaS apps, basic reports and self-service password change. Check the licenses you already pay for first, because Entra ID P1 is included in Microsoft 365 E3 and Business Premium, and P2 is included in Microsoft 365 E5. Confirm in writing with Microsoft which bundle each user holds, since a tenant can mix license types across users.

Microsoft Entra pricing

Entra ID P1 and P2 per user

Microsoft lists P1 from $7.00 and P2 from $10.00 per user per month, both with an annual commitment. Per-user pricing makes the user count the main cost driver, and P2 matters only for the users who need its features. Ask Microsoft how the annual commitment handles users who join or leave during the term, and whether your tenant can split users between P1 and P2 licenses.

Entra Suite on top of P1

Microsoft lists Entra Suite from $12.00 per user per month. It combines network access, identity protection, governance and identity verification, and it requires an existing Entra ID P1 subscription. Entra Suite is a layer, so its bill starts from P1 and adds to it. Before you quote it, list which of those four areas you already run in other products, so you pay only for the gaps.

AD FS licensing and servers

No per-user price for AD FS is published, so AD FS cost sits in Windows Server licenses and server capacity. Each AD FS or Web Application Proxy server needs at least 2 GB RAM and 32 GB disk, with 4 GB RAM and 100 GB disk recommended. A federation server and a Web Application Proxy cannot share one computer, so extranet access needs separate machines. Get the licensing position from Microsoft in writing, including which licenses each server needs.

AD FS requirements

SQL Server beyond WID limits

An AD FS farm on the Windows Internal Database supports up to 30 federation servers and 100 relying party trusts. Larger farms need SQL Server, which adds a database license and its administration to the bill. WID farms also lack SAML artifact resolution and token replay detection, so check whether your applications depend on either before you decide to stay on WID. Ask for the SQL Server edition and license position in writing.

Staff time for AD FS and migration

Staff time depends on your farm size, application count and change windows. When the token-signing certificate changes, every relying party must receive the new certificate, or its sign-ins fail, so plan that work before any rollover. Microsoft highly recommends migrating to Entra ID as the path forward for AD FS, and its readiness script and application activity report help sort which apps move first. Ask your team to estimate hours for patching, certificate work and each app migration.

Where identity data lives and how you get it out

Entra ID keeps directory data in a tenant that Microsoft operates, and the tenant's data location is set when it is created. The location is mapped from the country or region you choose at that point and cannot be changed afterward, so settle it during planning, not during cutover.

  • Tenant location: The data location follows the country or region selected at tenant creation. Confirm the tenant's location in the admin center before you plan any transfer.
  • MFA data: Entra multifactor authentication data is stored in North America and/or the tenant's geo-location. Ask Microsoft which combination applies to your tenant and check it against your data residency policy.
  • Sovereign clouds: Entra ID is also offered in US government and China clouds. In China it is operated through a partnership with 21Vianet, so confirm which cloud your tenant belongs to before you compare options.
  • User list export: Admins can download the user list as a CSV from the Entra admin center. It includes attributes such as userPrincipalName, mail, department and on-premises identifiers, which covers people but not configuration. Download a list of users
  • Rebuild items: App registrations, enterprise application settings and Conditional Access policies must be documented and recreated in the target platform. The user list does not carry them.

Check your tenant's location and cloud, then record every app registration and policy before you choose a target platform.

The decision path from AD FS to Entra ID or a self-hosted option

The path starts with whether Microsoft 365 or Azure already sets the sign-in direction. If identity must stay on-premises, the next question is whether non-Microsoft apps or Linux hosts need sign-in, since that points toward a self-hosted option. Otherwise, check whether AD FS relying parties can move in stages. Microsoft recommends migrating to Entra ID over upgrading AD FS, so staged migration is a bridge, not an end state. Before any cutover, confirm each relying party and its protocol, and make sure the new token-signing certificate reaches every relying party, because sign-ins fail otherwise.

Decision path from AD FS to Entra ID, staged migration or self-hosted SSO.

When Keycloak or authentik fits better than either Microsoft option

Neither Microsoft option is the right answer when your team must run sign-in itself, federate non-Microsoft applications without depending on Windows Server, or keep a directory-backed identity provider outside Microsoft licensing. In those cases, evaluate self-hosted Keycloak first. Keycloak is licensed under the Apache License 2.0, is a Cloud Native Computing Foundation incubating project, and supports OpenID Connect, OAuth 2.0 and SAML 2.0. Its built-in user federation connects to existing LDAP and Active Directory servers, so Active Directory can remain the source of users and passwords while Keycloak takes over the federation role that AD FS plays today. Each relying party that AD FS signs in becomes a Keycloak client that you configure and test. Confirm that each application uses SAML 2.0 or OpenID Connect, because older integrations need a separate review before they move.

authentik is the other open-source option to evaluate. Its core is MIT licensed, and the free edition supports OIDC, SAML, LDAP, SCIM, RADIUS, Kerberos and proxy authentication, with community support only. Commercial terms are listed on the authentik pricing page: Enterprise is priced at $5 per user per month billed annually plus $0.02 per external user per month, and Enterprise Plus starts at $20k annually. The Enterprise edition also carries the Microsoft Entra ID integration, which matters if you run both systems side by side during a transition. Ask the vendor to confirm which features your flows need, since privileged access management, enhanced audit logging and ticket-based support are Enterprise features, and SLAs are an Enterprise Plus feature. Do not treat community support as a production service level.

Most of the cost of either option sits in operations. Plan for servers in your own cloud account or data center, a supported external database that you back up and patch, and enough nodes to meet your availability target, with the high availability design checked against the Keycloak database guide. Keycloak's export and import commands are documented as limited for backup and restore, and all nodes must be stopped while they run, so schedule database-level backups and test restores. Upgrades also recur: Keycloak plans four minor releases a year, and breaking changes in minor releases are opt-in, which still calls for a staging test each cycle. For authentik, track the supported versions named in its security policy, 2026.5.x and 2026.8.x, and the advance notice it gives for security releases. The app move is the largest task: inventory every relying party in AD FS, start with SAML and OpenID Connect apps, and run old and new sign-in side by side until each application is verified.

What a move from Microsoft AD FS to Microsoft Entra ID involves

Moving from AD FS to Entra ID is a sequence in which each stage produces the record the next one depends on: the app inventory, the protocol order, the synchronized users and the sign-in test results. AD FS is switched off only when every relying party is accounted for. How long this takes depends on the number of apps, their owners and the protocols they use, so ask for a plan built from your own inventory.

  1. Run the readiness script and activity report

    The admin runs the AD FS Migration Readiness Script on the AD FS server to assess which applications are ready to move. Then they review the AD FS application activity report in Entra ID to see which apps still sign users in and how often. Apps with no recent sign-ins are candidates for retirement, so owners should confirm that before any migration work starts. The output is a list of applications with readiness status and sign-in activity, which becomes the working inventory for every later step.

  2. Inventory relying parties by protocol

    The identity team exports every relying party trust from AD FS and records the protocol each one uses, whether SAML 2.0, OpenID Connect, WS-Federation or an older method. Each entry also gets a business owner, the users who depend on it and the MFA requirement it carries. Owners confirm which apps are still in use and retire the rest. The output is one register where every application has a protocol, an owner and a status, with no relying party left unassigned.

  3. Move SAML and OpenID Connect apps first

    The team rebuilds each SAML and OpenID Connect application as an enterprise application in Entra ID, including its federation settings, claim mappings and signing certificates. These apps go first because modern protocols are the most direct to move, and Microsoft's stage guidance sequences them this way. Each rebuilt app is tested with its owner in a pilot group before users are switched over. The output is a set of migrated apps, each with a documented configuration and a recorded owner sign-off.

  4. Route older-protocol apps through Application Proxy

    Applications on older protocols are published through Microsoft Entra Application Proxy or integrated through a Secure Hybrid Access partner, depending on what the app supports and how users reach it. The security team reviews the network and firewall changes that each publishing path needs. Confirm the route for each app, and its licensing, against Microsoft's documentation and the partner's own material before cutover. The output is a documented access path for every legacy app, with a named owner and a tested sign-in.

  5. Synchronize users with Entra Connect or Cloud Sync

    Identity administrators sync on-premises Active Directory users, groups and, where chosen, password hashes to Entra ID with Microsoft Entra Connect or Microsoft Entra Cloud Sync, which Microsoft describes as the future of synchronization. Entra Connect is free with an Azure subscription, while Entra Connect Health requires Entra ID P1 licenses. The sync scope and UPN suffixes are checked against the app register so every user who signs in has a matching account. The output is a synchronized tenant with sync health reported as healthy for the scope in use.

  6. Test sign-in and MFA for each application

    Each migrated or re-routed application is tested with test accounts from each user group, covering sign-in, the claims the app reads, role access and the MFA prompt that applies. Where AD FS previously ran a third-party MFA provider, confirm that the provider is supported in Entra ID or replaced. The output is a signed test record for each app, with failures logged, fixed and retested before cutover.

  7. Decommission AD FS and extranet proxies

    When every relying party has moved or been retired, the team removes the AD FS farm and the Web Application Proxy servers that carried extranet access. Before anything is switched off, the team confirms that no relying party still depends on the old token-signing certificate, because sign-ins fail when that certificate changes without each relying party being updated. DNS records and firewall rules that pointed to the federation service are updated last. Confirm each Microsoft step against the AD FS decommission reference before running it. The output is a change record showing no application still points to the farm and no extranet proxy remains in service.

What buyers ask before they move off AD FS

What drives the cost of moving off AD FS, and what should a quote include?

The cost has four parts: Microsoft licensing, the AD FS servers you keep running during the move, the labor to migrate each application, and the platform you choose for applications that stay outside Entra ID. Entra ID Free comes with Microsoft cloud subscriptions such as Microsoft 365 and Azure. Microsoft lists Entra ID P1 at $7.00 per user per month and P2 at $10.00 per user per month with an annual commitment, and P1 is already included in Microsoft 365 E3 and Business Premium (Microsoft Entra pricing page). Microsoft Entra Connect is free with an Azure subscription, but Connect Health requires P1. Keycloak is Apache 2.0 licensed and the authentik core is MIT licensed, so your self-hosted costs are servers, database, backup, monitoring and staff time. Ask for a quote that lists each application, the per-user licensing, the one-time migration work and the recurring run costs as separate lines.

Does Microsoft's recommendation to migrate mean AD FS must be removed now?

No. The recommendation points your planning toward Entra ID, but it is not a removal date you can plan from. Microsoft's AD FS overview says that, instead of upgrading to the latest AD FS version, Microsoft highly recommends migrating to Microsoft Entra ID. Ask Microsoft for the support and lifecycle dates for the AD FS version you run, and get them in writing before you set a shutdown date. Keep the farm running while applications move, because removing it early breaks sign-in for every relying party still pointed at it. Plan removal as the last step, after the readiness assessment and the application activity report show that no application still depends on AD FS. Also check whether any Microsoft contract or support plan you hold has dates that affect the schedule.

How long does an AD FS to Entra ID migration take, and what sets the duration?

No single duration applies to every estate, so ask for a timeline built from your own application inventory. The main drivers are the number of relying parties, meaning each application that trusts AD FS for sign-in. The protocols they use also matter, since SAML and OpenID Connect applications move first and older protocols go through Application Proxy or a Secure Hybrid Access partner. Whether extranet access runs through Web Application Proxy adds work, and so does the number of applications that need a token-signing certificate change, because every relying party must be updated with the new certificate or its sign-ins fail. Owner availability and change windows set the pace as well. Ask for the timeline in phases, with a checkpoint after the readiness assessment and another after each group of applications cuts over.

What does an AD FS migration need from our team before work starts?

The work needs four things from your team: a complete application inventory, a named owner for each application, admin roles that can make changes in Entra ID and on the AD FS servers, and agreed change windows. Start with every relying party, including the ones nobody remembers, and record the protocol each one uses. Microsoft's AD FS decommission reference describes the AD FS Migration Readiness Script, which runs on the AD FS server and assesses which applications are ready to migrate. The AD FS application activity report in Entra ID shows which applications still sign in through AD FS. Use both to check the inventory against actual sign-in activity, not only the documented list. Each owner should confirm test users, expected claims and a rollback step. Admin roles should cover Entra ID, the AD FS farm, DNS and certificates. Change windows should avoid business peaks unless the business approves otherwise.

Can our internal team move off AD FS alone, and where does outside help save time?

Yes, an experienced internal team can do it, provided it includes people who know AD FS, Entra ID, SAML and OpenID Connect, and the platform you plan to run for applications that stay outside Entra. The hard parts are often not the Entra configuration itself. They are the undocumented relying parties, the claim rules that applications depend on, and testing each cutover without breaking production sign-in. Outside help saves the most time in the inventory and cutover testing stages, where a second team can run the readiness checks, rebuild claim mappings and test each application before its change window. DeployOpen plans, implements, integrates, hardens, backs up and documents self-hosted platforms inside your own environment, and it runs security testing on the result. Engagements are fixed scope, with deliverables and timelines agreed in writing before work starts, and a quote follows from that written scope.

Can Microsoft 365 sign-in stay on Entra ID while other apps move to Keycloak or authentik?

Yes, that split is a workable design, but confirm the licensing and sign-in requirements with Microsoft before you commit. Microsoft 365 depends on Entra ID for its tenant, so the tenant, its Conditional Access policies and any Entra sign-in features you use stay where they are. Other applications can authenticate against Keycloak or authentik through OpenID Connect or SAML 2.0, and both directories can draw users from the same Active Directory source. Two identity planes mean two places to manage MFA, session policy and offboarding, so write down which system is authoritative for each user state. Entra licensing still applies to the users and features that remain on Entra ID, so ask Microsoft which Entra tier your Microsoft 365 plan includes and what the remaining applications would need. Review this design with your security team before you move the first application.

What breaks during an AD FS cutover, and how do you test it first?

The most common break is a relying party whose sign-ins fail after a change it never heard about, such as a token-signing certificate change, where every relying party must be updated or its sign-ins fail. Other breaks come from claims that the new identity provider sends in a different shape, from extranet users who depend on Web Application Proxy, and from MFA providers wired into AD FS through its extensible mechanism. Test each application in a staging environment with a test user, compare the claims in the issued token with what the application expects, and keep the old relying party trust available until the cutover has held. Write a rollback step for each application before its change window. AD FS returns only the subject claim from its UserInfo endpoint, so any extra claims must be issued in custom ID tokens, and that is worth checking early.

How DeployOpen helps you choose, migrate or self-host sign-in

DeployOpen, a Chainscore Labs company, plans, implements, integrates, hardens, backs up, upgrades and documents self-hosted open-source platforms in your own infrastructure. For Microsoft Entra ID vs Microsoft AD FS, the work starts with an agreed view of which applications, trust relationships and users are in scope. Most engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we scope

  • We map which AD FS relying party trusts, Entra ID apps and user sources move, stay or retire.
  • Your written scope sets deliverables for each target, such as Keycloak, authentik or Entra ID, before work starts.
  • Fixed-scope agreements also record which Microsoft 365 sign-in paths stay on Entra ID.

How we build

  • We inventory apps on modern protocols such as SAML and OpenID Connect first, then handle older AD FS apps separately.
  • Where Keycloak or authentik is the target, we set up directory federation and test each application.
  • Token-signing certificate changes are scheduled so every relying party receives the new certificate before cutover.

How we hand over

  • Handover includes configuration documentation, readiness assessment results and an application inventory with owners.
  • Keycloak realm exports have documented limits as a backup, so we document the restore approach with those limits.
  • You receive runbooks for operating the platform, with rollback steps for each migrated application.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Keycloak plans four minor releases a year, so upgrade work recurs and a retainer can cover it.
  • Confirm your edition before cutover, since Entra ID integrations in authentik are Enterprise-only features.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.