Forum Discussion
Deployment to app.powerbi through restapi from a Azure client app
I am trying to deploy data model and report from desktop to app.powerbi though a client app configuration. Data models are owned by 3 different services accounts for different environment. I am able to refresh the datamodel in each of these environments but unable to deploy the model / report (getting 404). I feel I am missing some steps with the app registration. Can you please help with the steps or point me to the documenation for this.
8 Replies
- v-dineshya
Community Support
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
- v-dineshya
Community Support
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
- nganeshFrequent Visitor
Sorry for the delay in response. I am able to create workspace, impact dataset, assign permissions etc. Our initial setup included Azure service account (not principal) for EntraID authentication with snowflake. We recently decided to move away from password based service accounts. Is there way to define the azure service principal in the database connection parameter in the dataset - ideally key-pair configured in Snowflake
- v-dineshya
Community Support
Hi nganesh ,
Power BI supports only Microsoft Entra ID (Azure AD) OAuth-based SSO or username/password for Snowflake not key‑pair authentication. Snowflake integration uses Microsoft Entra ID for SSO, not custom auth schemes such as key pairs.
Please refer below link.
Connect to Snowflake with Power BI - Power BI | Microsoft Learn
I hope this information helps. Please do let us know if you have any further queries.
Regards,
Dinesh
- nganeshFrequent Visitor
This seems to be a recent enhancement to the PowerBI. I get the following error while adding the pvt key.
ailed to update data source credentials: ADBC: [Snowflake] failed parsing PKCS8 private key: pkcs8: only PBES2 supportedHide details
Activity ID: 0c0609d0-1adf-4365-b33a-76f14cc0c3c9 Request ID: 7bba2719-c727-6afa-e1eb-2d92b05b418d Status code: 400 Time: Wed Feb 11 2026 19:22:06 GMT-0800 (Pacific Standard Time) Service version: 13.0.27555.5 Client version: 2601.3.27671-train Cluster URI: https://wabi-west-us-c-primary-redirect.analysis.windows.net/