How to find your Azure Active Directory tenant ID
Azure subscriptions have a trust relationship with Azure Active Directory (Azure AD). Azure AD is trusted to authenticate users, services, and devices for the subscription. 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 Azure portal
Sign in to the Azure portal.
Select Azure Active Directory.
Scroll down to the Tenant ID field. Your tenant ID will be in the box.
Find tenant ID with PowerShell
To find the tenant ID with Azure PowerShell, use the cmdlet
For more information, see this Azure PowerShell cmdlet reference for Get-AzTenant.
Find tenant ID with CLI
For Azure CLI, use one of the commands az login, az account list, or az account tenant list as shown in the following example. Notice the tenantId property for each of your subscriptions in the output from each command.
az login az account list az account tenant list
For Microsoft 365 CLI, use the cmdlet tenant id as shown in the following example:
m365 tenant id get
For more information, see the Microsoft 365 tenant ID get command reference.
To create a new Azure AD tenant, see Quickstart: Create a new tenant in Azure Active Directory.
To learn how to associate or add a subscription to a tenant, see Associate or add an Azure subscription to your Azure Active Directory tenant.
To learn how to find the object ID, see Find the user object ID.
Submit and view feedback for