Find your tenant ID and domains
In this task you'll find your tenant ID and primary domain.
Your tenant is your organisation's own directory in Microsoft Entra ID. It holds your users, groups and apps, and it handles sign-in for everything in Azure.
Every tenant has a tenant ID and at least one domain. A new tenant starts with a domain ending in onmicrosoft.com, and organisations usually add their own, such as sskaiser.example. Each subscription trusts exactly one tenant.
Example. Larkfield Group's tenant uses larkfield.example as its primary domain, so staff sign in as name@larkfield.example. The onmicrosoft.com domain it started with is still there in the background.
Before you start
You need: Any user in the directory. Time: 5 minutes.
Where to look
- Home
- Microsoft Entra ID
- Overview
Steps
- Search for entra and open Microsoft Entra ID.On a free account the tenant is usually called Default Directory. A banner may suggest the Microsoft Entra admin center (entra.microsoft.com), which has the same settings; this guide uses the Azure portal.
- On Overview, under Basic information, find the Tenant ID and the Primary domain. Copy the tenant ID with the copy icon.
- Look at the License line. A new tenant shows Microsoft Entra ID Free.Some features, such as groups that fill themselves by rules, need the paid P1 or P2 plans.
- Open the Service menu, expand Manage and select Custom domain names to see every domain in the tenant.The onmicrosoft.com domain can't be removed. Adding your own domain means proving you own it with a DNS record.
- Select the Properties tab (or Properties under Manage) to see the tenant's name, contact details and, at the bottom, the security defaults status (the last task in this section).
- In the top bar, select your account name and Switch directory to see any other tenants you belong to.
Tip. Search for entra to jump straight there.
Commands
# The tenant ID of the subscription you're using
az account show --query tenantId --output tsv
# Every tenant your account can sign in to
az account tenant list --output table
Watch out for
- Cost
- Free. This task only reads.
- Security
- The tenant ID isn't a secret, because it appears in sign-in links, but don't publish it alongside other details of your setup.
- Common mistakes
- Confusing the tenant ID with the subscription ID. One tenant can hold many subscriptions, but each subscription trusts only one tenant.
Clean up
Nothing to clean up. This task only reads.
Words to know
- Tenant
- Your organisation's directory in Microsoft Entra ID.
- Tenant ID
- A long unique code for your tenant, used in sign-in links and scripts.
- Primary domain
- The domain shown by default in new user names, such as name@sskaiser.example.
Tick off each step and track your progress in the guide.
Open this task in Azure Portal, Hands On