Forum Discussion
Deployment to app.powerbi through restapi from a Azure client app
Hi nganesh ,
Thank you for reaching out to the Microsoft Community Forum.
When Service principal enabled and lacks workspace access, then you will get 404 (PowerBIEntityNotFound) error. Because the API hides objects that you don’t have rights to.
Please try below things to fix the issue.
1. Please verify that Tenant setting “Service principals can call Fabric public APIs” is Enabled and includes your security group.
2. Ensure that your service principal or its group is Member/Admin of each target workspace.
3. Ensure you are using /v1.0/myorg/groups/{groupId}/imports not the My Workspace import unless that’s intended.
Please refer below links
Reports - Update Report Content - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Give Users Access to Workspaces - Power BI | Microsoft Learn
Imports - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Solved: Re: 404 error client error - post /imports power b... - Microsoft Fabric Community
Solved: Power BI Rest API Refresh Dataset gives 404 error - Microsoft Fabric Community
I hope this information helps. Please do let us know if you have any further queries.
Regards,
Dinesh
Hi nganesh ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.
Regards,
Dinesh