Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the azure account tenant Id?

My question is: Is it possible to get the azure active directory tenant id without using powershell command?

I found this two blogs and with this help, I'm already able to get the tenant ID and subscriptions ID from powershell. Is it the only way to retrieve the tenant?

Get Windows Azure Active Directory Tenant ID in Windows PowerShell

Windows Azure AD authentication support for PowerShell

Thanks

like image 851
Annie Vincent Avatar asked Sep 26 '22 10:09

Annie Vincent


People also ask

What is Azure tenant ID?

The Azure Tenant ID is a Global Unique Identifier (GUID) for your Microsoft 365 Tenant. It's also referred to as the Office 365 Tenant ID. The ID is used to identify your tenant and it's not your organization name or domain name. There are different ways to get your Azure Tenant ID.

How do I get my Azure tenant ID using PowerShell?

To retrieve your tenant id using PowerShell you simply need to connect to your Azure AD using the Connect-AzureAD commandlet. This commandlet is part of the AzureAD module, so if you don't have this module installed already, you need to grab it from the PowerShell Gallery: Install-Module AzureAD.

What is tenant ID and Client ID in Azure?

Tenant Id - this is the unique identifier of the Azure Active Directory instance. Client Id - this identifier will be assigned when Seq is set up as an application in the directory instance (the new Azure portal calls this Application Id) Client Key - this is the secret key Seq will use when communicating with AAD.


1 Answers

Time changes everything. I was looking to do the same recently and came up with this:

Note

added 02/17/2021

Stable Portal Page thanks Palec

added 12/18/2017

As indicated by shadowbq, the DirectoryId and TenantId both equate to the GUID representing the ActiveDirectory Tenant. Depending on context, either term may be used by Microsoft documentation and products, which can be confusing.

Assumptions

  • You have access to the Azure Portal

Solution

The tenant ID is tied to ActiveDirectoy in Azure

  • Navigate to Dashboard
  • Navigate to ActiveDirectory
  • Navigate to Manage / Properties
  • Copy the "Directory ID"

Azure ActiveDirectory Tenant ID:

image

like image 273
Kevin R. Avatar answered Oct 13 '22 13:10

Kevin R.