Tutorial: Create an Azure Active Directory B2C tenant

Before your applications can interact with Azure Active Directory (Azure AD) B2C, they must be registered in a tenant that you manage.

In this article, you learn how to:

  • Create an Azure AD B2C tenant
  • Link your tenant to your subscription

You learn how to register an application in the next tutorial.

If you don't have an Azure subscription, create a free account before you begin.

Log in to the Azure portal.

Create an Azure AD B2C tenant

  1. Choose Create a resource in the top-left corner of the Azure portal.
  2. In the search box above the list of Azure Marketplace resources, search for and select Active Directory B2C, and then click Create.
  3. Choose Create a new Azure AD B2C Tenant, enter an organization name and initial domain name, which is used in the tenant name, select the country, and then click Create. Be sure of the country of the tenant because it can't be changed later.

    Create a tenant

    In this example the tenant name is contoso0522Tenant.onmicrosoft.com

To start managing your new tenant, click the word here where it says Click here, to manage your new directory. You will see a Troubleshoot message that says you need to link your subscription to the new tenant.

You need to link your Azure AD B2C tenant to your Azure subscription to enable all functionality and pay for usage charges. If you don't link your tenant to your subscription, your applications won't work correctly.

  1. Make sure you're using the directory that contains the subscription you want to associate to the new tenant by switching the directory in the top-right corner of the Azure portal.

    Switch directories

    And then selecting the directory that contains your subscription.

    Select directory

  2. Choose Create a resource in the upper top-left corner of the Azure portal.

  3. In the search box above the list of Azure Marketplace resources, search for and select Active Directory B2C, and then click Create.
  4. Choose Link an existing Azure AD B2C Tenant to my Azure subscription, select the tenant that you created, select your subscription, enter myContosoTenantRG for the resource group name, accept the location, and then click Create.

Next steps

In this article, you learned how to:

  • Create an Azure AD B2C tenant
  • Link your tenant to your subscription