To get the Tenant ID in Microsoft Entra ID (formerly Azure AD), follow one of these methods:
Method 1: Microsoft Entra Admin Center
- Go to Microsoft Entra Admin Center.
- Sign in with your global admin or relevant account.
- In the left navigation, click Identity > Overview.
- Under Tenant Information, you’ll find the Tenant ID.

Method 2: Azure Portal
- Go to Azure Portal.
- Sign in with your admin account.
- Click on your profile picture (top-right corner) and select Switch Directory.
- Select the correct directory, and the Tenant ID will be displayed under Directory ID.
Method 3: Using PowerShell
- Open PowerShell and run:
Connect-AzAccount Get-AzTenant
- The Tenant ID will be displayed in the output.
Method 4: Using CLI (Command Line Interface)
- Open Command Prompt or Terminal and run:
az login az account show --query tenantId --output tsv
- The Tenant ID will be shown.
Method 5: From a Microsoft 365 Account
- Go to Microsoft 365 Admin Center.
- Click Settings > Org Settings.
- Under Organization Profile, find Tenant ID.
Would you like help with any specific integration or API-related retrieval?