Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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
Solved! Go to Solution.
Hi @Anonymous ,
You can refer the following links to import pbix file into Service by Powershell:
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:
Best Regards
Hi @Anonymous ,
You can refer the following links to import pbix file into Service by Powershell:
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:
Best Regards