To start using Microsoft Azure Active Directory (Azure AD) B2C, follow the four steps outlined in this article.
Step 1: Sign up for an Azure subscription
If you already have an Azure subscription, skip this step. If not, sign up for an Azure subscription and get access to Azure AD B2C.
Step 2: Create an Azure AD B2C tenant
Use the following steps to create a new Azure AD B2C tenant. Currently B2C features can't be turned on in your existing tenants.
- Sign in to the Azure portal as the Subscription Administrator. This is the same work or school account or the same Microsoft account that you used to sign up for Azure.
Click New(or the + button if collapsed) and in the Search the marketplace field enter "Azure Active Directory B2C".
In the result, click on Azure Active Directory B2C
- You'll be shown a page with the details on B2C. Click Create at the bottom to start configuring your new Azure Active Directory B2C tenant.
- Click Create a new Azure AD B2C Tenant.
Choose the Organization name, Domain name, and Country or Region for your tenant.
Click Create to create your tenant. This may take a few minutes, you will be alerted in your notifications when it is complete.
Your tenant is now created and will appear in the Active Directory extension. You are also made a Global Administrator of the tenant. You can add other Global Administrators as required.
If you are planning to use a B2C tenant for a production app, read the article on production-scale vs. preview B2C tenants. Note that there are known issues when you delete an existing B2C tenant and re-create it with the same domain name. You have to create a B2C tenant with a different domain name.
Step 3: Navigate to the B2C features blade on the Azure portal
- Expand More services below the navigation bar on the left side.
Search for Azure AD B2C and click on the result (You can favorite this for easy access in the future).
The Azure portal with the B2C features blade showing will open in a new browser tab or window.
Pin this blade to your Startboard for easy access. (The Pin tool is in the upper-right corner of the features blade.)
Step 4: Link your Azure AD B2C tenant to your Azure subscription
If you are planning to use your B2C tenant for production apps, you will need to link your Azure AD B2C tenant to your Azure subscription to pay for usage charges. Read this article to learn how to do this.
If you don't link your Azure AD B2C tenant to your Azure subscription, you will see a warning message ("No Subscription linked to this B2C tenant or the Subscription needs your attention.") on the B2C features blade on the Azure portal. It is important that you take this step before you ship your apps into production.
Easy access to the B2C features blade on the Azure portal
To improve discoverability, we've added a shortcut to the B2C features blade on the Azure portal.
- Sign into the Azure portal as the Global Administrator of your B2C tenant. If you are already signed into a different tenant, switch tenants (on the top-right corner).
- Click Browse on the left hand navigation.
Click Azure AD B2C to access the B2C features blade.
Learn how to register an application with Azure AD B2C and to build a Quick Start application by reading Azure Active Directory B2C: Register your application.