The following error messages may appear when attempting to reconfigure the Azure tenant from the Configuration Manager console:
'App Consent Error'
'An error occurred while attempting to grant consent to this application'.
To clear the credential and tenant information from the Enterprise Reporter database tables and delete the app from Azure, perform the following steps:
1) Remove cloud credentials and tenant apps from the ER database by running the following queries:
DELETE FROM [tblCredentialRefreshTokens];
DELETE FROM [tblCredentials] WHERE AccountName like '%@%';
DELETE FROM [tblDirectoryDiscoveryType];
DELETE FROM [tblDirectoryConfig];
2) Delete the App Registration and Service Principal from Azure:
3) Reconfigure tenant apps: