← cd ~/tools
Look it up
Tenant ID lookup
Type any domain that uses Microsoft 365 or Entra ID, such as contoso.com, to see its tenant ID, which Microsoft cloud it's in and its region scope. Useful for B2B setups, cross-tenant access and support tickets.
- Free
- Runs in your browser
- No sign-up
Lookups go straight from your browser to Microsoft or a public DNS resolver. Nothing is sent to this site.
Do it yourself in PowerShell
The tool reads the domain's public OpenID Connect configuration, which needs no sign-in:
$domain = "contoso.com"
$cfg = Invoke-RestMethod "https://login.microsoftonline.com/$domain/v2.0/.well-known/openid-configuration"
$cfg.issuer # https://login.microsoftonline.com/<tenant ID>/v2.0
$cfg.tenant_region_scope # e.g. EU, NA, WW
$cfg.cloud_instance_name # e.g. microsoftonline.comWhat each line does
- Line 2: Calls a web API and returns the response as objects.
Tenant IDs aren't secret: any app a user signs in to can see them. The region scope is Microsoft's broad grouping, not the exact datacentre.
Link to this page
Writing a guide or answering a question? Copy this link.
<a href="https://azureblog.co.uk/tools/tenant/">Tenant ID lookup: find any Microsoft 365 tenant ID by domain (AzureBlog)</a>