I'm using the new Azure.Identity package (https://docs.microsoft.com/en-us/dotnet/api/overview/azure/identity-readme) in a simple .NET Core console app to log into Azure, e.g.:
var credential = new DefaultAzureCredential()
Works fine, but now I want to get the name, eMail etc. of the currently logged in user. Has anyone an idea how to accomplish this?