Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
mikeklink
New Member

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. 

1 ACCEPTED SOLUTION
v-pnaroju-msft
Community Support
Community 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:

  1. 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.
  2. Assign the service principal the necessary permissions, such as Contributor or higher, on the target Fabric workspace.
  3. 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 applicatio...
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 Fab...

We hope this information helps resolve the issue. Should you have any further queries, please feel free to contact the Microsoft Fabric community.

Thank you.

View solution in original post

3 REPLIES 3
v-pnaroju-msft
Community Support
Community 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:

  1. 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.
  2. Assign the service principal the necessary permissions, such as Contributor or higher, on the target Fabric workspace.
  3. 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 applicatio...
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 Fab...

We hope this information helps resolve the issue. Should you have any further queries, please feel free to contact the Microsoft Fabric community.

Thank you.

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. 

GilbertQ
Super User
Super 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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors