How to find your Azure Active Directory tenant ID

Azure subscriptions accept a trust human relationship with Azure Agile Directory (Azure AD). Azure AD is trusted to cosign users, services, and devices for the subscription. Each subscription has a tenant ID associated with it, and there are a few means you tin can find the tenant ID for your subscription.

Notice tenant ID through the Azure portal

  1. Sign in to the Azure portal.

  2. Select Azure Active Directory.

  3. Select Properties.

  4. Then, scroll downwardly to the Tenant ID field. Your tenant ID will be in the box.

Azure Active Directory - Properties - Tenant ID - Tenant ID field

Discover tenant ID with PowerShell

Y'all can besides find the tenant programmatically. To discover the tenant ID with Azure PowerShell, utilise the cmdlet Get-AzTenant.

              Connect-AzAccount Get-AzTenant                          

For more data, come across this Azure PowerShell cmdlet reference for Get-AzTenant.

Find tenant ID with CLI

If you want to apply a command-line interface to detect the tenant ID, you lot can exercise so with Azure CLI or Microsoft 365 CLI.

For Azure CLI, utilize one of the commands az login, az account list, or az account tenant listing 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 listing                          

For more than data, see az login control reference, az account command reference, or az account tenant command reference.

For Microsoft 365 CLI, use the cmdlet tenant id as shown in the post-obit example:

              m365 tenant id get                          

For more information, see the Microsoft 365 tenant id get command reference.

Next steps

  • 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, encounter Acquaintance or add an Azure subscription to your Azure Agile Directory tenant.

  • To learn how to discover the object ID, see Find the user object ID.