Forum Discussion
Relationship between Azure Active Directory and Directory (Tenant?)
- Aug 24, 2020
Hi Blakemar ,
I understand your confusion. I agree there are several "terms" in Azure that seem to overlap or could be synonyms. In addition, you might see these terms used inconsistently in the Portal UI or documentation.
I always try to approach it from the practical point of view, for example:
- Can I create a new Azure AD tenant and if yes, how is it related to my existing environment?
- Can I create several directories under that tenant?
- Can I have several domains under my tenant?
I like to use this article written for AAD developers as a reference: https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-create-new-tenant#use-an-existing-tenant
I saw some confusing or even wrong replies in the "linked" topic like someone claiming you can have several directories under one AAD tenant.
I see it this way: Azure AD tenant = directory, and there is a strict 1:1 relationship between them (you cannot create several directories under a tenant). Each tenant has it's globally unique 'tenant ID' (in some places in the Portal referred as 'directory ID', but the ID is the same.
When you use 'Switch directories' option in the Portal, you are authenticating to a different AAD tenant (your account was invited as a guest there via Azure AD B2B Collaboration), so you will see different subscriptions and resources, and have different permissions, when you do so. Since most organizations have one production tenant (but some like ISVs can have more), you are switching to a different "company". That's how I see it.
You can, however, have several domains under one tenant / directory. You always get a default one {something}.onmicrosoft.com, but you can onboard custom domains (like contoso.com) upon proving you own that domain.
Hi Blakemar
To best of my understanding, you are correct - when switching directory, you are switching switching tenant i.e going from company1.onmicrosoft.com to company2.onmicrosoft.com which are separate, distinct units that do not shared users/resources etc.
This gives the definition of tenant/directory.
Azure tenant | A dedicated and trusted instance of Azure AD that's automatically created when your organization signs up for a Microsoft cloud service subscription, such as Microsoft Azure, Microsoft Intune, or Office 365. An Azure tenant represents a single organization. |
Azure AD directory | Each Azure tenant has a dedicated and trusted Azure AD directory. The Azure AD directory includes the tenant's users, groups, and apps and is used to perform identity and access management functions for tenant resources. |
For all intents and purposes, they are pretty much the same as far as I can determine.
Hope this helps,
Mark
Edit - just saw pazdedav answered a more informative response while I was typing this out - looks like I wasn't too far off the mark though 🙂