Forum Discussion
PBIP deployment using GitHub actions
Hi all, I am attempting to deploy PBIP files to power bi using GitHub actions, power bi service, Fabric api, and a service principal. I am working with the classic PBIP folder structure with a report and semantic model folder. I found some documention from Microsoft on it here but it requires authentication so my service principal will not work. From my research I'm not sure if its possible to do this but if anyone can offer any help or knowledge that would be greatly appreciated.
Thankyou, GilbertQ, for your response.
Hi mikeklink,We appreciate your enquiry through the Microsoft Fabric Community Forum.
Based on my understanding, the issue occurs because deploying PBIP folders requires the Fabric REST APIs or the FabricPS-PBIP PowerShell module. By default, service principals are not enabled for API access unless a Fabric administrator updates the tenant settings. In the absence of this configuration, authentication fails even if the service principal exists.
Please follow the steps below, which may help resolve the issue:
- Request a Fabric administrator to enable Service principals can use Fabric APIs in the Fabric Admin portal, and scope this setting to a security group that contains the service principal.
- Assign the service principal the necessary permissions, such as Contributor or higher, on the target Fabric workspace.
- Use the FabricPS-PBIP PowerShell module or the Fabric REST APIs in the GitHub Actions pipeline to deploy PBIP projects to the workspace.
For further guidance, please refer to the links below:
Deploy a Power BI project using Fabric APIs - Microsoft Fabric REST APIs | Microsoft Learn
Embed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Learn
Analysis-Services/pbidevmode/fabricps-pbip at master · microsoft/Analysis-Services · GitHub
Automate deployment pipelines with APIs for Power BI items - Microsoft Fabric | Microsoft Learn
Automate Power BI Premium workspace and semantic model tasks with service principals - Microsoft Fabric | Microsoft LearnWe hope this information helps resolve the issue. Should you have any further queries, please feel free to contact the Microsoft Fabric community.
Thank you.
3 Replies
- GilbertQSuper User
Hi mikeklink
I would highly recommend you look at the blog post link below where John explains the concepts as well as some follow along details. Making Your Power BI Teams More Analytic with Microsoft Fabric - Introduction | John Kerski’s Blog
- v-pnaroju-msftCommunity Support
Thankyou, GilbertQ, for your response.
Hi mikeklink,We appreciate your enquiry through the Microsoft Fabric Community Forum.
Based on my understanding, the issue occurs because deploying PBIP folders requires the Fabric REST APIs or the FabricPS-PBIP PowerShell module. By default, service principals are not enabled for API access unless a Fabric administrator updates the tenant settings. In the absence of this configuration, authentication fails even if the service principal exists.
Please follow the steps below, which may help resolve the issue:
- Request a Fabric administrator to enable Service principals can use Fabric APIs in the Fabric Admin portal, and scope this setting to a security group that contains the service principal.
- Assign the service principal the necessary permissions, such as Contributor or higher, on the target Fabric workspace.
- Use the FabricPS-PBIP PowerShell module or the Fabric REST APIs in the GitHub Actions pipeline to deploy PBIP projects to the workspace.
For further guidance, please refer to the links below:
Deploy a Power BI project using Fabric APIs - Microsoft Fabric REST APIs | Microsoft Learn
Embed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Learn
Analysis-Services/pbidevmode/fabricps-pbip at master · microsoft/Analysis-Services · GitHub
Automate deployment pipelines with APIs for Power BI items - Microsoft Fabric | Microsoft Learn
Automate Power BI Premium workspace and semantic model tasks with service principals - Microsoft Fabric | Microsoft LearnWe hope this information helps resolve the issue. Should you have any further queries, please feel free to contact the Microsoft Fabric community.
Thank you.
- mikeklinkNew Member
hi,
Thanks for the reply.
I was able to get my pbip files to deploy using the GitHub repo you had linked. My only additional question is about the data in my report. Do I need to give my Service Principal permissions on the dataset the report is using? I am getting an error saying that I don't have access to the dataset.