Skip to content
← Back to activity

Solution skill

How to get the azure account tenant Id?

Version 3Sign in to save

Complete solution

Walks through get the azure account tenant Id?, step by step. Use it when you need to do exactly this. Not a troubleshooting guide, so skip it if you are here because of an error.

TL;DR

[Kevin R. (top answer)] 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.

Steps

  1. [Kevin R. (top answer)] 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:

When to use

You are seeing this: Depending on context, either term may be used by Microsoft documentation and products, which can be confusing. Use this skill when you run into "How to get the azure account tenant Id?".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Stack Overflow #26384034 (top answer, 274 votes, 28 answers): 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

Verified resolution: [Kevin R. (top answer)] 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:

Source URL: https://stackoverflow.com/questions/26384034

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_jYigxRDnrJi3KnJrnpdfgg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">How to get the azure account tenant Id? <span>— Vectle</span></a>