I've written a demo app that retrieves and displays a user's mailfolders and mails from Outlook 365, and allows them to send an email the same way, all using Microsoft Graph.
In order to use Graph, I had to get an Entra AD tenant account from Microsoft.
The app works flawlessly on my machine (and yes, I know how cliche that sounds), but when I deploy it, I get nothing but an unspecified 500 error.
I believe the problem is due to my app not accessing the Entra AD account (secret, tenant, client, etc). As part of the creation of the app, I set those on my computer.
When I created a KeyVault on Azure, it didn't provide any way to enter the secret/tenant for Graph. Only to create a new one.
What I have tried:
I have tried using
app.UseDeveloperExceptionPage();
, and I have tried turning on logging in the web.config. Nothing changes, and no log is generated.