How to notice your Azure Agile Directory tenant ID

Azure subscriptions accept a trust human relationship with Azure Agile Directory (Azure Advert). Azure Advertising 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 ways you can find the tenant ID for your subscription.

Observe tenant ID through the Azure portal

  1. Sign in to the Azure portal.

  2. Select Azure Active Directory.

  3. Select Properties.

  4. Then, scroll downward to the Tenant ID field. Your tenant ID will exist in the box.

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

Find tenant ID with PowerShell

You can likewise find the tenant programmatically. To observe the tenant ID with Azure PowerShell, utilize the cmdlet Get-AzTenant.

              Connect-AzAccount Get-AzTenant                          

For more than information, run across this Azure PowerShell cmdlet reference for Get-AzTenant.

Discover tenant ID with CLI

If you want to use a command-line interface to find the tenant ID, you tin do and so with Azure CLI or Microsoft 365 CLI.

For Azure CLI, use one of the commands az login, az account list, or az account tenant list every bit 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 business relationship tenant list                          

For more information, come across az login control reference, az account command reference, or az business relationship tenant command reference.

For Microsoft 365 CLI, use the cmdlet tenant id as shown in the following case:

              m365 tenant id get                          

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

Adjacent 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, see Associate or add an Azure subscription to your Azure Agile Directory tenant.

  • To larn how to find the object ID, run into Observe the user object ID.