Forum Discussion
Gateway cluster API call error
- 8 months ago
Hi BindiyaThota ,
A 401 Unauthorized error when calling the Power BI Gateway Cluster Admin API through a service principal usually indicates a configuration issue in either Azure AD or the Power BI Admin Portal. Remove any admin-consent-required AAD app permissions from the app registration and then request a new token. Ensure service principal access is enabled in Power BI tenant settings.
In Power BI Admin Portal > Tenant Settings > Developer Settings:
Allow service principals to use Power BI APIs
Allow service principals to access admin APIs
If these settings are restricted to specific security groups, make sure your service principal is included.
Try to add the service principal itself as a Gateway Cluster Admin in Power BI > Manage Gateways.
Hope this helps.
Thank you.
Hi BindiyaThota ,
Just following up to see if the response provided was helpful in addressing the issue. if the issue still persists Feel free to reach out if you need any further clarification or assistance.
Best regards,
Chaithra E.