AADSTS70001: Application with identifier 'guid' was not found in the directory

19,629

For your first question

It seems to be you have configured active directory authentication through the azure portal. So that it will overwrite whatever the configuration values in your web.config file. Therefor please take following actions to verify this.

Go to App Services --> Select your app service account name --> Under settings menu click on the Authentication / Authorization --> App Service Authentication In the Authentication / Authorization blade verify App Service Authentication is in on state and if it is in on state then verify whether the Authentication Provider is Azure Active Directory. If so, click on the Azure Active Directory: Configured (Advanced).

Authentication / Authorization blade

In the Azure Active Directory Settings blade click on the Advanced button in Management mode option. Verify whether the Client ID, Issuer Url and Client Secret is correct. If not Change it and click ok. Then click the save button on Authentication / Authorization blade.

Azure Active Directory Settings blade

Now you can test your site whether it is working as you expected.

For your second question

This can happen due to wrong client id and client secret. Please verify above steps followed as I explained and then test your site. If all settings configured correctly, you should not get errors like this.

Note: Also remember if you rename already created Azure Ad App name from the portal please verify your azure app service active directory settings as I explained above.

Share:
19,629
user2058413
Author by

user2058413

Updated on June 05, 2022

Comments