Open petertheguy opened 7 months ago
I would make sure you SP is in the tenant settings to run read only API calls and then test the process locally. The readme has a section named "Authorize the Service Principal on PowerBI Tenant" with the needed configuration.
The fetch script is a bit cryptic due to some if/else structure but the functions you need are there.
This section is for Auth but you can simplify
I suspect that the login process was successful but the SP is not allowed to call the activity log.
I went to test the AuditsTimer function within the function app and received 403 (Forbidden) error messages (see excerpt below). Not super savvy with Azure, any idea what this could be? Something to do with the created secret or privileges of my Azure account?