Forum Discussion
Unknown Error when calling the initializeConnection Fabric Git API endpoint with a service principal
- 1 year ago
With some great help from Microsoft we finally figured out the solution. It was a combination of three items that we had to solve. The first item was in the Fabric Admin Portal. We had to enable the following setttings:
- Service principals can access read-only admin APIs
- Service principals can access admin APIs used for updates
In addition these settings the second item that is required is that you put your service principal into an Entra AD group:
The second thing we had to do was reconfigure our service principal setup in the app registration. In my own troubleshooting I had added several Fabric/PowerBI related API permissions. As mentioned in this document: Embed Power BI content with service principal and an application secret
These permissions are no longer needed once you enable the Fabric API setting and in fact can cause issues. See this callout:
The solution was to remove all of the permissions besides the default one you get when you create an app registration:
After doing these 3 steps we are now able to sync our workspaces with GIT via a service principal inside of GitHub Actions workflow. As a bonus it also supports using federated credentials instead of having to rely on a client secret!
Hi ckingdon_bee ,
We are following up once again regarding your query. Could you please confirm whether the issue has been resolved through your support ticket with Microsoft?
If so, we would appreciate it if you could share the resolution or any key insights here to benefit others in the community. If we don’t receive a response, we will proceed with closing this thread.
If you need further assistance in the future, feel free to start a new thread in the Microsoft Fabric Community Forum. We will be happy to support you there.
Thank you!!
I am still working through things with Microsoft support.
- ckingdon_bee1 year agoFrequent Visitor
We finally got it working with help from Microsoft! I will post a response to the post (assuming I am still able) with the final solution.
- v-sathmakuri1 year agoCommunity Support
Hi ckingdon_bee ,
Thank you for your patience. The concerned team is looking into the issue, but it may take some time to resolve. As there is already an open ticket with Microsoft, we are closing this thread for now. If you encounter any further issues, please feel free to start a new thread in the community forum, we will be happy to assist you.
Thank you for being part of Fabric community Forum.
Thank you!!
- v-sathmakuri1 year agoCommunity Support
Hi ckingdon_bee ,
Thank you for your response. Please post the working solution here. This will help other community members with similar issues to resolve them more quickly.
Thank you!!