Skip to content

Retrieve Tenant ID

Zander Janse van Rensburg edited this page Jun 13, 2017 · 3 revisions

You will need your Azure Tenant ID to retrieve an access token. There are 2 ways to retrieve it:

Azure CLI

Assuming that you have already logged in via az login you can retrieve your Tenant ID by running:

az account show

It will be listed under the tenantId key.

Azure Portal

Follow the below steps to retrieve the Tenant ID in the Azure portal:

  • Click More Services
  • Search for Azure Active Directory
  • Click Properties
  • Your Tenant ID will be listed under the Directory ID on this screen
Clone this wiki locally