Another quick post – I’ve been doing some work with silent configuration of OneDrive and the new Known Folder Migration GPO solution all being deployed via Intune for multiple clients.
One thing that is required for the KFM solution is the Azure Tenant Id. Being the nerd I am, I wanted to see if I could get the Id without having to log in to the tenant.
Since Tao posted his findings, Microsoft has updated the endpoints to improve and simplify the authentication flow.
So with the findings of Tao & the updated endpoint info, below is a simple function to retrieve the Azure AD Tenant Id via the client domain!
Now, if I run the function against my own Azure Tenant..
Get-TenantIdFromDomain -FQDN "powers-hell.com"
There we have it! A very simple way to