Forum Discussion
Power BI API Connectivity in Azure Data Factory
You’re getting 403 / 404 due to a combination of permission and configuration issues:
- 403 Forbidden (Most Common)
- Power BI Admin APIs require admin rights
- User must be Power BI Service Admin or Global Admin
- If using Service Principal:
- Enable in Power BI Admin Portal:
- Allow service principals to use Power BI APIs
- Allow service principals to use read-only admin APIs
- Missing API Permissions
In Azure App Registration:
- Add:
- Tenant.Read.All
- AuditLog.Read.All
- Click Grant Admin Consent
- 404 Not Found
- Usually caused by incorrect endpoint
- Use correct format E.g - https://api.powerbi.com/v1.0/myorg/admin/<endpoint>
- Ensure there are no typos in the URL
- ADF Authentication Issue
- Use OAuth2 (Service Principal) in Linked Service
- Do not use Anonymous/Basic auth
- 403 = permission / admin access issue
- 404 = wrong API endpoint
This should resolve the issue if all configurations are set correctly. Let me know if we have help you more. Also, it is a good practice to have it tested in Postman to get the correct response and status.
Hope this helps! If it resolves your issue, please consider marking it as the accepted solution. kudos are really appreciated.
- sbrahmbhatt4 months agoFrequent Visitor
Thank you Jaydeep for the response. I did look at all of these possible issues on our end. All permissions are granted, endpoint is correct, and the service prinipal and security group created to allow for access. One thing that is not appearing on our end is permissions for 'AuditLog.all' or 'ActivityLog.all'. Neither are showing up as available API permissions from the Application. Other than that, all has been included. The linked service works successfully but the ADF job is erroring out when ran. Any other recommendations? Thanks.