AADSTS90002 🔷 Azure

AADSTS90002: Tenant 'x' not found

The tenant ID or domain in the authority URL doesn’t exist — or isn’t in the cloud you’re calling (public vs government/China).

Seen on: Azure

Meaning

A typo in the tenant ID, using an unverified domain name, a deleted tenant, or using login.microsoftonline.com for a sovereign-cloud tenant all return 90002.

Common causes

  • Typo or wrong tenant ID/domain
  • Domain not verified in the tenant
  • Tenant deleted
  • Sovereign cloud tenant called on the public endpoint

⚡ Quick fix

  1. Copy the Directory (tenant) ID from the portal
  2. Use the tenant GUID instead of a domain
  3. Use the correct cloud authority

Detailed fix by platform

Azure CLI

  1. bash
    az account show --query tenantId -o tsv
    curl -s https://login.microsoftonline.com/contoso.com/v2.0/.well-known/openid-configuration | jq .issuer

How to diagnose

  1. Tenant — ID in config vs portal
  2. Cloud — Public, US Gov, China?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.