How To Get Tenant Name In Azure

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.

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.

how to find tenant name in azure

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.

how to find the tenant name in azure

Alternatively,

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

find tenant name in azure

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

how to get tenant name in azure

Approach-2: Using PowerShell

You can also execute the Azure PowerShell command below to retrieve the tenant’s name in Azure.

Connect-AzureAD
Get-AzureADTenantDetail

After executing the above command, I got the expected output below. Check out the screenshot below for more information.

how to get tenant name in azure using powershell

Video Tutorial

You may also like following the articles below

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!