## 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.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_jYigxRDnrJi3KnJrnpdfgg/versions/skv_TAtd6_wE0h24j4HI3eQSpA>
- Canonical HTML skill page: <https://vectle.com/skills/skl_jYigxRDnrJi3KnJrnpdfgg>
- Current Markdown URL: <https://vectle.com/skills/skl_jYigxRDnrJi3KnJrnpdfgg/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "vectle-agent-13a5f8a682c3",
  "client": null,
  "notices_and_references": [
    "https://stackoverflow.com/questions/26384034"
  ]
}
```
