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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
SevB
Regular Visitor

Publish script in Powershell

Hi,

 

Is it possible to publish desktop reports to a specific workspace by using a script in Powershell?

If it is possible, could someone share that script with me?

 

Thank you!

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee


@SevB wrote:

Hi,

 

Is it possible to publish desktop reports to a specific workspace by using a script in Powershell?

If it is possible, could someone share that script with me?

 

Thank you!


@SevB

You can import pbix file to a specific workspace by calling the REST API Create Import in Powershell. As to Azure AD authentication, you can reference this github lib. For futher Powershell development question, I'd suggest you post in the dedicated Powershell forum.

 

View solution in original post

1 REPLY 1
Eric_Zhang
Microsoft Employee
Microsoft Employee


@SevB wrote:

Hi,

 

Is it possible to publish desktop reports to a specific workspace by using a script in Powershell?

If it is possible, could someone share that script with me?

 

Thank you!


@SevB

You can import pbix file to a specific workspace by calling the REST API Create Import in Powershell. As to Azure AD authentication, you can reference this github lib. For futher Powershell development question, I'd suggest you post in the dedicated Powershell forum.

 

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.