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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Import a Power BI report (pbix) from local to Power BI Service

I would like use a PowerShell script in an Azure DevOps release to import a Power BI report (pbix) from local to Power BI Service. 

 

It's possible ? 

 

Thanks in Advance 

 

Cha

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

You can refer the following links to import pbix file into Service by Powershell:

New-PowerBIReport

New-PowerBIReport
   [-Path] <String>
   [-Name <String>]
   [-WorkspaceId <Guid>]
   [-ConflictAction <ImportConflictHandlerModeEnum>]
   [-Timeout <Int32>]
   [<CommonParameters>]

IMPORT A PBIX TO POWERBI USING POWERSHELL

PowerShell script to publish Power BI reports into multiple tenants

 

In addition, you can refer the following links to get it by REST API or Get Data in Service.

REST API:

Imports - Post Import - REST API (Power BI Power BI REST APIs) | Microsoft Docs

Upload a local PBIX file using the import API

Publishing PBIX Files with the Power BI REST API

Get data:

yingyinr_0-1662619891686.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

You can refer the following links to import pbix file into Service by Powershell:

New-PowerBIReport

New-PowerBIReport
   [-Path] <String>
   [-Name <String>]
   [-WorkspaceId <Guid>]
   [-ConflictAction <ImportConflictHandlerModeEnum>]
   [-Timeout <Int32>]
   [<CommonParameters>]

IMPORT A PBIX TO POWERBI USING POWERSHELL

PowerShell script to publish Power BI reports into multiple tenants

 

In addition, you can refer the following links to get it by REST API or Get Data in Service.

REST API:

Imports - Post Import - REST API (Power BI Power BI REST APIs) | Microsoft Docs

Upload a local PBIX file using the import API

Publishing PBIX Files with the Power BI REST API

Get data:

yingyinr_0-1662619891686.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.