Quickstart: Set up a tenant
To build apps that use the Microsoft identity platform for identity and access management, you need access to a Microsoft Entra tenant. It's in the Microsoft Entra tenant that you register and manage your apps, configure their access to data in Microsoft 365 and other web APIs, and enable features like Conditional Access.
A tenant represents an organization. It's a dedicated instance of Microsoft Entra ID that an organization or app developer receives at the beginning of a relationship with Microsoft. That relationship could start with signing up for Azure, Microsoft Intune, or Microsoft 365, for example.
Each Microsoft Entra tenant is distinct and separate from other Microsoft Entra tenants. It has its own representation of work and school identities, consumer identities (if it's an Azure AD B2C tenant), and app registrations. An app registration inside your tenant can allow authentications only from accounts within your tenant or all tenants.
An Azure account that has an active subscription. Create an account for free.
Determining the environment type
You can create two types of environments. The environment depends solely on the types of users your app will authenticate.
This quickstart addresses two scenarios for the type of app you want to build:
- Work and school accounts (Microsoft Entra ID) or Microsoft accounts (such as Outlook.com and Live.com)
- Social and local (Azure AD B2C) accounts
Work and school accounts, or personal Microsoft accounts
Use an existing Microsoft Entra tenant
Steps in this article may vary slightly based on the portal you start from.
Many developers already have tenants through services or subscriptions that are tied to Microsoft Entra tenants, such as Microsoft 365 or Azure subscriptions.
To check the tenant:
- Sign in to the Microsoft Entra admin center as at least a Tenant Creator.
- Check the upper-right corner. If you have a tenant, you'll automatically be signed in. You see the tenant name directly under your account name.
- Hover over your account name to see your name, email address, directory or tenant ID (a GUID), and domain.
- If your account is associated with multiple tenants, you can select your account name to open a menu where you can switch between tenants. Each tenant has its own tenant ID.
To find the tenant ID, you can:
- Hover over your account name to get the directory or tenant ID.
- Select Identity > Overview and look for Tenant ID.
If you don't have a tenant associated with your account, you'll see a GUID under your account name. You won't be able to do actions like registering apps until you create a Microsoft Entra tenant.
Create a new Microsoft Entra tenant
If you don't already have a Microsoft Entra tenant or if you want to create a new one for development, see Create a new tenant in Microsoft Entra ID. If you want to create a tenant for app testing, see build a test environment.
You'll provide the following information to create your new tenant:
- Tenant type - Choose between a Microsoft Entra tenant and an Azure AD B2C tenant
- Organization name
- Initial domain - Initial domain
<domainname>.onmicrosoft.comcan't be edited or deleted. You can add a customized domain name later.
- Country or region
When naming your tenant, use alphanumeric characters. Special characters aren't allowed. The name must not exceed 256 characters.
Social and local accounts
To begin building external facing applications that sign in social and local accounts, create an Azure AD B2C tenant. To begin, see Create an Azure AD B2C tenant.