How to find your Microsoft Entra tenant ID
Azure subscriptions have a trust relationship with Microsoft Entra ID. Microsoft Entra ID is trusted to authenticate the subscription's users, services, and devices. Each subscription has a tenant ID associated with it, and there are a few ways you can find the tenant ID for your subscription.
Find tenant ID through the Microsoft Entra admin center
- Sign in to the Microsoft Entra admin center as at least a Global Reader.
- Browse to Identity > Overview > Properties.
- Scroll down to the Tenant ID section and you can find your tenant ID in the box.
Find tenant ID through the Azure portal
- Sign in to the Azure portal.
- Browse to Microsoft Entra ID > Properties.
- Scroll down to the Tenant ID section and you can find your tenant ID in the box.
Find tenant ID with PowerShell
To find the tenant ID with Azure PowerShell, use the cmdlet Get-AzTenant
.
Connect-AzAccount
Get-AzTenant
For more information, see the Get-AzTenant cmdlet reference.
Find tenant ID with CLI
The Azure CLI or Microsoft 365 CLI can be used to find the tenant ID.
For Azure CLI, use one of the commands az login, az account list, or az account tenant list. All of command's included below return the tenantId property for each of your subscriptions.
az login
az account list
az account tenant list
For more information, see az login command reference, az account command reference, or az account tenant command reference.
For Microsoft 365 CLI, use the cmdlet tenant id as shown in the following example:
m365 tenant id get
Next steps
To create a new Microsoft Entra tenant, see Quickstart: Create a new tenant in Microsoft Entra ID.
To learn how to associate or add a subscription to a tenant, see Associate or add an Azure subscription to your Microsoft Entra tenant.
To learn how to find the object ID, see Find the user object ID.
Feedback
Submit and view feedback for