We set up the the service according to the instructions in both Moodle and Azure, and it works fine, but we bumped into the issue that the app only provides basic user data to Moodle.
After a little investigation, I realized, that the userinfo endpoint only provides this basic data (https://graph.microsoft.com/oidc/userinfo) and to get more fields we would need a different endpoint.
https://graph.microsoft.com/v1.0/me
I changed this manually in Moodle, but it does not work, it gives this error message:
"AADSTS500011: The resource principal named https://graph.microsoft.com/v1.0 was not found in the tenant named"....
Does anyone encountered and solved this problem? I guess we can setup this somehow in the Azure app, but cannot find where/how.