Is Azure AD B2C being retired?
Not yet, and not on a date anyone has announced. Here is what Microsoft has actually said:
- End of sale, May 1, 2025. Azure AD B2C is no longer available to purchase for new customers. If you had B2C before that date, you keep it, and you can still create new B2C tenants and user flows.
- Support until at least May 2030. Microsoft's FAQ says it will keep supporting B2C until at least May 2030, with the same SLAs, security updates and compliance commitments. That's a floor, not a shutdown date.
- Premium P2 is retired. P2 and its ID Protection features (risky users, risk detections, risk-based Conditional Access) are gone from B2C tenants. Microsoft moved P2 tenants to P1 billing by the end of March 2026. Location, app and group-based Conditional Access on P1 still works.
You'll find blog posts that give earlier retirement dates. They aren't from Microsoft. If a vendor tells you B2C stops working next year, ask for the Microsoft link.
The successor is Microsoft Entra External ID, the customer identity product Microsoft now sells and develops. Microsoft frames the move as a migration to plan, not a forced cutover, and has published a migration path for it.
Do you need to move now?
For most B2C tenants built on standard user flows, there's no reason to rush. There is a reason to know what the move will take, because some of it is a rebuild, not a setting change.
Plan the move sooner if
- You are building a new customer-facing app. Start it on External ID rather than adding another app to a product that is no longer sold.
- You relied on P2 risk-based sign-in policies. Those are already gone from B2C.
- Your B2C setup is mostly custom policies (Identity Experience Framework XML). That's the part that takes longest to rebuild, so it deserves the most lead time.
- The people who built the custom policies have left. Rebuilding them gets harder the longer nobody understands them.
- You want features that are going into External ID, not B2C: native authentication SDKs for mobile, passkeys, and custom authentication extensions.
If none of these apply, a B2C tenant on user flows can keep running while you plan.
Azure AD B2C vs External ID: the differences that matter
External ID is not B2C with a new name. It runs in an external tenant, a different tenant type with its own sign-in endpoints, app registrations and user directory. These are the differences that change code or user experience during a migration.
| Azure AD B2C | Microsoft Entra External ID | |
|---|---|---|
| Status | End of sale May 1, 2025; supported until at least May 2030 | Current product |
| Sign-in host | <tenant>.b2clogin.com |
<tenant>.ciamlogin.com |
| Custom domain | Supported | Supported |
| User flows | Separate sign-up/sign-in, password reset and profile editing flows | One sign-up and sign-in flow type; password reset is built into it |
| Custom business logic | Custom policies (IEF XML) | Custom authentication extensions (REST calls at set points) |
| Sign-in page design | Your own HTML and CSS templates | Company branding, with an optional custom CSS file |
| Mobile apps | Browser redirect | Browser redirect, or native authentication SDKs for local accounts |
| Risk-based sign-in | Retired with P2 | ID Protection isn't supported in external tenants |
| Age gating | Supported in custom policies | Not supported yet |
| Pricing | Monthly active users, first 50,000 free | Monthly active users, first 50,000 free for the core offer |
What doesn't carry over
These are the items that turn a migration from a configuration exercise into a project.
Custom policies Rebuild
B2C custom policies don't run in External ID. Microsoft maps them to custom authentication extensions, which call your own REST API at defined points in the sign-up and sign-in flow. Microsoft says one-to-one parity isn't guaranteed. Every validation step, claims transformation and REST call in your policies needs to be listed and rebuilt, or dropped.
Password reset and profile editing flows Redesign
External ID has one user flow type. Password reset is a link on the sign-in page, not a separate flow you call from your app. There's no profile-editing user flow either. Any "Edit profile" or "Reset password" link that starts a B2C policy needs a new home: the built-in reset link, or your own profile page that updates the user through Microsoft Graph.
Fully custom sign-in pages Redesign
B2C lets you host your own HTML templates for every page. External ID gives you company branding and a custom CSS file. If your sign-in pages were heavily customized, expect them to look different and plan the design work.
Social and third-party identity providers set up in custom policies Reconfigure
Google, Facebook, Apple, Microsoft accounts and OIDC or SAML federation are all supported in External ID, but they are configured in the external tenant, not carried over. Third-party identity providers that only worked through B2C custom policies aren't supported.
Age gating No equivalent yet
If your custom policies derive or store age-based attributes, Microsoft says to plan for an alternative. External ID doesn't support age gating today.
User object IDs Map
A standard migration creates every user again in a new tenant, so each user gets a new object ID. If your application database keys customer records on the B2C object ID (the oid or sub claim), you need a mapping. The easiest point to create one is the bulk user migration: write the old B2C ID into an extension attribute on the new user, then look users up by it on first sign-in.
What changes in an ASP.NET Core app
If the app uses Microsoft.Identity.Web, the sign-in code itself barely changes. AddMicrosoftIdentityWebApp works against both. What changes is the configuration and everything around it.
The B2C configuration, with one policy ID per user flow:
"AzureAdB2C": {
"Instance": "https://contoso.b2clogin.com/",
"Domain": "contoso.onmicrosoft.com",
"ClientId": "<b2c-app-client-id>",
"SignUpSignInPolicyId": "B2C_1_SignIn",
"ResetPasswordPolicyId": "B2C_1_Reset",
"EditProfilePolicyId": "B2C_1_Edit_Profile"
}
The External ID configuration, pointing at the external tenant with no policy IDs:
"AzureAd": {
"Authority": "https://contoso.ciamlogin.com/",
"ClientId": "<external-id-app-client-id>",
"CallbackPath": "/signin-oidc"
}
The rest of the checklist:
- Register the app again. App registrations live in the new external tenant, so the client ID, secrets or certificates, and redirect URIs are all new. Add the app to the user flow, or sign-in fails.
- Remove the policy logic. Code that reads
SignUpSignInPolicyId, switches policies for reset or profile editing, or checks the policy name in the token (thetfporacrclaim) has nothing to switch to. - Update your APIs. A web API protected by B2C validates a different issuer and audience. In External ID the authority is
https://<tenant>.ciamlogin.com/<tenant-id>/v2.0and the audience is the API's client ID, not thehttps://<tenant>.onmicrosoft.com/<client-id>form B2C uses. - Update your Content Security Policy. If your CSP lists
b2clogin.comhosts inform-actionor other directives, add theciamlogin.comhost (or your custom domain) before cutover. A missed CSP entry shows up as a sign-in that silently does nothing. - Keep the cookie settings. The OpenID Connect correlation and nonce cookies need the same
SameSitehandling as before. Nothing about that changes, but it's easy to break while rewriting the startup code.
This site still signs its customers in through Azure AD B2C user flows on ASP.NET Core, and every item above applies to it, including the policy-switching links and the CSP entry.
For a wider look at how an ASP.NET Core app on Azure handles sign-in, secrets and headers, the App Service security checklist covers the rest.
Moving the users
Bulk user migration is always required: user accounts must exist in External ID before anyone can sign in there. The real decision is what happens to passwords, because B2C won't export them.
Bulk migrate and ask users to reset
Simplest. Works well when users sign in with Google or another social provider, when you're moving to email one-time passcodes, or when you can ask everyone to set a new password through self-service reset.
Just-in-time password migration
Apps move to External ID first. When a user signs in, a custom authentication extension checks the password against B2C, writes it to the new account and marks the user as migrated. Users don't notice, but you run both systems until the migration window closes.
B2C-initiated migration
Apps stay on B2C while a custom policy validates each sign-in and copies the credentials across in the background. Apps cut over once most users have moved. This needs B2C custom policies, even if you only use user flows today.
With B and C, users who never sign in during the window never migrate. Set an end date, then bulk migrate the stragglers and send them a password reset. Microsoft's advice is to time-box the period when both systems run, because keeping profiles, password changes and new sign-ups aligned across two tenants gets harder every week.
Very large tenants, around 5 million directory objects or more, have a third option: High Scale Compatibility mode, which runs B2C and External ID side by side in the same tenant. It comes with significant gaps today (no social identity providers, passkeys or age gating), and Microsoft recommends the standard approach for everyone below that size.
What it costs
Both products bill on monthly active users, and both give you the first 50,000 a month free. External ID's add-ons, such as SMS verification, have no free tier.
One B2C detail catches small teams out: B2C's free tier doesn't apply to free trial, credit-based or sponsorship subscriptions. If your B2C tenant is linked to one of those, check what you are actually paying before you assume the move is cost-neutral.
A sensible order of work
- List what you have. Every app registration, user flow, custom policy, identity provider, API, and every place in your code that names a policy.
- Sort it into carries over, rebuild, and drop. Use the sections above. This list, not the support date, tells you how big the project is.
- Decide on passwords. Reset, just-in-time or B2C-initiated. That choice sets how long both systems run side by side.
- Build the external tenant and test it with one app. Branding, user flow, identity providers, custom authentication extensions, and the token claims your app and APIs expect.
- Migrate users, cut over app by app, and close the window. Then turn off the B2C apps and keep the tenant until you're sure nobody needs it.
For a single app on standard user flows, steps 1 and 2 often show the job is smaller than the support date makes it sound. For a tenant built on custom policies, they show where the time goes.
The support date isn't what makes this hard. What makes it hard is the logic hidden in custom policies and the places your code assumes B2C.
If the B2C setup came from a developer or vendor who has since left, start with what to do when your developer leaves. If you would rather have the code paths that handle sign-in reviewed before you change them, that's part of a .NET and Azure security review.
Sources
Every date and limitation on this page traces to Microsoft's own documentation.
- Azure AD B2C FAQ: end of sale and P2 retirement
- Microsoft Entra External ID FAQ
- Plan your migration from Azure AD B2C to External ID
- Migrate from Azure AD B2C to External ID
- Supported features in workforce and external tenants
- Create a sign-up and sign-in user flow in External ID
- Enable self-service password reset in External ID
- Custom authentication extensions overview
- Prepare an ASP.NET Core web app for an external tenant
- Secure an ASP.NET Core Blazor Web App with OpenID Connect: authority and audience formats
- Billing model for Azure AD B2C
- Microsoft Entra External ID pricing and billing