title: Error: AADSTS500011: The resource principal named "URL" was not found in the tenant
body: <p>I am trying to add an app to our SharePoint Online site using the template from <a href="https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part</a> and we get the error below when we deploy to SharePoint and add the app/Web part to a test SharePoint site. We are using TypeScript as the template uses.</p>
  
  <p>Has anyone else encountered this issue or know where to look for the issue?</p>
  
  <p><strong>Found [object Object]Driver Display External Error: Error: AADSTS500011: The resource principal named <a href="https://driverdisplayexternal.azurewebsites.net" rel="nofollow noreferrer">https://driverdisplayexternal.azurewebsites.net</a> was not found in the tenant named 7018324c-9efd-4880-809d-b2e6bb1606b6. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: 358b22eb-cd2c-4091-b592-5a57cbc21d00 Correlation ID: ec96d656-1a36-42e2-a2b9-3ff78efc1e2e Timestamp: 2019-10-01 16:26:06Z</strong></p>
  
  <p>We have added a call to our own client as shown below. We are not sure why the resource principal was not found. The Tenant ID's match and things seem to be set up properly for authentication. </p>
  
  <p><strong>HelloWorldWebPart.ts</strong></p>
  
  <pre><code>...
     this.context.aadHttpClientFactory
        .getClient('https://driverdisplayexternal.azurewebsites.net')
        .then((client: AadHttpClient): void =&gt; {
  
          client
            .get('https://driverdisplayexternal.azurewebsites.net/api/values', AadHttpClient.configurations.v1)
            .then((response: HttpClientResponse): Promise &lt; Order[] &gt; =&gt; {
              this.domElement.innerHTML += 'Received a response from Driver Display External: ' + response;
              return response.json();
            })
  
            .catch(error =&gt; {
  
              this.domElement.innerHTML += 'Driver Display External Error:  ' + error;
              console.error(error);
            });
        });
  ...
  </code></pre>
  
  <p><strong>package-solution.json</strong></p>
  
  <pre><code>{
    "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
    "solution": {
      "name": "helloworld-webpart-client-side-solution",
      "id": "**ID**",
      "version": "4.1.0.0",
      "includeClientSideAssets": true,
      "isDomainIsolated": false,
      "webApiPermissionRequests": [
        {
          "resource": "DriverDisplayExternal",
         "scope": "User.Read.All"
        }
       ]
    },
    "paths": {
      "zippedPackage": "solution/helloworld-webpart.sppkg"
    }
  }
  
  </code></pre>
  
  <p>Any help or direction to where the issue may be would be very appreciated. Thanks in advance!</p>