Using MS Graph API, 365 Defender, Azure Functions and PowerBI