title: AADSTS90002: Tenant 'xx' not found. This may happen if there are no active subscriptions for the tenant
body: <p>I followed <a href="https://blogs.msdn.microsoft.com/jpsanders/2017/03/17/accessing-azure-app-services-using-azure-ad-bearer-token-2/" rel="nofollow noreferrer">this</a> tutorial to generate an access token from client app for target app. According to the comment for this tutorial, for the <code>resources</code>, I changed to App ID URL. But I am still not able to successfully generate bearer token for the target app.</p>
  
  <p>It shows this error message:  </p>
  
  <blockquote>
    <p>AdalException:
    {"error":"invalid_request","error_description":"AADSTS90002: Tenant
    '' not found. This may happen if there are no active
    subscriptions for the tenant....}</p>
  </blockquote>
  
  <p>Anyone knows what else I missed?</p>