Getting the tenant name in Azure is essential for developers working with Azure resources. In this article, I will walk you through multiple ways to achieve this, including the video tutorial.
Table of Contents
How to find tenant name in Azure
Let us dive deep into all the approaches individually.
- Approach-1: Using Azure Portal
- Approach-2: Using PowerShell
Approach-1: Using Azure Portal
To get tenant name in Azure, follow the below steps
1. Log in to the Azure Portal.
2. Search for Azure AD B2C and click on the search result Azure AD B2C under the Services.

3. On the Azure AD B2C page, expand the Essentials node from the right side, and you can see the Domain name, which is the tenant name, as shown in the screenshot below.

Alternatively,
You can search for Microsoft Entra ID and click on the search result “Microsoft Entra ID.”

On the Default Directory page, see the Primary domain field, which is the tenant name, as shown in the screenshot below.

Approach-2: Using PowerShell
You can also execute the Azure PowerShell command below to retrieve the tenant’s name in Azure.
Connect-AzureAD
Get-AzureADTenantDetailAfter executing the above command, I got the expected output below. Check out the screenshot below for more information.

Video Tutorial
You may also like following the articles below

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
