Recently we had to find the tenant id, usually, we will log in to Azure Portal and within Azure Active Directory we will get the tenant id.
However, in this case, we only had the user’s email address.
So we had https://www.whatismytenantid.com/ to help us here.
Just enter the domain name, and click on Find my tenant ID.
The result –
The corresponding PowerShell script – https://craigporteous.com/azure-tenant-id-powershell/
Hope it helps..